some tweaks lol
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 22s
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 22s
This commit is contained in:
@@ -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/tty
|
||||
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
||||
install_log_info "Removing $file"
|
||||
@@ -266,8 +266,8 @@ install_script() {
|
||||
install_log_separator
|
||||
|
||||
install_log_info "Setting up cron job for backup script"
|
||||
(crontab -l 2>/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 ""
|
||||
|
Reference in New Issue
Block a user