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

0 Members and 1 Guest are viewing this topic.

Offline
*
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
cwptest@backup.cwp.org:
                      1.8T  1.8T     0 100% /backup

Requirements
- Server with CWP and allowed FUSE (on openVZ in most cases this option is not allowed, except eg. on http://mybestwebhosting.net/ 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)
cd ~USERNAME
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
chown -R USERNAME:USERNAME .ssh



How to check for errors from command line?
sshfs USERNAME@SERVER-IP: LOCAL--BACKUP-FOLDER -p REMOTE-SSH-PORT

examples:
sshfs cwp@backup.cwp.org: /backup -p 22
sshfs root@185.4.192.11: /backup -p 8407
« Last Edit: October 09, 2014, 05:19:34 PM by Administrator »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
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 ?

Hello.