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

14 lines
418 B
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
echo `date` "| Backing up Documents..." | tee -a logfile
2021-12-02 13:32:27 -06:00
rsync -aAXH --delete --stats src dest | tee -a logfile
echo $'\n'`date` "| Done!" | tee -a logfile
echo "----------" | tee -a logfile
2021-12-26 23:28:22 -06:00
# Do as many times as needed with dest, src, logfile etc replaced with proper locations
2021-12-17 22:09:50 -06:00
2021-12-02 13:32:27 -06:00
echo $'\n'"--------------------------------------------------" | tee -a logfile