mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6863] [Question]: AutoBackup #4559
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4559
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rockst4r4 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6863
What are you trying to do?
hello
how can i get auto backup to telegram bot
What have you already tried?
No response
3x-ui version
3.10
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Oct 17, 2026):
Automatic backups to Telegram are already built in. They go out with the Telegram bot's periodic report, so you need to switch on the bot, choose a report schedule and turn on the Database Backup switch.
Steps
/idcommand shows it.@daily. You can pick a preset or choose Custom and enter a cron expression such as0 3 * * *./start) so it is allowed to message you.Every time the schedule fires, each admin ID gets the server usage report plus the backup file. If you need a backup straight away, use the admin's inline Backup button in the bot.
How it works in the code
internal/web/web.go:395-401: the "Telegram notify" job is registered only when the bot is enabled, using thetgRunTimesetting (default@daily).internal/web/service/tgbot/tgbot_report.go:40-43: the periodic report attaches the backup only when that switch is on:internal/web/service/setting.go:95-96: the defaults are"tgRunTime": "@daily"and"tgBotBackup": "false", so backups stay off until you turn them on.Full documentation:
docs/content/docs/en/operations/telegram-bot.mdx(the "Reports & alerts" and "Settings" sections) anddocs/content/docs/en/operations/backup-restore.mdx.If no backup arrives after you set this up, reply with the panel log lines from around the scheduled time. Lines containing
Telegram notifyorError in getting db backupare the most useful.Verdict: Not a bug (expected behaviour). This is a usage question, and the feature already exists.
This reply was generated automatically; a maintainer may follow up.
@MURKA05-gigant commented on GitHub (Oct 21, 2026):