backup on sshfs error
Hi, i have mounted a remote folder with sshfs
with this command
sshfs -o IdentityFile=/root/.ssh/mykey remoteuser@remoteserver:/remote/path/ /mnt/sshfs/
but if i digit ls -lh /mnt/
drwx--x--x. 1 cpaneluser cpanelphppgadmin 4.0K Mar 15 14:05 sshfs/
why?
can i mount that with root:root ?
in effect whne i try a move a file as described here
The backup process on "myserver" encountered an error.
i receive an error...
and when backup start i receive same error "_etc_shadow"
i would not use NFS, with this i have no problem, but i prefer ssh(fs)
thank you in advance
-
Hi, This is not a cPanel problem, but a problem with SSHFS. You need to tell SSHFS what UID/GID to mount that directory as. [SOLVED] sshfs is mounting filesystems as another user Ubuntu 10.04 0 -
Hi, This is not a cPanel problem, but a problem with SSHFS. You need to tell SSHFS what UID/GID to mount that directory as. [SOLVED] sshfs is mounting filesystems as another user Ubuntu 10.04
i know cpanel is not the problem, but i tried in this forum :) thank you! :) now seems all ok. tonight i hope the backup will be succesfully completed. for others i used this commmand sshfs -o uid=0,gid=0 -o reconnect -o IdentityFile=/root/.ssh/mykey remoteuser@remoteserver:/remote/path/ /mnt/sshfs/ and add this in crontab * * * * * if ! mountpoint -q /mnt/sshfs/; then sshfs -o uid=0,gid=0 -o reconnect -o IdentityFile=/root/.ssh/mykey remoteuser@remoteserver:/remote/path/ /mnt/sshfs/; fi thank you again0
Please sign in to leave a comment.
Comments
2 comments