Do you need to back up the data on a remote server enabled for SSH? Try to go back in time.
Back In Time is one of the most flexible and easy to use GUI backup tools for Linux. It includes more than enough features to satisfy almost anyone who needs to back up the user's data. This set of functions includes the ability to perform backups on a remote server through SSH.
When backing up through SSH, you can be sure that the transfer of your data is securely wrapped within an encrypted channel, so the chances of someone tracking you are less likely than it is. what they would be if they were transferring through the FTP protocol.
VIEW: Recruitment kit: network administrator (TechRepublic Premium)
But how is this done? I'm going to show you.
What you need
You need some things to make this happen:
- A user account with sudo privileges (to install Back In Time).
- A server that runs the SSH daemon accepting connections.
- Some data to back up.
That's it. Let's go to work.
Installing Back In Time
The first thing to do is install Back In Time. To do this, you must add the necessary repository. Open a terminal window and run the following command:
sudo add-apt-repository ppa: bit-team / stable
Once the repository is added, install Back In Time with the following two commands:
] sudo apt -get update sudo apt-get install backintime-qt4
With the application installed, you should find the startup program in your desktop menu. Open Back In Time and get ready to set up your first remote backup.
Creating an SSH key
In order to properly use Back In Time for SSH, you must create an encryption key and send it to the remote server. Here's how:
- Create the key by issuing command ssh -keygen .
- Copy the newly created key to the server with the command ssh-copy-id USER @ SERVER_IP (where USER is the remote user name and SERVER_IP is the IP address of the remote server).
Creating the remote backup
From the Back In Time profile editor ( Figure A ), select SSH from the Mode drop-down menu.
Complete the necessary information for the remote host, adding a path to host the backup copy. From the Cipher drop-down menu, make sure that the default option is selected and that your private key is configured (it should be set by default). If the private key option is not set, it is most likely /home/USER/.ssh/id_rsa (where USER is your local user name).
Enter your SSH authentication key password in the text area of the SSH private key (not your local or remote user password).
On the Include tab ( Figure B ), click Add File or Add Folder to include the data that will be backed up.
Add as many files and / or folders as necessary for your backup. Finally, scroll down and be sure to select the programming option you want (from every minute until weekly to customize). Once you take care of that, click on OK to save your settings in the default profile and close the window. If Back In Time does not appear again, open it from your desktop menu and then click the Take Snapshot button (the leftmost button on the toolbar – Figure C ).
After pressing the Snapshot button, you should be informed that a snapshot is not necessary (since it will automatically execute one after saving the profile).
You can then secure the shell to the remote server to see that the snapshot, in fact, has been saved ( Figure D ).
Congratulations, your Back In Time snapshot instance is now automatically configured (and regularly … if you programmed it as such) backup on a remote server, through SSH. Enjoy the security that your data is now safe, in the event of a disaster.