Skip to content

Pink210/SoftEtherBackupBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | فارسی

SoftEtherBackupBot

A simple Python-based backup tool for SoftEther VPN servers.
It fetches the current server config via SoftEther's JSON-RPC API, saves it locally, and optionally sends it to your Telegram bot for off-site backup.
You can run it manually or schedule it with cron.


Features

  • Auto-fetch config from multiple SoftEther servers
  • Save decoded .config files locally
  • Send backups to a Telegram bot (optional)
  • Easy setup with an install script
  • Runs on schedule via cron

Quick Install

Run the following command in your terminal:

wget -O se-install https://raw.githubusercontent.com/Pink210/SoftEtherBackupBot/master/install-SoftEtherBackupBot.bash && chmod +x se-install && ./se-install

Editing Configuration

To change your server list, password, or Telegram settings, edit the config.py file:

sudo nano $HOME/SoftEtherBackupBot/config.py

Changing the Backup Interval

To modify the backup schedule:

crontab -e

Then update the schedule line. For example, to run the backup every 3 hours:

0 */3 * * * /usr/bin/python3 $HOME/SoftEtherBackupBot/main.py >> $HOME/SoftEtherBackupBot/cron.log 2>&1

About

A Python-based automatic backup tool for SoftEther VPN server configurations. This script periodically fetches base64-encoded config files via SoftEther’s JSON-RPC API, decodes them, stores them locally, and optionally sends them to a Telegram bot. Ideal for hourly/daily cron jobs to maintain off-site config backups.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors