Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: chrislaurie on November 11, 2013, 05:04:52 AM
-
Hi All
I am trying to move a server from 7.5.1 to 8 using affa.
All is going OK except I have added /opt as explained here http://wiki.contribs.org/Backup_with_dar#Adding.2FExcluding_Directories_and_Files_from_the_backup_list (http://wiki.contribs.org/Backup_with_dar#Adding.2FExcluding_Directories_and_Files_from_the_backup_list)
But /opt is not backed up.
If I look in /etc/dar/DailyBackup.dcf (after the template expand) on the prodserver then the --go-into opt is listed there, but affa does not include it.
Any suggestions please?
-
You are adding a directory for the inbuilt backup routines NOT Affa..
You will need to configure Affa as per the Affa wiki: http://wiki.contribs.org/Affa#Job_configuration_properties
-
Thanks for the answer TerryF! I was under the impression that affa reads the same config files.
I will add /opt into an include in the prodserv.pl file on the affa box.
-
It does not work :-(
When using the moving to a new server method here: http://wiki.contribs.org/Moving_SME_to_new_Hardware (http://wiki.contribs.org/Moving_SME_to_new_Hardware) Where must I put the 'Include[0]'=>'/opt'?
According to the Affa configs the pl file should be in root. If I do a search for prodserv-setup.pl, I find only 2 files. Both of them inside the 2 backups done: /var/affa/prodserv/scheduled
Editing either of those files does not affect the next affa job.
It looks like affa is building the pl file on the fly. So where can I tell affa to incude /opt?
-
The perl is just script to setup the db.
You can check it by using db commands, just examples...
[root@smeserver ~]# db affa show JobName
[root@smeserver ~]# db affa getprop JobName Include[0]
[root@smeserver ~]# db affa setprop JobName Include[0] /opt
-
chrislaurie
I think you need to edit the affa job.pl file that is on the server you are backing up from, not the server you are backing up to.
-
The db setprop method by elmarconi above is the correct method. Replace JobName with prodserv in my case.
There is no pl file on prodserv - the settings are stored in the db and the pl file is generated when you do affa --run JobName