1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 05:08:36 -06:00

Added versioning to PhotoPrism backup

This commit is contained in:
Sayantan Santra 2022-10-01 22:38:56 -05:00
parent 039b9d83d9
commit 7aeea878d0

View file

@ -11,7 +11,7 @@ HMDIR="/home/sintan"
BKDIR="/mnt/storage" BKDIR="/mnt/storage"
echo `date` "| Backing up PhotoPrism index..." | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo `date` "| Backing up PhotoPrism index..." | tee -a "$BKDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$HMDIR/Docker/PhotoPrism/storage/index-backup.sql" "$BKDIR/Programs/Docker/photoprism-backup.sql" | tee -a "$BKDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats "$HMDIR/Docker/PhotoPrism/storage/index-backup.sql" "$BKDIR/Programs/Docker/PhotoPrism/index-backup-"$(date +%A)".sql" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo $'\n'`date` "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo $'\n'`date` "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo "--------------------------------------------------" | tee -a "$BKDIR/TempStorage/impfilesbk.log"