commit 55f43d587e9eccfba3efec515c6f3a284e0eac60 parent 22916fc6c39847d909a31c9d58a22fbd0230902a Author: Anders Damsgaard <andersd@riseup.net> Date: Mon, 25 Sep 2017 09:39:22 -0400 modify backup script for new drive structure Diffstat:
M | bin/photo-drive-sync.sh | | | 13 | ++----------- |
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/bin/photo-drive-sync.sh b/bin/photo-drive-sync.sh @@ -1,8 +1,7 @@ #!/bin/bash diskA=/Volumes/ANDERS -diskB=/Volumes/SUSAN -#diskC=/Volumes/misc +diskB=/Volumes/backup echo "Copying from local drive to first external drive ($diskA)" @@ -13,7 +12,7 @@ rsync -rav --progress ~/iCloud/Lightroom-exports $diskA/Anders\ flaptop/ # Capture One echo "Copying Capture One files to first external drive ($diskA)" -rsync -rav --progress ~/Pictures/Capture\ One\ Catalog.cocatalog $diskA/Anders\ flaptop/ +rsync -rav --progress --delete ~/Pictures/Capture\ One\ Catalog.cocatalog $diskA/Anders\ flaptop/ rsync -rav --progress ~/Pictures/CaptureOne\ exports $diskA/Anders\ flaptop/ # Photos.app @@ -39,11 +38,3 @@ if [ -d $diskB ]; then diskutil eject $diskB fi fi - -#if [ -d $diskC ]; then -# read -p "Unmount external drive $diskC? [y/N] " -n 1 -r -# echo -# if [[ $REPLY =~ ^[Yy]$ ]]; then -# diskutil eject $diskC -# fi -#fi