Koozali.org: home of the SME Server

changes yearlykeep in mybackup-job.pl

Offline LIV

  • 2
  • +0/-0
changes yearlykeep in mybackup-job.pl
« 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.

Offline Frank VB

  • ***
  • 127
  • +0/-0
Re: changes yearlykeep in mybackup-job.pl
« Reply #1 on: November 18, 2008, 11:51:56 AM »
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:
Code: [Select]
affa --statusThis 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"):
Code: [Select]
db affa setprop job1 yearlyKeep 1Check your work:
Code: [Select]
db affa show job1Now you can cleanup the old backups with the command:
Code: [Select]
affa --cleanup job1
The Affa contrib has an excellent Wiki with all relevant information: http://wiki.contribs.org/Affa#Description

HTH
« Last Edit: November 18, 2008, 12:31:06 PM by frankvb »

Offline LIV

  • 2
  • +0/-0
Re: changes yearlykeep in mybackup-job.pl
« Reply #2 on: November 18, 2008, 12:23:54 PM »
Thank you.....

Offline m

  • ****
  • 276
  • +0/-0
  • Peet
Re: changes yearlykeep in mybackup-job.pl
« Reply #3 on: November 18, 2008, 01:13:23 PM »
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