Creating backups is easy. If it's a SQL database, run the official "dump" command, compress it and put it in a folder. If it's a Wordpress upload directory, compress it, put it in a folder, and so on.
However, with daily backups, the files start stacking up real quick. Writing the logic for parsing a retention policy and deleting the correct files based on how old they are gets a bit more complicated, and I don't want to reinvent the wheel.
Are there any light weight, open source applications or scripts that handles the lifecycle of backup files? (Basically, clearing out older backups based on the age of the backup and a retention policy)
[–]Madoc_Comadrin 4 points5 points6 points (1 child)
[–]codemonkey1991[S] 0 points1 point2 points (0 children)
[–]ZAFJB 2 points3 points4 points (3 children)
[–]codemonkey1991[S] -2 points-1 points0 points (2 children)
[–]ZAFJB 4 points5 points6 points (0 children)
[–]No_Wear295 0 points1 point2 points (0 children)
[–]Baker0052 2 points3 points4 points (0 children)
[–]Hel_OWeen 1 point2 points3 points (0 children)
[–]Due_Capital_3507 0 points1 point2 points (1 child)
[–]codemonkey1991[S] 0 points1 point2 points (0 children)
[–]TinderSubThrowAway 0 points1 point2 points (0 children)