因为netatalk在AUR仓库,所以无法直接使用pacman安装
cd /data/backup/tmp/
git clone https://aur.archlinux.org/netatalk.git
cd netatalk
makepkg -s
sudo pacman -U netatalk-3.1.12-6-armv7h.pkg.tar.xz
sudo pacman -S avahi
sudo systemctl enable --now avahi-daemon.service
/etc/afp.conf
[Global]
;mimic model = TimeCapsule6,106
log file = /var/log/afpd.log
log level = default:info
[TimeMachine]
path = /data/backup/timemachine
valid users = timemachine
time machine = yes
vol size limit = 500000
建立用户,目录等
sudo useradd timemachine
sudo passwd timemachine
cd /data/backup/
sudo mkdir timemachine
sudo chown -R timemachine.timemachine timemachine
sudo systemctl enable --now netatalk