gen:remote-backups
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gen:remote-backups [2025/11/24 14:51] – kirtisingh | gen:remote-backups [2025/11/25 09:27] (current) – kirtisingh | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Before setting remote backups, please checkout the following important points and the concept of executing a successful backup strategy :\ | 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. | * 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:// | + | * Multiple backup servers can be added. Any server providing SSH can be used. We recommend storage VPS from Interserver - [[https:// |
| * Multiple backup markers/ | * Multiple backup markers/ | ||
| * Backups once configured, will be attempted by the system cron job. And will be rotated amongst available markers/ | * Backups once configured, will be attempted by the system cron job. And will be rotated amongst available markers/ | ||
| Line 12: | Line 12: | ||
| To setup remote backups, follow these steps | 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 (N99panel team is willing to help, if you find this step is daunting)\\ | + | **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 ' |
| + | |||
| + | Now log into the backup server with the user you have created. | ||
| + | |||
| + | Make .ssh directory | ||
| < | < | ||
| - | | + | mkdir .ssh |
| </ | </ | ||
| - | The above command will be run assuming you are in the directory / | + | |
| + | The above command will be run assuming you are in the directory / | ||
| Also ensure it has 700 permission , this you can do by running the command | Also ensure it has 700 permission , this you can do by running the command | ||
| + | |||
| < | < | ||
| - | ccchmod | + | 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 | ||
| + | </ | ||
| + | |||
| + | **Step 2 :** Add the backup server details in N99panel using the following navigation | ||
| + | |||
| + | Dashboard » Remote Backups » Backups Servers » Add a Backup Server | ||
| + | |||
| + | After adding a backup server, you should also do a ' | ||
| + | |||
| + | |||
| + | **Step 3 :** Add the backup marker (one or multiple) using the following navigation | ||
| + | |||
| + | Dashboard » Remote Backups » Backups Markers/ | ||
| + | |||
| + | A backup marker/ | ||
| + | |||
| + | The cron job (automated task job) on the N99panel VPS with try running backups to a backup marker based on the frequency (in days), the number of backup markers and the internal counter. | ||
| + | |||
| + | The parameters w.r.t. frequency (in days), cron timing and resetting of internal counter can be done from within | ||
| + | |||
| + | Dashboard » Remote Backups » Backup Parameters | ||
| + | |||
| + | You can also manually push a backup. | ||
| + | |||
| + | |||
| + | ---- | ||
| + | ---- | ||
| + | |||
| + | **To pull a backup, follow the navigation** | ||
| + | |||
| + | Dashboard » Remote Backups » Pull a Backup | ||
| + | |||
| + | W.r.t. pulling a backup, you are provided with 3 options | ||
| + | * pull_rename_replace - Pull the backup, rename original folder with suffix OLD-current_date, | ||
| + | * pull_replace - Pull the backup, and replace the original folder with pulled backup | ||
| + | * pull - Only pull the backup to a folder named same as the original folder but with suffix BKPMGR-current_date | ||
| + | |||
| + | ---- | ||
| + | ---- | ||
| + | |||
| + | |||
| + | To sum it up, Remote Backups functionality does the heavy lifting of backing the data by providing a multitude of options. | ||
| + | |||
| + | |||
gen/remote-backups.1763995862.txt.gz · Last modified: 2025/11/24 14:51 by kirtisingh
