Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 796 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 796 Bytes

MirzaPanelBot_AutoBackup

A tool for Backup .sql database file of MarzbanPanelBot

Installation guide

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.