Skip to content

Commit 7eb4bfb

Browse files
committed
Add --size-only option to some more backup scripts.
1 parent e5b1315 commit 7eb4bfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backup-fotos-to-usbdisk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ find_usb_mount () {
7070
# SCRIPT
7171
find_usb_mount
7272
doeldir="$usbmount/FOTO'S/$(date +%y-%m-%d)"
73-
time /usr/bin/rsync -av --no-perms --no-owner --no-group "/data/foto/Harm/" "$doeldir" || die 5 "Er ging iets fout. Bel Alex."
73+
time /usr/bin/rsync -av --no-perms --no-owner --no-group --size-only "/data/foto/Harm/" "$doeldir" || die 5 "Er ging iets fout. Bel Alex."
7474

7575
printf '%s\n\n' "Ik haal nog wat informatie op ter controle:"
7676

backup-homedir-to-usbdisk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ find_usb_mount () {
6969
# SCRIPT
7070
find_usb_mount
7171
doeldir="$usbmount/DOCUMENTEN/DOCUMENTEN $(date +%y-%m-%d)"
72-
time /usr/bin/rsync -av --no-perms --no-owner --no-group "${HOME}/DOCUMENTEN/" "$doeldir" || die 5 "Er ging iets fout. Bel Alex."
72+
time /usr/bin/rsync -av --no-perms --no-owner --no-group --size-only "${HOME}/DOCUMENTEN/" "$doeldir" || die 5 "Er ging iets fout. Bel Alex."
7373

7474
printf '%s\n\n' "Ik haal nog wat informatie op ter controle:"
7575

0 commit comments

Comments
 (0)