mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 21:18:36 -06:00
Add backup for simply-shorten
This commit is contained in:
parent
6813711170
commit
03331c2df2
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,12 @@ 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 Docker compose files..." | 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"
|
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"
|
echo $'\n'`date` "| Done!" | tee -a "$BKDIR/TempStorage/impfilesbk.log"
|
||||||
|
|
Loading…
Reference in a new issue