This script can
1- Clear/truncate all xui.one logs.
2- Send database backup to any email address.
Installation:
Done!
Also you can run it on crontab for example every 12h.
For run it every 12h use these commands:
1- nano /etc/crontab (from command line)
2- add this line to crontab: 0 */12 * * * root sh /home/xui/email.sh> /dev/null 2>&1
3- Press CRTL X and then press Y to save it.
Thats All.
(1 time(s) working and 1 time(s) not-working in total)