[SoftNAS KB]: How to enable Previous Versions on CIFS with AD integration.

  • Log into SoftNAS StorageCenter.

  • In the Storage Administration pane, navigate to CIFS Shares.

  • In CIFS Shares, navigate to the /etc/samba/smb.conf file and add the following code below the shared definition:

    vfs objects = shadow_copy2 acl_xattr
    shadow: snapdir = .zfs/snapshot
    shadow: sort = desc
    shadow: format = hourly-%Y%m%d-%H%M%S
    shadow: localtime = yes

    See below for reference:

    [testshadowcopy]
    writable = yes
    browseable = yes
    public = yes
    guest ok = yes
    path = /tank/testshadowcopy
    directory mask = 0777
    create mask = 0777
    vfs objects = shadow_copy2 acl_xattr
    shadow: snapdir = .zfs/snapshot
    shadow: sort = desc
    shadow: format = hourly-%Y%m%d-%H%M%S
    shadow: localtime = yes


  • Restart SMB services by pressing the button to restart the winbind and samba services.