Index | Diary

This will list all files in the backup\home directory duplicity --no-encryption list-current-files ftp://ben@192.168.0.19/backup/home

This will find a specific file in the backup\home directory duplicity --no-encryption list-current-files ftp://ben@192.168.0.19/backup/home | grep .abook/addressbook

This will restore addressbook file to the MEGA directory duplicity --no-encryption --file-to-restore ben/.abook/addressbook ftp://ben@192.168.0.19/backup/home/ ~/MEGA/addressbook

Duplicity is now run from the duplicity-backup directory, it is call by kzone-backup.sh which runs either a full backup or an incremental backup.

If this is successful the remove the original backup dir backup-jobs

## duplicity-backup.sh

Run an incremental backup:

  1. duplicity-backup.sh [-c config_file] --backup

Force a one-off full backup:

  1. duplicity-backup.sh [-c config_file] --full
  1. Restore your entire backup:
  1. You will be prompted for a restore directory
  2. duplicity-backup.sh [-c config_file] --restore

#

  1. # You can also provide a restore folder on the command line.
  2. duplicity-backup.sh [-c config_file] --restore /home/user/restore-folder

#

  1. Restore a specific file or directory in the backup:

#

  1. Note that the commands --restore-file and --restore-dir are equivalent.

#

  1. # You will be prompted for a file to restore to the current directory
  2. duplicity-backup.sh [-c config_file] --restore-file

#

  1. # Restores the file img/mom.jpg to the current directory
  2. duplicity-backup.sh [-c config_file] --restore-file img/mom.jpg

#

  1. # Restores the file img/mom.jpg to /home/user/i-love-mom.jpg
  2. duplicity-backup.sh [-c config_file] --restore-file img/mom.jpg /home/user/i-love-mom.jpg

#

  1. # Restores the directory rel/dir/path to /target/restorepath
  2. duplicity-backup.sh [-c config_file] --restore-dir rel/dir/path /target/restorepath

#

  1. List files in the remote archive

#

  1. duplicity-backup.sh [-c config_file] --list-current-files

#

  1. See the collection status (i.e. all the backup sets in the remore archive)

#

  1. duplicity-backup.sh [-c config_file] --collection-status

#

  1. Verify the backup

#

  1. duplicity-backup.sh [-c config_file] --verify

#