A Telegram bot to send x-ui database located in /etc/xui/x-ui.db to your chat id in telegram you could set what period of times you want to get your backup, like every 1 hour
Install bot with this command
bash <(curl https://raw.githubusercontent.com/gray1881/X-ui-Database-Backup/master/install.sh)