Created
October 17, 2013 08:52
-
-
Save fhemberger/7021450 to your computer and use it in GitHub Desktop.
How to easily backup your Uberspace (http://uberspace.de) account with rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gem | |
.npm | |
cgi-bin | |
fcgi-bin | |
html | |
lib | |
man | |
share | |
tmp | |
**/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
HOST=your_uberspace_host | |
USER=your_username | |
DESTINATION="/BACKUP/$USER_$HOST" | |
rsync -avxhz \ | |
--progress \ | |
--timeout=30 \ | |
--delete-excluded \ | |
--exclude-from=backup-uberspace.exclude \ | |
$HOST:"/home/$USER /var/www/virtual/$USER" \ | |
$DESTINATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment