From f851a95bdf36f3756430bf3ea3daace8a738561e Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 26 Jul 2025 22:13:44 -0300 Subject: [PATCH] some tweaks lol --- nas-gdrive-backup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nas-gdrive-backup.sh b/nas-gdrive-backup.sh index b05580e..fc729f9 100644 --- a/nas-gdrive-backup.sh +++ b/nas-gdrive-backup.sh @@ -33,7 +33,7 @@ create_7z() { local folder="$1" local archive_name="$2" log "Creating 7zip archive of $folder" - 7z a -p"$ZIP_PASSWORD" -mhe=on -mx=5 "$archive_name" "$folder" + 7z a -p"$ZIP_PASSWORD" -mhe=on -mx=3 "$archive_name" "$folder" if [ $? -ne 0 ]; then log "ERROR: Failed to create 7zip archive of $folder" fi @@ -242,7 +242,7 @@ install_script() { install_log_info "Verifying existing .sha256 files in $META_DIR" for file in "$META_DIR"/*; do if [ -f "$file" -a -name "*.sha256" ]; then - install_log_info "Found .sha256 file: \e[96m\e[4m$file\e[0m" + install_log_info "Found .sha256 file: $file" read -p "Do you want to remove this file? [y/N]: " choice /dev/null; echo "30 23 * * 1,5 $0 > /tmp/nas-gdrive-backup.log") | crontab - - install_log_ok "Cron job set up to run $0 every Monday and Friday at 23:30" + (crontab -l 2>/dev/null; echo "55 23 * * 1 $0 > /tmp/nas-gdrive-backup.log") | crontab - + install_log_ok "Cron job set up to run $0 every Monday at 23:55" install_log_separator echo -e ""