Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: LIV on November 18, 2008, 09:55:03 AM
-
I'm new to affa and have taken over the job of managing a sme/backupserver.
The backup is running low on diskcapacity, but the owners say, that they really don't need backups that are older than 1 year.
Can I edit mybackup-job.pl and change
'yearlyKeep'=>2,# integer >= 1
to
'yearlyKeep'=>1,# integer >= 1
without running into problems ?
Presently there are backuparchives older than 1 year and my expectation is that the nightly backupjob will remove those and leave more space on the disk.
-
LIV
You can change this setting through the console, you don't need to edit the .pl file if you only want to change one setting of the backup job. Log in on your SME backup server and issue the command:
affa --status
This will give you a listing of the jobs on your server. Then change the yearlykeep value for the job in question (let's suppose this job is called "job1"):
db affa setprop job1 yearlyKeep 1
Check your work:
db affa show job1
Now you can cleanup the old backups with the command:
affa --cleanup job1
The Affa contrib has an excellent Wiki with all relevant information: http://wiki.contribs.org/Affa#Description
HTH
-
Thank you.....
-
FYI: the new Affa 2 will allow yearlyKeep=0. Same for monthly, weekly and daily keep values.
Affa 2 is available as a beta version on http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/Affa2