Add checkbox to enable time machine to home share
It would be helpful to be able to edit the parameters for the home share that is placed in afp.conf and/or be able to have a checkbox to enable Time Machine lock stealing on users' afp home shares.
I've been trying to setup a FreeNAS 11 system to serve as a Time Machine server for multiple users/clients. All the forum threads that I've read have people either creating separate zfs targets for each user/client or creating 1 share and granting all users access to see it. Neither of this will work in my environment, so I'm trying to achieve the same setup I have on my old Debian Linux server running netatalk/afpd that is currently handling backups with this configuration:
~/ "home" cnidscheme:dbd options:usedots,upriv,tm,noadouble ea:ad
The above basically translates to each user has access to their home directory which is shared via netatalk/afpd and enables TM Lock Stealing which is required for Mac clients to be able to use the resulting shares for Time Machine.
I couldn't find a way to achieve this setup with the FreeNAS Web UI, but I was able to manually modify /etc/local/afpd.conf to add 1 line to the [Homes] section that does the job:
basedir regex = /path/to/home/dirs
home name = home
time machine = yes
Adding that last line and HUP'ing the afpd process does the trick. The problem is, anytime the AFP service is restarted the middleware wipes out my custom change which results in the home shares no longer being valid Time Machine destinations. I'm considering writing a script to watch the file, update it when necessary & HUP afpd ... but I was wondering if anyone else has either come across this issue or come across a similar issue and knows of a way to "fix" FreeNAS so manual changes to configuration files will persist. I attempted to modify the /conf/base/etc/local/afpd.conf & /conf/base/etc/local/afpd.conf.sample files hoping that was where the middleware was starting off but that doesn't seem to do the trick.
EDIT/TLDR: I guess the gist of what I'm interested in is if anyone knows how to customize the home share. I'm currently doing so from a non-standard/supported approach but would like to be able to set my own options on the home share in afpd.conf and the FreeNAS UI doesn't seem to provide a way to do this.
#12 Updated by Bonnie Follweiler about 3 years ago
- File Screen Shot 2017-10-18 at 11.48.27 AM.png Screen Shot 2017-10-18 at 11.48.27 AM.png added
- Needs QA changed from Yes to No
- QA Status Test Passes FreeNAS added
- QA Status deleted (
Test passed in FreeNAS-11-MASTER-201710180506