Skip to content

Instantly share code, notes, and snippets.

@fhemberger
Created October 17, 2013 08:52
Show Gist options
  • Save fhemberger/7021450 to your computer and use it in GitHub Desktop.
Save fhemberger/7021450 to your computer and use it in GitHub Desktop.
How to easily backup your Uberspace (http://uberspace.de) account with rsync
.gem
.npm
cgi-bin
fcgi-bin
html
lib
man
share
tmp
**/node_modules
#! /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