Skip to content

Instantly share code, notes, and snippets.

@scottjacobsen
Created April 6, 2013 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottjacobsen/5327467 to your computer and use it in GitHub Desktop.
Save scottjacobsen/5327467 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ -d /mnt/yavin/hoth ]]; then
nice -n15 /usr/bin/rdiff-backup --exclude=/boot --exclude=/dev --exclude=/**/.gvfs --exclude=/media --exclude=/mnt --exclude=/proc --exclude=/sys --exclude=/lib/udev --exclude=/tmp --exclude=/home/scott/.mozilla/firefox/jxg17tdp.default/Cache --exclude=/usr/portage/distfiles --exclude=/var/tmp/portage --exclude=/var/run --exclude=/home/scott/.VirtualBox/HardDisks/SQLData.vdi / /mnt/yavin/hoth/current
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment