The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

backup on sshfs error

Discussion in 'Data Protection' started by ale.ab, Mar 15, 2016.

  1. ale.ab

    ale.ab Registered

    Joined:
    Jul 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    510
    Likes Received:
    66
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    ale.ab likes this.
  3. ale.ab

    ale.ab Registered

    Joined:
    Jul 9, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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 again
     
Loading...

Share This Page