Timemachine Support in NS8

Hi there,

As apple has discontinued the support for the good old Time Machine hardware, I am looking for options.

I remembered that several years ago I was using nethserver. No I have several use cases where nethserver could be helpful I came back :slight_smile:

First thing: I installed samba as a account provider and created a Time Machine share but cannot find any options to adjust the share with options like

fruit:time machine = yes

fruit:time machine max size = 1T

fruit:aapl = yes

vfs objects = fruit streams_xattr catia

Just found a thread that is 6 years old.

Is there a (hidden) way to do this without the danger to loose the share after an ns8 update?

Best regards,

Joe

You could use the samba registry.

Enter the samba instance environment, in this example it’s samba1:

runagent -m samba1

Set options:

podman exec samba-dc net conf setparm "time machine" "fruit:time machine" yes
podman exec samba-dc net conf setparm "time machine" "fruit:time machine max size" 1T
podman exec samba-dc net conf setparm "time machine" fruit:aapl yes
podman exec samba-dc net conf setparm "time machine" "vfs objects" "dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia"

List options to check if they’re set correctly:

[samba1@node state]$ podman exec samba-dc net conf list
[time machine]
	path = /srv/shares/time machine
	comment = 
	guest ok = no
	read only = no
	fruit:time machine = yes
	fruit:time machine max size = 1T
	fruit:aapl = yes
	vfs objects = dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia

See Recycle Bin Samba NS8 - #4 by mrmarkuz or Recycle Bin Samba NS8 - #31 by mrmarkuz for examples.

EDIT:

The default vfs objects defined in smb.conf are

vfs objects = dfs_samba4 acl_xattr recycle full_audit

so you may need to add them to the share options like

podman exec samba-dc net conf setparm "time machine" "vfs objects" "dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia"

It’s also possible to define the mac options globally by using the include.conf file:

Edit include.conf…

podman unshare nano $(podman volume inspect config --format={{.Mountpoint}})/include.conf

…and add following content:

vfs objects = dfs_samba4 acl_xattr recycle full_audit fruit streams_xattr catia
1 Like

Golden, copycat to the wiki :wink:

3 Likes

Great. Thank you @LayLow @mrmarkuz

l‘ll try it today evening

1 Like