barakthecat Posted October 8, 2016 Share Posted October 8, 2016 Apparently as of Mac OS Sierra 10.12, Time Machine can run over SMB. However there is some work that needs to happen to make this work, so not just any SMB share will appear. Apple has a specification page for Time Machine over SMB. I know LimeTech has wanted to drop AFP support, getting Time Machine running over SMB would surely drop my resistance to that! https://developer.apple.com/library/content/releasenotes/NetworkingInternetWeb/Time_Machine_SMB_Spec/ 2 Quote Link to comment
kode54 Posted October 16, 2016 Share Posted October 16, 2016 You may want to request this from the Samba developers as well, since it's their software in use here. It may be a candidate for the vfs_fruit module. Quote Link to comment
justalex Posted December 11, 2016 Share Posted December 11, 2016 +1 for this function! Quote Link to comment
me.so.bad Posted March 24, 2017 Share Posted March 24, 2017 +1 Ref: https://bugzilla.samba.org/show_bug.cgi?id=12380 Quote Link to comment
wgstarks Posted September 23, 2017 Share Posted September 23, 2017 With macOS High Sierra, AFP has been deprecated. Time Machine backups via AFP will no longer be possible. I can see that some work is underway with vfs_fruit to support TM backups via samba. Hopefully LT will integrate this functionality soon. Quote Link to comment
gfjardim Posted September 25, 2017 Share Posted September 25, 2017 On 23/09/2017 at 9:36 AM, wgstarks said: With macOS High Sierra, AFP has been deprecated. Time Machine backups via AFP will no longer be possible. I can see that some work is underway with vfs_fruit to support TM backups via samba. Hopefully LT will integrate this functionality soon. I'm experiment with that right now. Apparently it's easier than you think with 6.4-rc9f 1 Quote Link to comment
wgstarks Posted September 25, 2017 Share Posted September 25, 2017 1 hour ago, gfjardim said: I'm experiment with that right now. Apparently it's easier than you think with 6.4-rc9f Does this permissions issue still occur in the latest RC? Pretty sure the ownership problems are being caused by vfs_fruit. Only happens when connecting as a registered user from a Mac. Quote Link to comment
gfjardim Posted September 25, 2017 Share Posted September 25, 2017 23 minutes ago, wgstarks said: Does this permissions issue still occur in the latest RC? Pretty sure the ownership problems are being caused by vfs_fruit. Only happens when connecting as a registered user from a Mac. I think it got fixed: [TimeMachine2] path = /mnt/user/TimeMachine2 ea support = Yes valid users = guilherme write list = guilherme vfs objects = catia fruit streams_xattr fruit:encoding = native fruit:locking = none fruit:metadata = netatalk fruit:resource = file root@Servidor:/mnt/user/TimeMachine2# ls -la total 24 drwxrwxrwx 1 nobody users 58 Sep 25 09:57 ./ drwxrwxrwx 1 nobody users 126 Sep 25 08:57 ../ -rw-rw-rw- 1 guilherme users 10244 Sep 25 09:58 .DS_Store drwx------ 1 guilherme users 4096 Sep 25 09:35 MacBook\ Air\ de\ Guilherme.sparsebundle/ drwxrwxrwx 1 guilherme users 31 Sep 25 09:58 Test\ Folder root@Servidor:/mnt/user/TimeMachine2/Test Folder# ls -la total 16 drwxrwxrwx 1 guilherme users 31 Sep 25 09:58 ./ drwxrwxrwx 1 nobody users 58 Sep 25 09:57 ../ -rw-rw-rw- 1 guilherme users 13304 Sep 25 09:58 test\ file.txt Quote Link to comment
SnickySnacks Posted September 26, 2017 Share Posted September 26, 2017 (edited) From what I see after upgrading to High Sierra, time machine backups *to* an APFS disk are not possible over AFP.However, I don't believe this affects backing up an APFS disk to Unraid (or other non-APFS disk). See here: https://support.apple.com/en-gb/HT208018 "Volumes formatted as APFS can't offer share points over the network using AFP. " "Any Time Machine share points must be shared over SMB instead of AFP." So the limitation isn't the source disk you are backing up, but rather the target disk you are backing up to. As far as I can tell, there's no issue continuing to use my existing Unraid backup target. Edited September 26, 2017 by SnickySnacks Quote Link to comment
wgstarks Posted September 26, 2017 Share Posted September 26, 2017 26 minutes ago, SnickySnacks said: "Any Time Machine share points must be shared over SMB instead of AFP." So your saying that this statement from Apple only applies if the source is AFPS and the target is also AFPS? Quote Link to comment
SnickySnacks Posted September 26, 2017 Share Posted September 26, 2017 (edited) 8 hours ago, wgstarks said: So your saying that this statement from Apple only applies if the source is AFPS and the target is also AFPS? I'm not sure. People online say that APFS target time machine disks will be converted to HFS because APFS can't be a Time Machine target. I did a quick test this morning and it seemed to work APFS -> Unraid but I didn't let it actually do the backup. The more I read today, the more worried I became that I was wrong so I took my work laptop back home and tried again. I can confirm that this *does* work. I suspect the restriction is backing up TO something running High Sierra requires SMB, but honestly I'm losing interest in verifying this. Edited September 27, 2017 by SnickySnacks Quote Link to comment
barakthecat Posted June 30, 2018 Author Share Posted June 30, 2018 Tried this again tonight on Unraid 6.5.3 and couldn't get it to work even after activating Enhanced OS X interoperability on the SMB settings. Anyone get this to work? Quote Link to comment
bland328 Posted September 4, 2018 Share Posted September 4, 2018 +1 I'm also trying to get Time Machine working over SMB between Unraid 6.5.3 and High Sierra, so if anyone has insight, it's much appreciated. Quote Link to comment
gfjardim Posted September 21, 2018 Share Posted September 21, 2018 (edited) Ok, got it, and it's should not be that difficult to implement. My idea is, when you enable Enhanced OS X interoperability, the UI should let user enable Time Machine (add fruit:time machine = yes in the share section in smb-shares.conf) and let the user set the maximum size (fruit:time machine max size = xxx [K|M|G|T|P] in the share section in smb-shares.conf). The only other thing needed is to advertise it using the Avahi SMB service: <service> <type>_adisk._tcp</type> <port>0</port> <txt-record>dk[number]=adVN=[share name],adVF=0x82</txt-record> </service> Just change the [number] with a disk number from 1-10000 and [share name] with the correct share name. Is it doable, @limetech and @bonienl? Edited September 21, 2018 by gfjardim Quote Link to comment
limetech Posted September 21, 2018 Share Posted September 21, 2018 12 minutes ago, gfjardim said: Ok, got it, and it's should not be that difficult to implement. My idea is, when you enable Enhanced OS X interoperability, the UI should let user enable Time Machine (add fruit:time machine = yes in the share section in smb-shares.conf) and let the user set the maximum size (fruit:time machine max size = xxx [K|M|G|T|P] in the share section in smb-shares.conf). The only other thing needed is to advertise it using the Avahi SMB service: <service> <type>_adisk._tcp</type> <port>0</port> <txt-record>dk[number]=adVN=[share name],adVF=0x82</txt-record> </service> Just change the [number] with a disk number from 1-10000 and [share name] with the correct share name. Is it doable, @limetech and @bonienl? Yes very similar to what I'm doing 👍 One thing I'm not sure about and haven't tested yet: If a share is being used for TimeMachine via AFP/netatalk, and then we switch to SMB, will OS X still recognize the existing sparse bundles (I think that's what they're called)? Quote Link to comment
gfjardim Posted September 21, 2018 Share Posted September 21, 2018 16 minutes ago, limetech said: Yes very similar to what I'm doing 👍 One thing I'm not sure about and haven't tested yet: If a share is being used for TimeMachine via AFP/netatalk, and then we switch to SMB, will OS X still recognize the existing sparse bundles (I think that's what they're called)? Yes. I just backed up using SMB to a sparse bundle I used to back up to through AFP. Quote Link to comment
limetech Posted September 21, 2018 Share Posted September 21, 2018 46 minutes ago, gfjardim said: Yes. I just backed up using SMB to a sparse bundle I used to back up to through AFP. Good to know, thank you for the report! I've been wanting to get rid netatalk along with it's stupid CNID database for a long time, actually never wanted to add it in the first place. Now to get rid of NFS with it's stupid file handles.... Quote Link to comment
gfjardim Posted September 21, 2018 Share Posted September 21, 2018 11 minutes ago, limetech said: Good to know, thank you for the report! I've been wanting to get rid netatalk along with it's stupid CNID database for a long time, actually never wanted to add it in the first place. Now to get rid of NFS with it's stupid file handles.... I think you should let netatalk in place for a while, not all Macs can be updated to Sierra or High Sierra. If you need someone to proper test it before production, let me know. Quote Link to comment
limetech Posted September 21, 2018 Share Posted September 21, 2018 5 minutes ago, gfjardim said: I think you should let netatalk in place for a while, not all Macs can be updated to Sierra or High Sierra. If you need someone to proper test it before production, let me know. Yes plan is to deprecate but not remove just yet. Thank you for the testing offer, much appreciated and we will need it. Quote Link to comment
EdgarWallace Posted September 24, 2018 Share Posted September 24, 2018 (edited) @gfjardim, have I understood correct that I have to modify my /boot/config/smb-extra.conf and adding the following: fruit:time machine = yes fruit:time machine max size = 2T If the answer is yes I have to remaining questions: Adding 2T if I would like to use 2TB for my TM backup is correct as shown above? Where do I have to "...advertise it using the Avahi SMB service"? Thanks a lot for clarifying. Edited September 24, 2018 by EdgarWallace Quote Link to comment
gfjardim Posted September 24, 2018 Share Posted September 24, 2018 @gfjardim, have I understood correct that I have to modify my /boot/config/smb-extra.conf and adding the following:fruit:time machine = yesfruit:time machine max size = 2T If the answer is yes I have to remaining questions: Adding 2T if I would like to use 2TB for my TM backup is correct as shown above? Where do I have to "...advertise it using the Avahi SMB service"? Thanks a lot for clarifying.I don't advise you to try enable it manually because all changes needed will be overwritten by Unraid eventually. I did a test, not tried to put it into production. Let's wait LT implement it the right way to avoid breake something. Quote Link to comment
EdgarWallace Posted September 26, 2018 Share Posted September 26, 2018 Oh, I need to be more patient 😃👍🏼 Thanks a lot @gfjardim Quote Link to comment
driph Posted September 29, 2018 Share Posted September 29, 2018 Welp, my old Time Capsule finally died, so I'm going to set up my Unraid box to serve as the Time Machine backup host. What's the status of this? Should I wait for official support, or use one of the manual setup methods posted here and there? Thanks all! Quote Link to comment
gfjardim Posted October 1, 2018 Share Posted October 1, 2018 Welp, my old Time Capsule finally died, so I'm going to set up my Unraid box to serve as the Time Machine backup host. What's the status of this? Should I wait for official support, or use one of the manual setup methods posted here and there? Thanks all!It's supported if used with AFP (Apple's own network filesystem). Since AFP will be deprecated, we are discussing the usage of SMB as successor of AFP. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.