Commit d726a4d8 authored by Marvin's avatar Marvin Committed by GitHub

Merge pull request #15 from ServerContainers/4.8.0

4.8.0
parents 6d189e47 44883a36
......@@ -25,14 +25,6 @@ to restrict access of volumes you can add the following to your samba volume con
* __SAMBA\_CONF\_MAP_TO_GUEST__
* default: _Bad User_
* __SAMBA\_CONF\_ENABLE\_TIMEMACHINE__
* default not set - if set Apple's SMB2+ extension is enabled and timemachine support activated
* __SAMBA\_CONF\_TIMEMACHINE\_MAX\_SIZE__
* IMPORTANT! This is the global setting you might want to add this to the share using raw samba config (https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html)
* default not set - if set it limits global disk size and preventing Time Machine from using the whole real disk space for backup
* format: `SIZE [K|M|G|T|P]`
* __SAMBA\_CONF\_ENABLE\_PASSWORD\_SYNC__
* default not set - if set password sync is enabled
......@@ -48,6 +40,15 @@ to restrict access of volumes you can add the following to your samba volume con
* "[My Share]; path=/shares/myshare; guest ok = no; read only = no; browseable = yes"
* "[Guest Share]; path=/shares/guests; guest ok = yes; read only = no; browseable = yes"
# Apple TimeMachine
To enable TimeMachine Support add this to your `SAMBA_VOLUME_CONFIG`: `fruit:time machine = yes;`
You can also limit the size available for timemachine by also adding `fruit:time machine max size = 500G;` (format: `SIZE [K|M|G|T|P]
`)
More infos about the Apple Extensions: https://www.samba.org/samba/docs/current/man-html/vfs_fruit.8.html
# Links
* https://wiki.samba.org/index.php/Samba_AD_DC_Port_Usage
* https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
......
......@@ -53,23 +53,13 @@ EOF
##
# Apple's SMB2+ extension timemachine support activated
##
if [ ! -z ${SAMBA_CONF_ENABLE_TIMEMACHINE+x} ]
if env | grep 'SAMBA_VOLUME_CONFIG_' | grep 'fruit:' 2> /dev/null >/dev/null
then
echo ">> SAMBA CONFIG: \$SAMBA_CONF_ENABLE_TIMEMACHINE is set, enabling Apple's SMB2+ & timemachine"
echo ">> SAMBA CONFIG: enabling Apple's SMB2+ extentions"
cat >> /etc/smb.conf <<EOF
# Apple's SMB2+ & timemachine
fruit:aapl = yes
fruit:time machine = yes
EOF
if [ ! -z ${SAMBA_CONF_TIMEMACHINE_MAX_SIZE+x} ]
then
echo ">> SAMBA CONFIG: \$SAMBA_CONF_TIMEMACHINE_MAX_SIZE is set to $SAMBA_CONF_TIMEMACHINE_MAX_SIZE"
cat >> /etc/smb.conf <<EOF
fruit:time machine max size = $SAMBA_CONF_TIMEMACHINE_MAX_SIZE
EOF
fi
fi
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment