Git Product home page Git Product logo

backup's Introduction

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 Telegram with the help of the Telegram bot 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/AC-Lover/backup/raw/main/backup.sh)

Step 2 : Token setting

Then it asks us for bot token, you have to create a bot from https://t.me/BotFather and give the token

Step 3: Set chat id

Then it asks us for a chat ID, and to get your chat ID or the channel you set aside for backup, you must forward a message from yourself or the channel to this https://t.me/userinfobot bot, which will give you a chat ID.

Step 4 : Caption setting

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

Step 5 : 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 6 : 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 7 : 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 us

I used the translator and if I have gramme problem please help me to improve it
Also, I have tested this script only on Ubuntu and developers can help us to develop this script for other operating systems.

Donation

https://nowpayments.io/donation/ACLover

Video tutorial

BackUp.mp4

Stargazers over time

Stargazers over time

backup's People

Contributors

ac-lover avatar 1351438 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.