rpi: Samba — сетевая папка бэкапа OneDrive для Mac (только чтение, только LAN)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gilfanovr
2026-10-11 23:21:07 +03:00
co-authored by Claude Opus 5.5
parent 2ea676eee8
commit 6ef28a7621
2 changed files with 51 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
# Samba на rpi — просмотр бэкапа OneDrive с Mac (Finder → smb://rpi.local). Только чтение.
# Доступ: только домашняя сеть, только пользователь rus (пароль Samba — отдельный, smbpasswd -a rus).
[global]
workgroup = WORKGROUP
server string = rpi
server role = standalone server
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 192.168.10.0/24 127.0.0.1
hosts deny = 0.0.0.0/0
server min protocol = SMB2_10
map to guest = never
restrict anonymous = 2
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
# macOS: Finder, Quick Look, превью, корректные имена с «:» и др.
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:nfs_aces = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
multicast dns register = yes
[onedrive]
comment = Зеркало OneDrive (бэкап rpi), только чтение
path = /mnt/backup/onedrive/current
read only = yes
valid users = rus
browseable = yes
[onedrive-archive]
comment = Всё, что удалили или перезаписали в OneDrive (вечный архив), только чтение
path = /mnt/backup/onedrive/archive
read only = yes
valid users = rus
browseable = yes