updated external_backup script

This commit is contained in:
naturallaw77 2024-03-18 23:20:03 -07:00
parent cdfdfd211e
commit 631c1d543f

View File

@ -18,7 +18,7 @@ time_stamp=$(date +%Y-%m-%d-%T)
mkdir -p /home/free/Documents/External_Backup_Logs mkdir -p /home/free/Documents/External_Backup_Logs
if ! ssh root@localhost 'rsync -ar /run/media/Second_Drive/BTCEcoandBackup/NixOS_Snapshot_Backup/hourly.0 /"$file"/"$time_stamp" 2>&1 | tee /home/free/Documents/External_Backup_Logs/{$time_stamp}_External_Backup_Log.txt'; then if ! ssh root@localhost 'rsync -avr /run/media/Second_Drive/BTCEcoandBackup/NixOS_Snapshot_Backup/hourly.0 /"$file"/"$time_stamp" 2>&1 | tee /home/free/Documents/External_Backup_Logs/"$time_stamp"_External_Backup_Log.txt'; then
zenity --error \ zenity --error \
--width=500 \ --width=500 \
@ -55,7 +55,10 @@ else
CHOOSE CHOOSE
SAGE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Backing up now. It could take up to 4 hours for it to finish depending on the amount of data stored on your Sovran Pro and the speed of your external hard drive. Be patient..." --title="Sovran_SystemsOS External Backup" SAGE | zenity --progress --no-cancel --auto-close --width=1050 --pulsate --text="Backing up now. It could take up to 4 hours for it to finish depending on the amount of data stored on your Sovran Pro and the speed of your external hard drive. Be patient..." --title="Sovran_SystemsOS External Backup"
find /home/free/Documents/External_Backup_Logs -name "*.txt" -type f -mtime +3 -delete
fi fi
exit 0 exit 0