From d894e77b83806f77d7942935bbf825d1da36944a Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Thu, 31 Aug 2017 07:49:40 -0100 Subject: [PATCH] duplicity: various tweaks (#1452) --- pages/common/duplicity.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/common/duplicity.md b/pages/common/duplicity.md index 3b2811bbaf..74cbb52aed 100644 --- a/pages/common/duplicity.md +++ b/pages/common/duplicity.md @@ -1,8 +1,9 @@ # duplicity -> Creates incremental, compressed, encrypted and versioned backups and optionally uploads them to a variety of backend services. +> Creates incremental, compressed, encrypted and versioned backups. +> Can also upload the backups to a variety of backend services. -- Backup a folder via ftps to a remote machine, encrypting with a password: +- Backup a folder via FTPS to a remote machine, encrypting it with a password: `FTP_PASSWORD={{ftp_login_password}} PASSPHRASE={{encryption_password}} duplicity {{path/to/source/directory}} {{ftps://user@hostname/target/directory/path/}}` @@ -10,18 +11,18 @@ `duplicity --full-if-older-than {{1M}} --use-new-style s3://{{bucket_name[/prefix]}}` -- Delete versions older than 1 year from a backup stored on a webdav share: +- Delete versions older than 1 year from a backup stored on a WebDAV share: `FTP_PASSWORD={{webdav_login_password}} duplicity remove-older-than {{1Y}} --force {{webdav[s]://user@hostname[:port]/some_dir}}` -- List the backups available: +- List the available backups: `duplicity collection-status "file://{{absolute/path/to/backup/folder}}"` -- List the files in a backup stored on a remote machine via ssh: +- List the files in a backup stored on a remote machine, via ssh: `duplicity list-current-files --time {{YYYY-MM-DD}} scp://{{user@hostname}}/path/to/backup/dir` -- Restore a folder from a gpg-encrypted local backup to a folder: +- Restore a subdirectory from a GnuPG-encrypted local backup to a given location: `PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --file-to-restore {{relative/path/restorefolder}} file://{{absolute/path/to/backup/folder}} {{path/to/directory/to/restore/to}}`