![]() ![]() A restore with backup can perform using the command below: PASSPHRASE=”passphrase_we_set_for_GPG” duplicity the_backup We just need to interchange the remote and local parameters. Restoration from the Duplicity backup is easy. Old backup sets will not delete if backup sets newer than time depend on them Remove-older-than time: Delete all backup sets older than the given time. If the count is 2, it retains only 2 recent backups and deletes all others. Remove-all-but-n-full count: Delete all backups sets that are older than the count. We can use either of the options to remove older backups from the remote backup host: duplicity full –no-encryption –exclude /mnt –exclude /tmp –exclude /proc –exclude /sys / to run these backup tasks periodically, a cron job can be set at the source server end. To make it generate a full backup of the server, we can use the option full with it. The above command by default generates incremental backups. The script below may help if we prefer a full server backup with no encryption via rsync. The syntax to generate backup using gpg is as follows: PASSPHRASE=”passphrase_we_set_for_GPG” duplicity –encrypt-key public_key –exclude /proc –exclude /sys –exclude /tmp / this is done the backup folder in the remote server will fill with the backups as shown below: We can also retrieve it by using the command: gpg –list-keys Once the key is generated, it displays the public key on the screen. It also asks for a passphrase, which we should set to ensure proper encryption. It will ask for a few details like the type of key, name, email address, and optionally, a comment associate with this key. To generate the key, we run: gpg –gen-key To set up an extra layer of security, we can use GPG. SSH keys need to be set up with both the servers to perform a password-less transfer. Generally, our Support Engineers uses SFTP to transfer the Duplicity backups to remote locations. In addition, we need to create the backup directory at the remote server. To install the same, we run: sudo apt-get install ncftp Sometimes we need the NcFTP package to use the Duplicity FTP backup. We can install Duplicity easily using the following command in the terminal window: sudo apt-get install duplicity Deja-dup is the graphical user interface for Duplicity in Ubuntu. It works well with Unix like operating systems.ĭuplicity backups can be stored locally as well as in remote locations like S3, SFTP, and WebDAV. We can use it to generate digitally signed, encrypted incremental backups. Let’s start with a basic understanding of Duplicity. ![]() Today, let us discuss in detail Duplicity and how our Support Engineers perform restorations with Duplicity. A full account restoration would be necessary to recover and to get the business going again after an unpredicted catastrophic event. Recently we came across a support request regarding Duplicity restore full backup as a part of our Server Management Services.ĭuplicity is a common application to generate backups. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |