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

change: Fixed backup from docker folder

This commit is contained in:
Sayantan Santra 2023-06-29 22:13:50 -05:00
parent a1d4c6225a
commit 7e98197317
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -32,15 +32,8 @@ echo $'\n'$(date) "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo "--------------------------------------------------" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo $(date) "| Backing up simply-shorten database..." | tee -a "$BKDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$HMDIR/Docker/simply-shorten/urls.sqlite" "$BKDIR/Programs/Docker/simply-shorten-backup.sqlite" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo $'\n'$(date) "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
echo $(date) "| Backing up wikijs database..." | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo $(date) "| Backing up wikijs database..." | tee -a "$BKDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$HMDIR/Docker/wikijs/database.sqlite" "$BKDIR/Programs/Docker/wikijs/database.sqlite" | tee -a "$BKDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats "$HMDIR/Docker/wikijs/storage/" "$BKDIR/Programs/wikijs-storage/" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$HMDIR/Docker/wikijs/storage/" "$BKDIR/Programs/Docker/wikijs/storage/" | 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"