Exclude id file from backup 🐒

This commit is contained in:
Dmitri Popov
2018-01-13 18:04:41 +01:00
committed by GitHub
parent e1c6695d21
commit c0ede01f95

View File

@@ -68,7 +68,7 @@ BACKUP_PATH=$STORAGE_MOUNT_POINT/"$ID"
sudo lsblk > lsblk.log sudo lsblk > lsblk.log
# Perform backup using rsync # 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 # Turn off the ACT LED to indicate that the backup is completed
sudo sh -c "echo 0 > /sys/class/leds/led0/brightness" sudo sh -c "echo 0 > /sys/class/leds/led0/brightness"
fi fi