外部驱动器上的 Samba TimeMachine 文件夹不起作用

外部驱动器上的 Samba TimeMachine 文件夹不起作用

我想知道使用外部驱动器作为 MacOS 的 Time Machine 网络文件夹是否存在问题。

当我发现问题时,驱动器已格式化为 exFAT,因此我尝试将其格式化为 ext4 以与系统/主驱动器相同。

我遇到的问题是我可以在系统驱动器中的文件夹上使用时间机器应用程序(MacOS -> Samba),但不能在 USB 外部驱动器中的文件夹上使用。

我有默认设置smb.conf,我按照此网站上的说明进行操作: https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X

/media/pipi/MACBCK已安装外部驱动器,因为我已经能够将 Time Machine 与pipi文件夹一起使用,并在内部文件夹中尝试了相同的操作/MACBCK/pipi(Timemachine Backup 2)。

ls -lA /MACBCK/
total 4
drwxr-xr-x 3 pipi pipi 4096 Nov 27 17:53 pipi
ls -lA /media/pipi/MACBCK/
total 20
drwx------ 2 root root 16384 Nov 27 16:07 lost+found
drwxrwxrwx 2 pipi pipi  4096 Nov 27 16:17 pipi
[global]
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes

# Time Machine settings
   vfs objects = 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

#======================= Share Definitions =======================

[Timemachine Backup]
   comment = MacOS Timemachine Folder
   path = /media/pipi/MACBCK/pipi
   guest ok = no
   browseable = no
   writable = yes
   valid users = pipi
   fruit:time machine = yes

[Timemachine Backup 2]
   comment = MacOS Timemachine 2 Folder
   path = /MACBCK/pipi
   guest ok = no
   browseable = no
   writable = yes
   valid users = pipi
   fruit:time machine = yes

答案1

您尝试遵循本教程吗?https://saschaeggi.medium.com/use-a-raspberry-pi-4-for-time-machine-works-with-big-sur-1e66a9650789

您的两个文件夹没有相同的权限,这是行不通的。

相关内容