Skip to content

Instantly share code, notes, and snippets.

@samurailink3
Created February 25, 2013 09:39
Show Gist options
  • Save samurailink3/5028756 to your computer and use it in GitHub Desktop.
Save samurailink3/5028756 to your computer and use it in GitHub Desktop.
This file can be used to backup a folder to RackSpace Cloud Files. In this current configuration, it can be used (with a properly configured emulationstation) to backup game emulation saves automatically via a cronjob.
#!/bin/bash
UPLOAD_TO_CONTAINER="$HOSTNAME-Saves" #adjust it as you like
export CLOUDFILES_USERNAME= # THIS IS YOUR RACKSPACE USERNAME #
export CLOUDFILES_APIKEY= # THIS IS YOUR RACKSPACE API KEY #
export PASSPHRASE=
export BACK_THIS_UP=/home/pi/saves
duplicity --no-encryption $BACK_THIS_UP cf+http://${UPLOAD_TO_CONTAINER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment