1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-27 05:28:37 -06:00
random/impfilesbk

32 lines
2 KiB
Text
Raw Normal View History

2021-12-28 02:54:26 -06:00
#!/bin/sh
2021-12-02 13:32:27 -06:00
# This script backs up some important stuff
2022-01-13 12:04:50 -06:00
echo `date` "| Backing up Documents..." | tee -a /home/sintan/TempStorage/impfilesbk.log
rsync -aAXH --delete --stats /home/sintan/Documents/ /mnt/storage/sintan/Documents/ | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'`date` "| Done!" | tee -a /home/sintan/TempStorage/impfilesbk.log
2021-12-02 13:32:27 -06:00
2022-01-13 12:04:50 -06:00
echo "----------" | tee -a /home/sintan/TempStorage/impfilesbk.log
2022-01-13 12:04:50 -06:00
echo `date` "| Backing up Academics..." | tee -a /home/sintan/TempStorage/impfilesbk.log
rsync -aAXH --delete --stats /home/sintan/Academics/ /mnt/storage/sintan/Academics/ | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'`date` "| Done!" | tee -a /home/sintan/TempStorage/impfilesbk.log
2021-12-17 22:09:50 -06:00
2022-01-13 12:04:50 -06:00
echo "----------" | tee -a /home/sintan/TempStorage/impfilesbk.log
echo `date` "| Backing up Pictures..." | tee -a /home/sintan/TempStorage/impfilesbk.log
rsync -aAXH --delete --stats /home/sintan/Pictures/ /mnt/storage/sintan/Pictures/ | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'`date` "| Done!" | tee -a /home/sintan/TempStorage/impfilesbk.log
echo "----------" | tee -a /home/sintan/TempStorage/impfilesbk.log
echo `date` "| Backing up Zotero..." | tee -a /home/sintan/TempStorage/impfilesbk.log
rsync -aAXH --delete --stats /home/sintan/Zotero/ /mnt/storage/sintan/Zotero/ | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'`date` "| Done!" | tee -a /home/sintan/TempStorage/impfilesbk.log
echo `date` "| Backing up some config files and stuff..." | tee -a /home/sintan/TempStorage/impfilesbk.log
rsync -aAXH --delete --stats /home/sintan/.config /home/sintan/.tmux.conf /home/sintan/.profile /home/sintan/.bashrc /home/sintan/.Xresources /home/sintan/.local/bin/personal /home/sintan/.ssh /mnt/storage/sintan/config/ | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'`date` "| Done!" | tee -a /home/sintan/TempStorage/impfilesbk.log
echo $'\n'"--------------------------------------------------" | tee -a /home/sintan/TempStorage/impfilesbk.log