2021-12-28 02:54:26 -06:00
|
|
|
#!/bin/sh
|
2021-11-27 19:30:34 -06:00
|
|
|
|
2021-12-02 13:32:27 -06:00
|
|
|
# This script backs up some important stuff
|
2021-11-27 19:30:34 -06:00
|
|
|
|
2022-06-15 01:46:58 -05:00
|
|
|
# Setup location for home and backup directory
|
2022-06-15 01:31:38 -05:00
|
|
|
HMDIR=/home/sintan
|
|
|
|
BKDIR=/mnt/storage/sintan
|
2021-12-02 13:32:27 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo `date` "| Backing up 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
|
2021-11-27 19:30:34 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo "----------" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
2021-12-17 22:09:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo `date` "| Backing up Academics..." | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
rsync -aAXH --delete --stats $HMDIR/Academics/ $BKDIR/Academics/ | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
echo $'\n'`date` "| Done!" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
2022-01-13 12:04:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo "----------" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
2022-01-13 12:04:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
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
|
2022-01-13 12:04:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo "----------" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
2022-01-13 12:04:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo `date` "| Backing up Zotero..." | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
rsync -aAXH --delete --stats $HMDIR/Zotero/ $BKDIR/Zotero/ | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
echo $'\n'`date` "| Done!" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
2022-01-13 12:04:50 -06:00
|
|
|
|
2022-06-15 01:31:38 -05:00
|
|
|
echo `date` "| Backing up some config files and stuff..." | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
rsync -aAXH --delete --stats $HMDIR/.config $HMDIR/.tmux.conf $HMDIR/.profile $HMDIR/.bashrc $HMDIR/.Xresources $HMDIR/.local/bin/personal $HMDIR/.ssh $BKDIR/config/ | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
echo $'\n'`date` "| Done!" | tee -a $HMDIR/TempStorage/impfilesbk.log
|
|
|
|
|
|
|
|
echo $'\n'"--------------------------------------------------" | tee -a $HMDIR/TempStorage/impfilesbk.log
|