Samba 共用上的 Time Machine 備份失敗並出現錯誤 512、20 和 14

Samba 共用上的 Time Machine 備份失敗並出現錯誤 512、20 和 14

我已經根據以下內容設定了用於時間機器備份的 Samba 共享本指南

我的 Mac 可以正確識別共享,但初始備份失敗,並顯示一般錯誤訊息:無法在我的共享上建立備份。

運行log stream --style syslog --predicate 'senderImagePath contains[cd] "TimeMachine"' --info給出以下日誌:

MacBook-Air-2:~ xxx$ log stream --style syslog  --predicate 'senderImagePath contains[cd] "TimeMachine"' --info
Filtering the log data using "senderImagePath CONTAINS[cd] "TimeMachine""
Timestamp                       (process)[PID]    
2018-12-04 22:26:10.213195+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Starting manual backup
2018-12-04 22:26:10.338732+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Attempting to mount 'smb://pi@raspberrypi._smb._tcp.local./Time%20Machine%20Backups'
2018-12-04 22:26:10.897172+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Mounted 'smb://pi@raspberrypi._smb._tcp.local./Time%20Machine%20Backups' at '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E'
2018-12-04 22:26:11.816536+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Failed to find matching sparsebundle in directory '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E', directory contents: (
)
2018-12-04 22:26:11.845958+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Creating a sparsebundle using Case-sensitive Journaled HFS+ filesystem
2018-12-04 22:26:13.544412+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Failed to create '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E/A76BCEEB-A3BD-5D63-82F4-8AEBB2F5ACBA.sparsebundle', results: {
}, error: 512 Fehler 512
2018-12-04 22:26:13.548494+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Backup failed with error 20: 20
2018-12-04 22:26:13.621842+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogInfo] Unmounted '/Volumes/com.apple.TimeMachine.Time Machine Backups-74F8F302-361C-4490-9E35-1F2598F9D16E'
2018-12-04 22:26:13.622367+0100  localhost backupd[34893]: (TimeMachine) [com.apple.TimeMachine:TMLogError] Failed to remove directory '(null)', error: 14 Bad address

奇怪的是:與日誌相反,74F8F302-361C-4490-9E35-1F2598F9D16E/A76BCEEB-A3BD-5D63-82F4-8AEBB2F5ACBA.sparsebundle實際上在我的共享中創建了一個名為的稀疏包。所以寫入權限絕對不是問題。

macOS 10.14.1 桑巴 4.8.0

答案1

事實證明,我嘗試的配置不適用於 HFS+ 格式的磁碟機。使用 ext4 重新格式化磁碟機可以使錯誤消失,從而真正開始備份。

相關內容