Hello, I'm using affa version 0.9.0-5.el4.sme, I have an NFS NAS in the same subnet as the affa backup server, I setup the affa job to AutoMount the NFS Share when needed, and according to the wiki, I found an interesting AutoUnmount feature, not present in the pl job file, I added this value to the hash, here is the configuration from the command db affa show soalsv02:
AutoUnmount=yes
AutomountDevice=10.0.123.15:/nas/NASDisk-00003/public
AutomountOptions=-t nfs
AutomountPoint=/mnt/soalns01
ConnectionCheckTimeout=120
Debug=no
Description=Backup della macchina soalsv02
DiskSpaceWarn=strict
EmailAddresses=gabrieletassoni@softwarealchemy.local
Exclude[0]=
Include[0]=
RPMCheck=no
RootDir=/mnt/soalns01
SMEServer=yes
TimeSchedule=2230
Watchdog=yes
chattyOnSuccess=1
dailyKeep=28
doneDaily=
doneMonthly=
doneWeekly=
doneYearly=
localNice=0
monthlyKeep=12
postJobCommand=
preJobCommand=
remoteHostName=localhost
remoteNice=0
rsync--inplace=yes
rsync--modify-window=0
rsyncCompress=yes
rsyncTimeout=900
scheduledKeep=3
sshPort=22
status=enabled
weeklyKeep=5
yearlyKeep=1
I'm facing some problems, but don't know if they are bugs, or simple misinterpretations I made reading the wiki:
1) If the nfs share is already mounted, affa wil just send me an email telling me about an error and don't perform the backup at all (expected behavior: affa recognizes it's already mounted, and use it for backup, without complains), here is the relevant part:
Sun_Mar__9_14:54:21[22973]:_Affa_0.9.0-5:_Starting_job_soalsv02_scheduled_(localhost)
Sun_Mar__9_14:54:21[22973]:_Description:_Backup_della_macchina_soalsv02
Sun_Mar__9_14:54:21[22973]:_Mounting_10.0.123.15:/nas/NASDisk-00003/public_to_/mnt/soalns01
Exec_Out:_mount:_10.0.123.15:/nas/NASDisk-00003/public_already_mounted_or_/mnt/soalns01_busy
Exec_Out:_mount:_according_to_mtab,_10.0.123.15:/nas/NASDisk-00003/public_is_already_mounted_on_/mnt/soalns01
Exec_Out:_exitstatus=32
Sun_Mar__9_14:54:21[22973]:_Error_130:_Couldn't_mount_10.0.123.15:/nas/NASDisk-00003/public_/mnt/soalns01
2) If I manually umount the share, affa correctly tries to mount it before starting the backup, the nfs mounting takes about 2-3 minutes (never understood why, but all the nfs shres I had to use in my life, were really slow to be mounted). Then Affa manages to successfully backup the server to the nfs share, I can see it by issuing affa --list-archives soalsv02, but I still recieve 5 (five, one for yearly, one for monthly, one for weekly and one for daily, plus one for scheduled!) error emails which tells me the same error as above and never recieve a success email (as you can see I set chattyOnSuccess=1).
3) The AutoUnmount=yes directive seems not to be taken in consideration, the nfs share is still mounted after the job, being unable to umount it leads again to the problem number 1).
Thank you for this great contrib, and for the answers to these problems.