mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 21:18:36 -06:00
Compare commits
3 commits
294ec74155
...
afae0e15d9
Author | SHA1 | Date | |
---|---|---|---|
afae0e15d9 | |||
8d8e3b76c9 | |||
d37d96f834 |
1 changed files with 14 additions and 1 deletions
15
impfilesbk
15
impfilesbk
|
@ -19,7 +19,7 @@ echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | tee -a "$HMDIR/TempS
|
|||
echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo $(date) "| Backing up Documents..." | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats --exclude '*Rust/*/target/' "$HMDIR/Documents/" "$BKDIR/Documents/" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats "$HMDIR/Documents/" "$BKDIR/Documents/" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
echo $'\n'$(date) "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
@ -30,6 +30,13 @@ echo $'\n'$(date) "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
|||
|
||||
echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo $(date) "| Backing up Code..." | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats --exclude '*/*/target/' --exclude 'git/*/lake-packages/' \
|
||||
--exclude 'git/*/build/' "$HMDIR/Code/" "$BKDIR/Code/" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
echo $'\n'$(date) "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo $(date) "| Backing up Pictures..." | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats "$HMDIR/Pictures/" "$BKDIR/Pictures/" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
echo $'\n'$(date) "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
|
||||
|
@ -90,6 +97,12 @@ echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
|||
|
||||
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo $(date) "| Pushing Code to server..." | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats "$HMDIR/Code/" "$BKDIR/Code/" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
|
||||
echo $(date) "| Pushing Pictures to server..." | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
rsync -aAXH --delete --stats --no-links "$HMDIR/Pictures/" "$BKDIR/Pictures/" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||
|
|
Loading…
Reference in a new issue