A tool for Backup .sql database file of MarzbanPanelBot
Run the following command
wget https://raw.githubusercontent.com/x0sina/MirzaPanelBot_AutoBackup/main/BackupMirzaPanel.sh | chmod +x BackupMirzaPanel.sh
Once the installation is complete run the command below
nano BackupMirzaPanel.sh
And change your database and telegram details in variables
To run the script run the following command
./BackupMirzaPanel.sh
Open the crontab for editing using the following command:
crontab -e
Add the Cron Job Entry
Add the following line to the crontab file to schedule the script to run every 6 hours
0 */6 * * * ./BackupMirzaPanel.sh
Finish it will sends you the .sql file in your Telegram bot.