This Thread had not been rated yet
This Script creates secure copies for XUI.ONE
Creates sql files
Creates compressed sql.zip files
in the same folder /home/xui/backups
Download the script
Unzip xui_backup.zip
Copy its contents to /root
chmod 777 xui_backup
./xui_backup
and you will have your backups in /home/xui/backups/ or
in the panel under backups
If you need automatic crontab options
copy xui_backup to /home/xui/
chmod 777 /home/xui/xui_backup
edit the crontab file
ssh as root
crontab -e
and paste the desired option
option1 #crontab every 4 hours: * */4 * * * * bash /home/xui/xui_backup
option2 #crontab every 8 hours: * */8 * * * * * bash /home/xui/xui_backup
option3 #crontab every 12 hours: * */12 * * * * * bash /home/xui/xui_backup
option4 #crontab every day: @daily bash /home/xui/xui_backup or 0 0 * * * * * bash /home/xui/xui_backup
option5 #crontab every weeks: @weekly bash /home/xui/xui_backup or 0 0 * * 0 bash /home/xui/xui_backup
save and exit
Creates sql files
Creates compressed sql.zip files
in the same folder /home/xui/backups
Download the script
Unzip xui_backup.zip
Copy its contents to /root
chmod 777 xui_backup
./xui_backup
and you will have your backups in /home/xui/backups/ or
in the panel under backups
If you need automatic crontab options
copy xui_backup to /home/xui/
chmod 777 /home/xui/xui_backup
edit the crontab file
ssh as root
crontab -e
and paste the desired option
option1 #crontab every 4 hours: * */4 * * * * bash /home/xui/xui_backup
option2 #crontab every 8 hours: * */8 * * * * * bash /home/xui/xui_backup
option3 #crontab every 12 hours: * */12 * * * * * bash /home/xui/xui_backup
option4 #crontab every day: @daily bash /home/xui/xui_backup or 0 0 * * * * * bash /home/xui/xui_backup
option5 #crontab every weeks: @weekly bash /home/xui/xui_backup or 0 0 * * 0 bash /home/xui/xui_backup
save and exit
This Thread had not been rated yet