OpenRport Docs
GITHUB
  • OpenRPort Knowledge Base
  • 👀WHAT IS RPORT
    • Features and benefits of RPort
      • Full feature list
    • Screenshots
  • 🚀GETTING STARTED
    • Install the RPort Server
      • Install on-premises
      • Install RPort on any virgin cloud VM
      • Enable two factor authentication
        • Use push on mobile for 2FA
        • Use TOTP
    • Connecting Clients
    • Using the remote access
      • Creating tunnels
        • VNC via browser
      • RDP via Browser
      • Open SSH from the browser
      • Scp,sftp through a tunnel
    • Renaming and tagging of clients
    • Organize clients with groups
    • Activate the vault
    • Manage users and permissions
  • 🗣️NEED HELP?
    • Troubleshoot common problems
      • Restart rport through a tunnel
      • Attributes file path not set
      • Recover lost passwords
      • Client is not connecting
      • Id is already in use
  • 🔦DIGGING DEEPER
    • Using the API
      • Create client credentials
    • RPort Technology Explained
    • Commands and Scripts
      • Executing commands
      • Executing scripts
      • Tacoscript
    • The scheduler
    • File copy and reception
    • Client Configuration Options
      • Supervision of OS updates
      • Script and command execution
    • Advanced client management
      • Install the RPort client manually
      • Uninstall the RPort client
      • Run with SELinux
    • Server Maintenance
      • Monitoring of RPortd
      • Updating RPort
      • Backing up the rport server
      • Renewing certificates
    • FAQ
      • How to use Cloudflare
Powered by GitBook
On this page
  1. DIGGING DEEPER
  2. Server Maintenance

Backing up the rport server

Perform regular backups

Backup script

Run the following script from cron to perform a backup of all relevant data needed to recover a rport server.

#!/bin/sh
# Backup the sqlite databases
cd /var/lib/rport
DBS=*.db
for DB in $DBS;do 
    echo $DB
    sqlite3 $DB ".backup '$DB.backup'"
done
# Pack and compress everything
tar --exclude='*.db' \
  -cvzf /var/backups/rportd-$(date +%Y-%m-%d-%H%M%S).tar.gz \
  /var/lib/rport /etc/rport

The above script is made for Ubuntu/Debian Linux using the default backup folder /var/backups. On RedHat and derivates replace by a different folder where you like to store your backups or create /var/backups using mdkir.

Make sure you copy the created backup file to some remote file server.

PreviousUpdating RPortNextRenewing certificates

Last updated 1 year ago

🔦