Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Back up Linux servers to a remote server using Borg and SSH

Runs on a schedule to create Borg backup archives of Linux servers over SSH on a remote destination server, with documented steps to list and restore archives.

What it does

# Restore a Backup 1. Connect to the destination server. 2. List the available backup archives: bash borg list /path/to/repository 3. Restore the archive you want: bash borg extract /path/to/repository:: For more restore options and examples: https://borgbackup.readthedocs.io/en/stable/

The steps

  1. Create Borg Backup and Push to Second Server
  2. Create Single Up-to-date Backup (Borg, pruned)
  3. Install Borg on Source Server
  4. Install Borg on Destination Server
  5. Source: Check & Get SSH Key
  6. Destination: Create Restricted borg_backup User
  7. Store Borg Passphrase on Source Server
  8. Initialize Configuration Table
  9. Run Scheduled Backup
  10. Route by Backup Mode
  11. Parse SSH Setup Result
  12. Build Backup Config Code
  13. When Backup Setup Form Submitted
  14. Save Backup Configuration

15 steps in total.

Similar automations