Koozali.org: home of the SME Server

[SOLVED]Affa does not include /opt

Offline chrislaurie

  • *
  • 96
  • +0/-0
[SOLVED]Affa does not include /opt
« 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

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?
« Last Edit: November 11, 2013, 07:31:20 PM by chrislaurie »

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Affa does not include /opt
« Reply #1 on: November 11, 2013, 05:19:06 AM »
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

--
qui scribit bis legit

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Affa does not include /opt
« Reply #2 on: November 11, 2013, 06:04:02 AM »
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.

Offline chrislaurie

  • *
  • 96
  • +0/-0
Re: Affa does not include /opt
« Reply #3 on: November 11, 2013, 04:07:44 PM »
It does not work  :-(

When using the moving to a new server method here: 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?

Offline elmarconi

  • ***
  • 139
  • +0/-0
Re: Affa does not include /opt
« Reply #4 on: November 11, 2013, 04:30:57 PM »
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
...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Affa does not include /opt
« Reply #5 on: November 11, 2013, 04:46:49 PM »
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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline chrislaurie

  • *
  • 96
  • +0/-0
[SOLVED]Re: Affa does not include /opt
« Reply #6 on: November 11, 2013, 07:30:35 PM »
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