updated forgejo dump backup location

This commit is contained in:
Joseph Hanson 2025-01-03 17:38:24 -06:00
parent 46b304ceb4
commit 9cbf1434f9
2 changed files with 6 additions and 3 deletions

View file

@ -1,8 +1,8 @@
# Set the backup directory
BACKUP_DIR="/var/lib/forgejo/dump"
BACKUP_DIR="/mnt/storage/forgejo/backups"
# Keep the 3 most recent backups
KEEP_NUM=3
KEEP_NUM=7
echo "Starting backup cleanup process..."
echo "Keeping the $KEEP_NUM most recent backups in $BACKUP_DIR"

View file

@ -31,7 +31,10 @@ in
enable = true;
package = cfg.package;
# enable sql db dumps daily
dump.enable = true;
dump = {
enable = true;
backupDir = "/mnt/backup/forgejo/backups/";
};
database.type = "postgres";
# Enable support for Git Large File Storage
lfs.enable = true;