11

【笔记】iKuai通过Docker部署AFP协议的TimeMachine服务器

 1 year ago
source link: https://blog.loli.fj.cn/2023/05/07/iKuai%E9%80%9A%E8%BF%87Docker%E9%83%A8%E7%BD%B2AFP%E5%8D%8F%E8%AE%AE%E7%9A%84TimeMachine%E6%9C%8D%E5%8A%A1%E5%99%A8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

iKuai通过Docker部署AFP协议的TimeMachine服务器

  • iKuai可以使用Docker的特权模式

传送门

部署AFP协议的TimeMachine服务器

--net=:指定Docker的网络
--ip=<ip>:指定IP地址
/root:指定用于存放MacOS系统备份的目录

docker run -d --restart=always \
--name timemachine \
--net=host \
--ip=<ip> \
-e ADVERTISED_HOSTNAME="" \
-e CUSTOM_SMB_CONF="false" \
-e CUSTOM_USER="false" \
-e DEBUG_LEVEL="1" \
-e MIMIC_MODEL="TimeCapsule8,119" \
-e EXTERNAL_CONF="" \
-e HIDE_SHARES="no" \
-e TM_USERNAME="timemachine" \
-e TM_GROUPNAME="timemachine" \
-e TM_UID="1000" \
-e TM_GID="1000" \
-e PASSWORD="timemachine" \
-e SET_PERMISSIONS="false" \
-e SHARE_NAME="TimeMachine" \
-e SMB_INHERIT_PERMISSIONS="no" \
-e SMB_NFS_ACES="yes" \
-e SMB_METADATA="stream" \
-e SMB_PORT="445" \
-e SMB_VFS_OBJECTS="acl_xattr fruit streams_xattr" \
-e VOLUME_SIZE_LIMIT="0" \
-e WORKGROUP="WORKGROUP" \
-v /root:/opt/timemachine \
-v timemachine-var-lib-samba:/var/lib/samba \
-v timemachine-var-cache-samba:/var/cache/samba \
-v timemachine-run-samba:/run/samba \
mbentley/timemachine:smb

通过备份服务器备份MacOS

  • 在访达中前往->连接服务器,登陆文件共享服务器

服务器:smb://<ip>
用户名:timemachine
密码:timemachine

01.png
  • 系统偏好设置->时间机器->选择备份磁盘

02.png
  • 选择TimeMachine文件共享服务器作为TimeMachine备份服务器

03.png

mbentley/docker-timemachine


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK