From 5620ff718efb43be1f1a7d26de65f7e4b4b172fc Mon Sep 17 00:00:00 2001 From: arielherself Date: Tue, 19 Mar 2024 12:29:33 +0800 Subject: [PATCH] --- .gitignore | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c2f6ae7..4f06a8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -gitea_backups +gitea-backups/ diff --git a/docker-compose.yml b/docker-compose.yml index 1d901b9..06df18c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,8 @@ services: environment: BACKUP_FILENAME: backup-%y-%m-%dT%H-%M-%S.tar.gz BACKUP_LATEST_SYMLINK: backup-latest.tar.gz + BACKUP_CRON_EXPRESSION: "0 */12 * * *" + BACKUP_RETENTION_DAYS: 7 volumes: - gitea:/backup/my-app-backup:ro - /var/run/docker.sock:/var/run/docker.sock:ro