Skip to content

Instantly share code, notes, and snippets.

@dtateii
Last active August 29, 2015 14:04
Show Gist options
  • Save dtateii/b16cece52888556754e1 to your computer and use it in GitHub Desktop.
Save dtateii/b16cece52888556754e1 to your computer and use it in GitHub Desktop.
#!/bin/sh
# http://www.rackspace.com/knowledge_center/article/how-to-use-cron-to-backup-cloudsites-to-cloudfiles
# Extract archive
#Set information specific to your site
webroot="www.domain.com"
backupname="2015-01-31_13:34/web.tar.gz"
#Backup Site
tar -zxf $webroot/archive/$backupname -C $webroot/restore
echo "$backupname extracted."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment