Is there an ease fix two to improve the backup speed using the default Déjà Dup Backup solution of the Ubuntu Gnome Desktop?
Actually I'm quite happy with my weekly duplicity backups, but I set it up that I have every three month a full backup to my local NAS. This takes around two full days for ~1TB of data.
I believe there is at least two bottlenecks of my duplicity solution:
- the backup runs only one core and
- it uploads just small chunks of 50 MB to the NAS.
Especially the second issue means, that I can't use the full capacity of my Gigabit-LAN. Duplicity uploads the files with about 25 MiB/s. I upload manually a bigger file I get easily 80 MiB/s (NAS is connected with a 2 x 1 GbE bond).
Here is a typical screenshot of the System Monitor:
Does anybody have an idea, how to improve the full backup speed? Eg. can I change the chunk size etc.
Best Answer
Found it, Deja Dup overwrites the default
duplicity
chunk size. The source code explains the advantages and disadvantages:I managed to compile a custom version of
deja-dup
. Therefore, I had to do the following steps:Clone source code
Switch to older branch with gtk3 support for Ubuntu 20.04
Patch the return of the
get_volsize()
funktion inDuplicityJob.vala
and increase the version number. Eg.patch40-7-1.diff
:Make and install (including installing missing packages):
Voilà