mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -06:00
13 lines
418 B
Bash
13 lines
418 B
Bash
#!/bin/sh
|
|
|
|
# This script backs up some important stuff
|
|
|
|
echo `date` "| Backing up Documents..." | tee -a logfile
|
|
rsync -aAXH --delete --stats src dest | tee -a logfile
|
|
echo $'\n'`date` "| Done!" | tee -a logfile
|
|
|
|
echo "----------" | tee -a logfile
|
|
|
|
# Do as many times as needed with dest, src, logfile etc replaced with proper locations
|
|
|
|
echo $'\n'"--------------------------------------------------" | tee -a logfile
|