From 8126d44286f8bab7ebdb2f0fc64d2f980a33cff2 Mon Sep 17 00:00:00 2001 From: salam Date: Tue, 7 Jul 2026 11:51:45 +0200 Subject: [PATCH] wip --- .gitignore | 1 + storage/backup_database/backup_db.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5832008..bf5c32a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ /public/hot /storage/*.key /storage/pail +/storage/backup_database/archive /vendor Homestead.json Homestead.yaml diff --git a/storage/backup_database/backup_db.sh b/storage/backup_database/backup_db.sh index 550bf53..30e7229 100644 --- a/storage/backup_database/backup_db.sh +++ b/storage/backup_database/backup_db.sh @@ -9,7 +9,7 @@ USER='root' # Username PASSWORD='salam' # Password DB='nutzwerte_fi4' DAYS_TO_KEEP=60 # Delete backups older than X days -GZIP=1 # 1 = gzip compression, 0 = plain .sql +GZIP=0 # 1 = gzip compression, 0 = plain .sql BACKUP_PATH='/var/www/html/nutzwerte_fi4/storage/backup_database/archive' # Location to store backups #TIMESTAMP=$(date +"%d_%m_%Y_%H_%M_%S") # Date-time for unique file names TIMESTAMP=$(date -d "yesterday" +"%d_%m_%Y") #Date-time for previous date file names. reminder here crontab use after 12 am