Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Duplicity backs directories by producing encrypted tar-format volumes and uploading them to a remote or local file server. Because duplicity uses librsync, the incremental archives are space efficient and only record the parts of files that have changed since the last backup. Because duplicity uses GnuPG to encrypt and/or sign these archives, they will be safe from spying and/or modification by the server.
The duplicity package also includes the rdiffdir utility. Rdiffdir is an extension of librsync's rdiff to directories---it can be used to produce signatures and deltas of directories as well as regular files. These signatures and deltas are in GNU tar format.
After the installation of the duplicity's package, you need to do some steps before lauching your first backup:
- GPG: you will need to pass
--gpg-binary=/usr/local/gnupg/bin/gpg2to the duplicity's command, as GPG is already available in DSM, but at an older version.
- GPG config: you may also need to create a file
/root/.gnupgcontaining only the line
allow-loopback-pinentryto make duplicity work.
- Archive and temp dirs: you may pass
--tempdir=/volume1/homes/whatever/to duplicity's command, because these directories will grow up, and space is sparse on