Last active
June 5, 2017 10:59
-
-
Save keithmorris/5c8167a5774ff80e868d to your computer and use it in GitHub Desktop.
Revisions
-
keithmorris revised this gist
Sep 3, 2014 . 1 changed file with 0 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +0,0 @@ -
keithmorris created this gist
Sep 3, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ /.fseventsd /.vol /.DocumentRevisions-V100 /.PKInstallSandboxManager /.Spotlight-V100 .Trashes .Trash /.file /dev/* /proc/* /sys/* /tmp/* /run/* /mnt/* /media/* /lost+found /Volumes This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash src=/Users/kmorris backupPath=/Volumes/Backups/backups date=`date "+%Y-%m-%dT%H%M%S"` dirname=backup_$date excludeFile=/Users/kmorris/bin/backup-excludes.txt rsync -aAXPlv --exclude-from=$excludeFile --link-dest=$backupPath/latest $src $backupPath/$dirname rm -f $backupPath/latest ln -s $backupPath/$dirname $backupPath/latest