我经常在几台远程机器上开发和测试代码,这些机器并不都在同一个NFS文件系统上。对于交互式工作,我通常使用SSHFS在本地计算机上挂载远程文件系统。例如:
mkdir ~/machine1
sshfs me@machine1.domain.org: ~/machine1 #mount machine1's home directory locally在过去的几年里,我一直使用CrashPlan来备份本地硬盘。我想开始使用CrashPlan备份本地挂载的远程磁盘。
在CrashPlan UI中,它给了我备份~/machine1的选项。但是,CrashPlan认为~/machine1目录是空的,即使在挂载machine1.domain.org时也是如此。
一些最后的想法:
发布于 2013-08-26 09:04:40
它不能工作的原因是,除了您的用户之外,没有其他用户能够看到sshfs安装的目录。除非Crashplan作为您的用户运行,否则它将无法备份它。你可以自己试试:
sudo -i
ls -al ~me/ | grep machine1
ls: cannot access /home/me/machine1: Permission denied
?????????? ? ? ? ? ? machine1有一种方法可以安装sshfs,使文件也可用于根用户或机器上的每个人。如果Crashplan作为root运行,则只应使它对root可用。
sshfs -o allow_root me@machine1.domain.org: ~/machine1 或者,您可以允许机器上的任何人(包括root用户)使用以下方式查看您的文件:
sshfs -o allow_other me@machine1.domain.org: ~/machine1 您可能需要在/etc/fuse.conf中允许使用这些标志:
gksudo gedit /etc/fuse.conf更改行文:
#user_allow_other至
user_allow_other你也需要加入导火索组。运行groups,如果您不是fuse,则需要运行:
sudo addgroup <your user> fuse然后退出并再次登录,它应该可以工作。
发布于 2013-08-26 19:21:48
实际上,在无头机器上运行CrashPlan有点有趣。
请参阅http://support.crashplan.com/doku.php/how_到/配置_一个_无头_客户端
您可能更喜欢这样做,因为您将在设置备份运行方式方面获得更多的粒度。
https://askubuntu.com/questions/337305
复制相似问题