mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 21:18:36 -06:00
improved impfilesbk
This commit is contained in:
parent
3be16dd8bd
commit
9dfb014242
1 changed files with 13 additions and 7 deletions
20
impfilesbk
20
impfilesbk
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue