Skip to content

Instantly share code, notes, and snippets.

@durd
Last active February 20, 2022 20:37
Show Gist options
  • Save durd/eb367d91fff25c967ba3491926fd0e3a to your computer and use it in GitHub Desktop.
Save durd/eb367d91fff25c967ba3491926fd0e3a to your computer and use it in GitHub Desktop.

Revisions

  1. durd revised this gist Feb 20, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion links.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    https://blog.jbowen.dev/2020/05/remote-time-machine-for-multiple-macs/

    https://manjaro.site/how-to-configure-time-machine-to-backup-to-samba-shared-folder/
    http://movq.us/2017/04/09/time-machine-quotas/

    http://movq.us/2017/04/09/time-machine-quotas/
  2. durd renamed this gist Feb 20, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. durd revised this gist Feb 20, 2022. 1 changed file with 1 addition and 22 deletions.
    23 changes: 1 addition & 22 deletions smb.conf
    Original file line number Diff line number Diff line change
    @@ -31,25 +31,4 @@
    path = /backups/mac
    read only = No
    valid users = toe
    fruit:time machine = yes


    [backup]
    case sensitive = Yes
    create mask = 0750
    directory mask = 01750
    fake oplocks = Yes
    path = /backups
    read only = No
    strict locking = No
    valid users = toe


    [data]
    case sensitive = Yes
    directory mask = 02775
    fake oplocks = Yes
    path = /pool/data
    read only = No
    strict locking = No
    valid users = toe
    fruit:time machine = yes
  4. durd revised this gist Feb 20, 2022. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .com.apple.TimeMachine.quota.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>GlobalQuota</key>
    <integer>350000000000</integer>
    </dict>
    </plist>
  5. durd revised this gist Feb 20, 2022. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions smb.conf
    Original file line number Diff line number Diff line change
    @@ -11,10 +11,17 @@
    server min protocol = SMB2
    server role = standalone server
    unix password sync = Yes
    fruit:delete_empty_adfiles = yes
    fruit:wipe_intentionally_left_blank_rfork = yes
    fruit:resource = xattr
    fruit:zero_file_id = yes
    fruit:posix_rename = yes
    fruit:veto_appledouble = no
    fruit:metadata = stream
    idmap config * : backend = tdb
    hosts allow = 2001:470:28:1d7::/64 192.168.1.0/24 127.0.0.1
    invalid users = root
    vfs objects = fruit
    vfs objects = catia fruit streams_xattr


    [TimeMachine]
    @@ -24,9 +31,6 @@
    path = /backups/mac
    read only = No
    valid users = toe
    fruit:delete_empty_adfiles = yes
    fruit:wipe_intentionally_left_blank_rfork = yes
    fruit:resource = xattr
    fruit:time machine = yes


  6. durd created this gist Apr 28, 2021.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    https://blog.jbowen.dev/2020/05/remote-time-machine-for-multiple-macs/
    https://manjaro.site/how-to-configure-time-machine-to-backup-to-samba-shared-folder/
    http://movq.us/2017/04/09/time-machine-quotas/
    51 changes: 51 additions & 0 deletions smb.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    [global]
    dns proxy = No
    load printers = No
    local master = No
    log file = /var/log/samba/log.%m
    max log size = 1000
    obey pam restrictions = Yes
    pam password change = Yes
    panic action = /usr/share/samba/panic-action %d
    security = USER
    server min protocol = SMB2
    server role = standalone server
    unix password sync = Yes
    idmap config * : backend = tdb
    hosts allow = 2001:470:28:1d7::/64 192.168.1.0/24 127.0.0.1
    invalid users = root
    vfs objects = fruit


    [TimeMachine]
    case sensitive = Yes
    create mask = 0750
    directory mask = 01750
    path = /backups/mac
    read only = No
    valid users = toe
    fruit:delete_empty_adfiles = yes
    fruit:wipe_intentionally_left_blank_rfork = yes
    fruit:resource = xattr
    fruit:time machine = yes


    [backup]
    case sensitive = Yes
    create mask = 0750
    directory mask = 01750
    fake oplocks = Yes
    path = /backups
    read only = No
    strict locking = No
    valid users = toe


    [data]
    case sensitive = Yes
    directory mask = 02775
    fake oplocks = Yes
    path = /pool/data
    read only = No
    strict locking = No
    valid users = toe