Skip to content

Commit

Permalink
Only keep 10 days of forgejo backups locally, only run backups during…
Browse files Browse the repository at this point in the history
… daytime
  • Loading branch information
acrn committed Jan 7, 2025
1 parent 1febb3a commit 3ce36a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/forgejo/backup.erb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
second_status=${?}
if [[ ${second_status} -eq 0 ]]; then
echo "Cleaning up old backups: $(date)"
find "${backup_dir}" -mtime +30 -delete
find "${backup_dir}" -mtime +10 -delete
else
echo "Backup to remote failed: $(date)"
fi
Expand Down

0 comments on commit 3ce36a1

Please sign in to comment.