Created
December 20, 2012 20:24
-
-
Save scottjacobsen/4348237 to your computer and use it in GitHub Desktop.
sort of time machine like backup using rdiff-backup
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/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