In this tutorial, we'll guide you through configuring your remote server to accept connections from our backup server and create the backup.
Step 1: Configure Firewall
To allow connections from our backup server, configure your firewall using the following command. This example assumes your SSH server is running on port 22.
iptables -A INPUT -p tcp -s 5.75.251.5 --dport 22 -j ACCEPT
Step 2: Allow Remote Connection
Most servers have the ability to verify SSH login with a password disabled by default. To enable this option, proceed as follows:- Locate your SSH configuration file. Typically, this file is found at
/etc/ssh/sshd_config
- Open the configuration file and find the
PasswordAuthentication
line, uncomment and set its value to "yes" and save.
Before:
...
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication no
#PermitEmptyPasswords no
...
After:
...
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no
...
- Save the file and restart SSH:
systemctl restart sshd
Step 3: Configure Backup in BoostBackup
- Navigate to the BoostBackup dashboard.
- Go to the Backups section.
- Click on the + Create Backup button.
- Fill in your server credentials as shown in the example below:
Click the SAVE button to verify the credentials. The system will check the connection and display any errors above the form.
Step 4: Schedule Your Backup
Set the schedule for when the backup should run in the Schedule the backup section.
Step 5: Configure Backup Storage
Choose where the backups should be stored. For each remote storage option, we provide separate manuals which can be found HERE.
Optional Step: Configure Storage Cleanup
Set the storage cleanup interval based on your preference:
- By capacity: Enter sizes in megabytes (500M) or gigabytes (20G), etc.
- By creation date: Specify durations like older than 2 months (2m) or 7 days (7d).
- By quantity: Limit the number of backup files.
- Smart format: Set values for daily, weekly, monthly, and annual retention.
Optionally, set a minimum file size check. For example, if a backup is smaller than 100MB (100M), it will be marked as an error, and you will be notified if you have configured notifications correctly. Details on setting up notifications can be found HERE.
Final Step: Enable Notifications
Ensure the checkbox for automatically creating notifications is checked. This will set up alerts, such as email notifications for backup failures, which can be found in the Alerts section.
That's it! Your server is now configured for backups.