Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database update #1536

Open
MADM1k33 opened this issue Dec 24, 2024 · 2 comments
Open

Database update #1536

MADM1k33 opened this issue Dec 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MADM1k33
Copy link

So, i'm trying to automate x-ui database backup, but when i monitor /etc/x-ui/ for changes - every possible event happens constantly whether i make changes or not - so i can't see exact moment when changes happen.

17:19:03 /etc/x-ui/ OPEN,ISDIR
17:19:03 /etc/x-ui/ CLOSE_NOWRITE,CLOSE,ISDIR
17:19:03 /etc/x-ui/x-ui.db MODIFY
17:19:03 /etc/x-ui/x-ui.db MODIFY
17:19:03 /etc/x-ui/x-ui.db MODIFY
17:19:03 /etc/x-ui/x-ui.db MODIFY
17:19:03 /etc/x-ui/x-ui.db-journal CLOSE_WRITE,CLOSE
17:19:03 /etc/x-ui/x-ui.db-journal DELETE
17:19:13 /etc/x-ui/x-ui.db ACCESS
17:19:14 /etc/x-ui/x-ui.db ACCESS
17:19:14 /etc/x-ui/x-ui.db ACCESS
17:19:14 /etc/x-ui/x-ui.db ACCESS
17:19:14 /etc/x-ui/x-ui.db ACCESS
17:19:14 /etc/x-ui/x-ui.db-journal CREATE
17:19:14 /etc/x-ui/x-ui.db-journal OPEN
17:19:14 /etc/x-ui/x-ui.db-journal ATTRIB
17:19:14 /etc/x-ui/x-ui.db-journal MODIFY
17:19:14 /etc/x-ui/x-ui.db-journal MODIFY
17:19:14 /etc/x-ui/x-ui.db-journal MODIFY
17:19:14 /etc/x-ui/x-ui.db-journal MODIFY

Is there a unique event to catch THE exact moment when there is a change in database?

@MADM1k33 MADM1k33 added the enhancement New feature or request label Dec 24, 2024
@MADM1k33
Copy link
Author

Found unique event - just monitor /usr/local/x-ui/bin/config.json for ACCESS

@MADM1k33 MADM1k33 reopened this Jan 17, 2025
@MADM1k33
Copy link
Author

I was wrong - events at /usr/local/x-ui/bin/config.json are occurring at random - when i add users or change settings, sometimes the config.json changes, sometimes it doesn't. Is there are a 100% way to catch a database change event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant