SSH

Remote SSH (using rsync) our preferred and recommended destination type. Since it supports all features, you can make the most of it when backing up.

Since we are using some extra Linux based commands besides rsync, this destination must have a "Real" operation system at the other end (Redhat, Centos, Debian etc). So a "NAS Backup box" with rsync enabled will not be supported.

This guide shows how to add ssh backup destination to Server backup manager.

We first created an unprivileged user (using root for the backups is not recommended) on the backup destination server, then added the server & login details to JetBackup in the "Add destination" screen.

*SSH Keys are created automatically by JetBackup and transfered to the destination server.



Example configuration page for the destination:

create SSH destination


Destination Name

A generic name for your internal ease of use, so it will be easier to recognize the backup destination roll, in case you have more then one.
Max length is 40 characters.


Choose Backup Engine

JetBackup will need to index and read files from this destination. Since each backup engine has it's own file structure, we will need to know what we are looking for in the destination when we are indexing.

If you wish to allow yourself/clients to use/restore cPanel generated backups on the JetBackup GUI choose cPanel engine.
When it comes to cPanel full backup, JetBackup will index the backup to its parts(Databases, Emails etc.). Which means that you will be able to restore parts of the full backup and not only the full backup.

When you choose cPanel engine on your destination settings, you can set schedule in order to reindex those backups. It is recommended to schedule it after the cPanel backup is done so data will be most accurate.


Backup Directory

This will be our starting point when accessing this destination.
There are two ways to get to each directory: Relative, Absolute
Let say your home dir is '/home'
Relative path ./ will point to the absolute path /home/USERNAME
- on the same principle FOLDER will be the remote user's homedir subdirectory /home/USERNAME/FOLDER.
Make sure that you always have the right permission to the path you're using.

Please make sure that your destination path is secure and has the appropriate privileges.
For more information click on How To Secure Backup Storage.

Free Disk Space Limit

This option will check if destination disk space reached the specified limit before it performs the backup. If you enable this option and available disk space is less than the amount specified, the system will not perform the backup.


Remote Host

A simple hostname or ip address to access the remote backup server.


Port

Your remote port (default port is 22 - you must specify this even if it's 22).


Remote Username

The remote user to login with. It is recommended to create a dedicated user for backups and not use root user.


Remote Password

Password for the provided ssh user.
JetBackup will create all necessary keys for remote login on the remote server.


Private key

The path to the private key.
The password is stronger, so if there is a password, the key will not be in used.
Since we are using rsync for backups, we will need to setup access keys between the servers, so we can login to the remote server without prompting for password.
If empty, it will be automatically created by JetBackup.
To find a guide for that, search for ssh without password.


Connection Timeout

Timeout for the connection. Default value is 30 (The Connection Time Out in seconds), you can increase this if the connection to the remote server is poor and you might face longer timeout issues.


Rsync Bandwidth Limit

Limit rsync bandwidth.


Rsync Prefer IPv4/IPv6

Choose your preferred IP version.