1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00

improved impfilesbk

This commit is contained in:
Sayantan Santra 2021-12-02 13:32:27 -06:00
parent 3be16dd8bd
commit 9dfb014242

View file

@ -1,15 +1,21 @@
#!/bin/bash #!/bin/bash
# This is to backup some important stuff # This script backs up some important stuff
echo `date` "| Backing up Documents..." | tee -a logfile echo `date` "| Backing up Documents..." | tee -a logfile
rsync -aAXH --delete source dest rsync -aAXH --delete --stats src dest | tee -a logfile
echo "Done!" | tee -a logfile echo $'\n'`date` "| Done!" | tee -a logfile
echo "----------" | tee -a logfile
echo `date` "| Backing up Academics..." | tee -a logfile echo `date` "| Backing up Academics..." | tee -a logfile
rsync -aAXH --delete source dest rsync -aAXH --delete --stats src dest | tee -a logfile
echo "Done!" | tee -a logfile echo $'\n'`date` "| Done!" | tee -a logfile
echo "----------" | tee -a logfile
echo `date` "| Backing up Pictures..." | tee -a logfile echo `date` "| Backing up Pictures..." | tee -a logfile
rsync -aAXH --delete source dest rsync -aAXH --delete --stats src dest | tee -a logfile
echo "Done!" | tee -a logfile echo $'\n'`date` "| Done!" | tee -a logfile
echo $'\n'"--------------------------------------------------" | tee -a logfile