From 03331c2df2bd7cd0e4701007437e38317ad7087d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 14 Dec 2022 18:07:18 -0600 Subject: [PATCH] Add backup for simply-shorten --- impfilesbk_server | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/impfilesbk_server b/impfilesbk_server index 1674bae..11ddee3 100644 --- a/impfilesbk_server +++ b/impfilesbk_server @@ -28,6 +28,12 @@ echo $'\n'`date` "| Done!" | 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 Docker compose files..." | tee -a "$BKDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats --prune-empty-dirs -f '- /*/*/' "$HMDIR/Docker/" "$BKDIR/Programs/Docker/DockerCompose/" | tee -a "$BKDIR/TempStorage/impfilesbk.log" echo $'\n'`date` "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log"