From c0ede01f95ca82a7991a64b6032998a6b855fa9c Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Sat, 13 Jan 2018 18:04:41 +0100 Subject: [PATCH] Exclude id file from backup :monkey: --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 0c96ec6..8777885 100755 --- a/backup.sh +++ b/backup.sh @@ -68,7 +68,7 @@ BACKUP_PATH=$STORAGE_MOUNT_POINT/"$ID" sudo lsblk > lsblk.log # Perform backup using rsync -rsync -avh $CARD_MOUNT_POINT/ $BACKUP_PATH +rsync -av --exclude "*.id" $CARD_MOUNT_POINT/ $BACKUP_PATH # Turn off the ACT LED to indicate that the backup is completed sudo sh -c "echo 0 > /sys/class/leds/led0/brightness" fi