From 582416f2e67e64236e53f53d9c14df667b77aba5 Mon Sep 17 00:00:00 2001 From: Joubert Date: Tue, 9 Jul 2013 11:52:03 -0300 Subject: [PATCH 1/2] A small contribution with a set a ftp variable to run on a script --- duplicity-backup.conf.example | 5 +++++ duplicity-backup.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example index bde6dc9..3fb5a7d 100644 --- a/duplicity-backup.conf.example +++ b/duplicity-backup.conf.example @@ -104,6 +104,11 @@ DEST="s3+http://backup-bucket/backup-folder/" #DEST="ssh://user[:password]@other.host[:port]/[/]some_dir" #DEST="file:///home/foobar_user_name/new-backup-test/" +# FTP PASSWORD +# If you want to set a ftp password without a ftp:// you can to set a password +# in a FTP_PASSWORD +#FTP_PASSWORD="your_ftp_password" + # INCLUDE LIST OF DIRECTORIES # Here is a list of directories to include; if you want to include # everything that is in root, you could leave this list empty (I think). diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 9f40ef7..563877a 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -159,6 +159,9 @@ export AWS_ACCESS_KEY_ID export AWS_SECRET_ACCESS_KEY export PASSPHRASE export SIGN_PASSPHRASE +if [[ -n "$FTP_PASSWORD" ]]; then + export FTP_PASSWORD +fi LOGFILE="${LOGDIR}${LOG_FILE}" DUPLICITY="$(which duplicity)" From dbf78cfcd6fe810496ee98c1aab63924993e5697 Mon Sep 17 00:00:00 2001 From: zertrin Date: Mon, 22 Jul 2013 11:59:41 +0200 Subject: [PATCH 2/2] Better explanation of the FTP_PASSWORD variable based on official documentation --- duplicity-backup.conf.example | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example index 3fb5a7d..72fd868 100644 --- a/duplicity-backup.conf.example +++ b/duplicity-backup.conf.example @@ -104,10 +104,15 @@ DEST="s3+http://backup-bucket/backup-folder/" #DEST="ssh://user[:password]@other.host[:port]/[/]some_dir" #DEST="file:///home/foobar_user_name/new-backup-test/" -# FTP PASSWORD -# If you want to set a ftp password without a ftp:// you can to set a password -# in a FTP_PASSWORD -#FTP_PASSWORD="your_ftp_password" +# DESTINATION BACKEND PASSWORD +# Instead of setting the password needed for the backup destination in the +# DEST url, you can supply it in the FTP_PASSWORD variable below, which is +# used by most, if not all backends, regardless of it’s name. +# Duplicity's official documentation states: +# "Supported by most backends which are password capable. More secure than +# setting it in the backend url (which might be readable in the operating +# systems process listing to other users on the same machine)." +#FTP_PASSWORD="password" # INCLUDE LIST OF DIRECTORIES # Here is a list of directories to include; if you want to include