Skip to content

Commit

Permalink
fix: Fix the bug of not deleting files (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab authored Nov 15, 2024
1 parent 6042860 commit da6fd8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -867,13 +867,17 @@ fi
cat <<EOL > "$backup_script"
#!/bin/bash
set -e
ip=\$(hostname -I | awk '{print \$1}')
timestamp=\$(TZ='Asia/Tehran' date +%m%d-%H%M)
base_name="/root/${name}_\${timestamp}."
backup_name="/root/${name}_\${timestamp}${compression_ext}"
base_name="/root/${name}_\${timestamp}_backuper."
backup_name="/root/${name}_\${timestamp}_backuper${compression_ext}"
caption="${CAPTION_TEXT}"
rm -f "\$backup_name"*
rm -f *"_backuper.sql"
$(echo -e "$rm_commands")
$(echo -e "$DB")
Expand Down

0 comments on commit da6fd8c

Please sign in to comment.