add workstation backup file
This commit is contained in:
parent
0c0d533269
commit
ea3c3a39ef
21
rsync.workstation.backup/media-backup.sh
Executable file
21
rsync.workstation.backup/media-backup.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function do_media_backup () {
|
||||||
|
DST="/Volumes/mediabackup-primary/sneak.media.backups"
|
||||||
|
if [[ ! -d $DST ]] ; then
|
||||||
|
echo "destination $DST not found, exiting!" > /dev/stderr
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
R="rsync -avP --delete --delete-excluded"
|
||||||
|
|
||||||
|
$R $HOME/Pictures/LightroomMasters/ $DST/LightroomMasters/
|
||||||
|
E=''
|
||||||
|
E+=" --exclude='**/Lightroom?Catalog?Previews.lrdata'"
|
||||||
|
$R $E $HOME/Pictures/Lightroom/ $DST/Lightroom/
|
||||||
|
E=''
|
||||||
|
$R $HOME/BigDocs/sneak-shot-video/ $DST/sneak-shot-video/
|
||||||
|
}
|
||||||
|
|
||||||
|
do_media_backup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user