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:
[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