Comments on Creating Encrypted FTP Backups With duplicity And ftplicity On Debian Lenny

Creating Encrypted FTP Backups With duplicity And ftplicity On Debian Lenny When you rent a dedicated server nowadays, almost all providers give you FTP backup space for your server on one of the provider's backup systems. This tutorial shows how you can use duplicity and ftplicity to create encrypted (so that nobody with access to the backup server can read sensitive data in your backups) backups on the provider's remote backup server over FTP. ftplicity is a duplicity wrapper script that allows us to use duplicity without interaction (i.e., you do not have to type in any passwords).

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

ftplicity wont work with the newer version of duplicity

 root@master / # ftplicity backup
There has been a fatal error:
  Unsupported duplicity version 0.6.08b. 0.4.11 is recommended.

By: Jims ftp storage

Making sure your system is up to date first is vital for avoiding compatibility issues and a few bugs/annoyances later on. Trust me, I've been there!

By: Maik Holtkamp

I modified the script (which ftplicity), as follows:

line 36:
...
RECOMMENDED='0.6.08b'
...

to set the squeeze Version as recommended.

line 249:

... 
    0.4.7|0.4.11|0.6.08b)
...

to make sure the actual version of duplicty would not hit by the following case:

---cut---
*)
        error "$(getstr DuplVersUnsup)"
        ;;
---cut---

Seems to work. HTH

By: Maik Holtkamp

Sorry, but some hours later I have to admit:

If this error comes up because you updated lenny to squeeze, don't follow above given workaround, even if it works!

Squeeze offers duply the advancment of ftplicity. It will work with the duplicitiy version that comes with squeeze without any hacks, of course. One major difference is that duply offers so called profiles, so you can create and use different configs if you have different tasks. If you don't need it just create a default profile by whatsoever name, let's say foobar. Then do:

# apt-get install duply
# duply create foobar
# for i in ~/.duply/foobar/*; do mv $i ~/.duply/foobar/$i.original; done
# mv ~/.ftplicity/* ~/.duply/foobar/
# duply foobar backup

If you are using cronjobs or wraper scripts make sure to do a

s/ftplicity/duply foobar/g

on them. Have a look at the man page, there are quite some improvments made for duply e.g. PRE/POST run scripting.

Last not least one more general hint:

Bevore starting hacking scripts you hardly understand, just consult your $DISTRIBUTION_TOOLS:

--cut---
# apt-cache search ftplicity
duply - easy to use frontend to the duplicity backup system
---cut---