/backup

A fork of AC-Lover backup that sends backup to discord

Primary LanguageShellGNU Affero General Public License v3.0AGPL-3.0

Backup

English / فارسی

With this script, you can backup important information such as database from the x-ui, marzban, and hiddify panels and send it to Discord so that it is always available!



How does it work

Step 1: run the script

First, you run this command on your server

bash <(curl -Ls https://github.com/mikeesierrah/backup/raw/main/backup.sh)

Step 2 : Webhook setting

Then it asks us for Webhook - if you dont know how to get Discord webhook just say Google it

Step 3 : Caption setting

The next step asks you for a caption, which you can leave blank

Step 4 : Cronjob setting

The next step asks you to run a cron job to determine when the robot will back up and send
whose format is like this:
0 1
The first value, which is 0, is the minute, and the second value, which is 1, is the hour
The minimum number for minutes is 0 and the maximum is 60
The minimum number for the hour is 0 and the maximum is 24
Enter 0 for both to set backup once every minute
In the example above, it is backed up once every hour
Note that there is a space between both values

Step 5 : Panel selection

The next step will ask you which panel you want to backup
You have to choose one from marzbn, x-ui, and hiddify
The value of m means marzban, the value of x means x-ui, and the value of h means hiddify
Enter an option between x/m/h as per your requirement

Step 6 : question of removing previous crown jobs

Then it will ask you if you want to delete the previously defined cron jobs or not?
Enter y if you want it to be cleared otherwise enter n

Possible problems

If you have entered everything correctly, the backup file should be sent to you once, otherwise there is a problem in this process and you can raise your problem from the issues

Help the original Developer

this is just a fork i made that sends the backup to Discord instead of telegram - if you like it give me a star and Donate to the original developer

Donation

https://nowpayments.io/donation/ACLover

Stargazers over time

Stargazers over time