Author Topic: Remote Disk Backup SSHFS  (Read 10127 times)

0 Members and 1 Guest are viewing this topic.

Remote Disk Backup SSHFS
« on: May 24, 2014, 09:10:08 PM »
CWP now is now providing you possibility to mount remote disk from any server to your server as local using fuse-sshfs.

How this works?
If you have any access to ssh on some other server you can mount that disk space as folder on your server, this is mostly used for backups in local networks.

Disk Details are looking like this:
Code: [Select]
[root@rec2 /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs            180G  2.3G  178G   2% /
none                  2.0G  4.0K  2.0G   1% /dev
none                  2.0G     0  2.0G   0% /dev/shm
                      1.8T  1.8T     0 100% /backup

- Server with CWP and allowed FUSE (on openVZ in most cases this option is not allowed, except eg. on which allow it on user request).
    **On dedicated and other Virtualization types you can install all required with one click in you CWP
- SSH Access on the remote server (which you want to use for mount as folder on your server)

How to Setup Remote Disk and use it for backups?
1. In your CWP under backups set backup folder
2. Make sure that backup folder is empty
3. Install required packages (one click in CWP)
4. Click on Generate Key (this will generate ssh key)
4a. Setup SSH Key on remote server --> more info is bellow this tutorial.
5. Enter remote Backup details (server ip or domain, SSH username, SSH Port) and click on Save Configuration
6. Click on Test Connection (if connection works than you can mount disk)
7. Click mount Disk
that is it...

4a. Setup SSH KEY on Remote/Backup server (NOT ON YOUR CWP SERVER)
mkdir .ssh
chmod 700 .ssh
nano or vi to file and add key from CWP under backup (must be in one line):   .ssh/authorized_keys
chmod 600  .ssh/authorized_keys

How to check for errors from command line?

sshfs /backup -p 22
sshfs root@ /backup -p 8407
« Last Edit: October 09, 2014, 05:19:34 PM by Administrator »
AntiDDoS Protection (web + mail)

Join our Development Team and get paid !

Services Monitoring & RBL Monitoring

Do you need Fast and FREE Support included for your CWP linux server?
Installation Instructions
Get Fast Support Here

Re: Remote Disk Backup SSHFS
« Reply #1 on: July 07, 2016, 03:39:25 PM »
Thank you.

I want to know where the backup location of 2nd server (remote server) ? and how to check ?