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/
<?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> |
[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 | |
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 = catia fruit streams_xattr | |
[TimeMachine] | |
case sensitive = Yes | |
create mask = 0750 | |
directory mask = 01750 | |
path = /backups/mac | |
read only = No | |
valid users = toe | |
fruit:time machine = yes |
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +350.0 GB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_APFS Container disk5 349.8 GB disk4s2
/dev/disk5 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +349.8 GB disk5
Physical Store disk4s2
1: APFS Volume Backups of dbair 24.8 GB disk5s1
On the server acting as TM:
root@ftp:/backups/mac# uname -a
Linux ftp.durd.net 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux
root@ftp:/backups/mac# dpkg -l samba*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-========================-============-=========================================================
ii samba 2:4.13.13+dfsg-1~deb11u3 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.13.13+dfsg-1~deb11u3 all common files used by both the Samba server and client
ii samba-common-bin 2:4.13.13+dfsg-1~deb11u3 amd64 Samba common files used by both the server and the client
ii samba-dsdb-modules:amd64 2:4.13.13+dfsg-1~deb11u3 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.13.13+dfsg-1~deb11u3 amd64 Samba core libraries
ii samba-vfs-modules:amd64 2:4.13.13+dfsg-1~deb11u3 amd64 Samba Virtual FileSystem plugins
.com.apple.TimeMachine.quota.plist
integer is a value in bytes. Creates a sparsebundle-"file" limited to the quota size - viewed in Disk Utility.Important is to set up a quota from the start. Shrinking is tricky and might not work properly leading to you letting TM overwrite your old TM-disk.