This is just a low-priority suggestion, but I perhaps it will be interesting for someone.
With sensitive data it is often important to encrypt backups. The easiest way is to ask the user for a password, store it to a file and then filter (compressed) data through a gpg filter. Personally, I'm using something like this:
gpg --personal-cipher-preferences AES256,AES192,TWOFISH,AES,BLOWFISH --pgp7 --symmetric --compress-algo none --passphrase-file file-with-the-password --batch --no-use-agent