I started a mono /usr/lib/duplicati/Duplicati.CommandLine.exe vacuum yesterday at around 12pm. It is still running today at 12:30pm. There has been no output from the command to stdout or stderr.
How long should I expect the command to take?
The command has been keeping one of my CPU’s spiked to 100% most of the time.
I’m on an SSD, so I’d think file I/O wouldn’t be much of an issue.
The .sqlite file is over 2G in size, so I’m not surprised it is taking a long time. I just am running out of time I can leave my laptop running, and the lack of output from the command gives me no way to tell if it’s just stalled or something…
$ duplicati-cli help
[cut for brevity]
http://www.duplicati.com/ Version: - 2.0.3.3_beta_2018-04-02
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
In any case, it does seem like a good command to run once in a while, so I would like to be able to.
Edit:
Wait, no, I didn’t set dbpath. I copied the backup command, then deleted stuff until it worked… So I ended up with something like duplicati-cli vacuum "ftp://blah" Yeah… I don’t think that would work right… coughs
Thanks… I will try it! But it seems strange that it would need to know the remote path and encryption key. is the local database also protected with that same encryption key as the remote files?
I’m on Linux, so I can call that via mono, or via duplicati-cli. I usually use the mono version when I’m copying the command from the export as command line option.
Yeah, I think running vacuum on every backup, is kind of excess. There are interesting views on this topic. Some prefer running vacuum all the time, and some do run it very rarely. I think running vacuum on compact, would be pretty sane choice. Unless there’s something like compact to trigger vacuum, running it like monthly would sound pretty ok to me. It’s like defrag, it’s good to run “sometimes” but running it all the time is also totally pointless waste of resources.
I ended up just turning on the “auto-vacuum” option. Turned it back off after one of the backups completed. My database dropped from 5GB to 2.6GB.
Not sure what the Duplicati help text means when it says this option will allow Duplicati to run vacuum automatically “at its discretion.” From looking at the source it seems to run the vacuum command automatically after each backup.
It’d be cool to have an option where it did a vacuum once every couple weeks or something.