User Tools

Site Tools


gen:remote-backups

This is an old revision of the document!


Remote backups under N99panel

Before setting remote backups, please checkout the following important points and the concept of executing a successful backup strategy :\

  • Remote backups work on push principle i.e. to push data to an another Linux machine which allows the N99panel VPS to access it using a SSH Key and to push data using the rsync command.
  • Multiple backup servers can be added. Any server providing SSH can be used. We recommend storage VPS from Interserver - https://www.interserver.net/vps/storage.html. Price starts from USD 3.0 per TB/month
  • Multiple backup markers/identifiers can be added. A single backup server can have multiple backup markers/identifiers.
  • Backups once configured, will be attempted by the system cron job. And will be rotated amongst available markers/identifiers.
  • With backup parameters you can set cron timing, frequency of rotation in number of days and reset the cron counter.
  • Running remote backups, especially the initial ones, can incur excessive bandwidth usage depending upon the backup size.
  • Backup functionality is provided as a goodwill gesture only. You should always double check if backups are actually taking place or not.

To setup remote backups, follow these steps

Step 1 : Setup a Linux based backup server. Setup a user account on that server. Broadly speaking, you will need to the following (N99panel team is willing to help, if you find this step is daunting)

SSH into the backup server with root access or administrative access.

Add a user using the command 'adduser' if the server is Debian or its variant. Use the 'useradd' command if the server is Redhat/CentOS variant.

Now log into the backup server with the user you have created.

Make .ssh directory using the mkdir command, if the directory does not exist.

mkdir .ssh

The above command will be run assuming you are in the directory /home/user

Also ensure it has 700 permission , this you can do by running the command

chmod 700 .ssh

Now we have to make/setup authorized_keys file. Here we change into the .ssh directory

cd .ssh

And create the authorized_keys file (if not already existing) using nano, pico or a vi editor (please Google on how to use these editors), and paste the SSH key provided under the menu Dashboard » Remote Backups » Backups Servers » Add a Backup Server.

Ensure that the authorized_keys file has 600 permission. This you can make sure using the command

chmod 600 authorized_keys
gen/remote-backups.1763998098.txt.gz · Last modified: 2025/11/24 15:28 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki