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

feat: add support for auto backup db file #1950

Merged
merged 1 commit into from
Jul 14, 2023
Merged

feat: add support for auto backup db file #1950

merged 1 commit into from
Jul 14, 2023

Conversation

athurg
Copy link
Contributor

@athurg athurg commented Jul 14, 2023

This PR add a new feature to auto backup db file into a single file for backup.

The backup files will be named as the db file with a suffix, like -YYYmmdd-hhmmss.

Because we need more test, there is no setting UI provided in this version, this will be done in next version. User who want to try this can manually run a SQL in the db like below:

insert into system_setting(name,value) values('auto-backup-interval','3600')

The 3600 means the interval of auto backup by seconds.

@athurg athurg requested a review from boojack as a code owner July 14, 2023 11:57
@athurg athurg self-assigned this Jul 14, 2023
@athurg athurg added the backend label Jul 14, 2023
@github-actions
Copy link

github-actions bot commented Jul 14, 2023

Uffizzi Preview deployment-30916 was deleted.

Copy link
Collaborator

@boojack boojack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@boojack boojack merged commit d9b3501 into main Jul 14, 2023
10 checks passed
@athurg athurg deleted the feat/auto_backup branch July 14, 2023 12:05
@VlaK0r
Copy link

VlaK0r commented Jul 16, 2023

Thank you for the great program!
I didn't understand how to do it, can I learn more?)

@athurg
Copy link
Contributor Author

athurg commented Jul 19, 2023

Thank you for the great program!
I didn't understand how to do it, can I learn more?)

I have add config option in a system setting in #1989, after that PR merged, you can have a try.

lincolnthalles pushed a commit to lincolnthalles/memos that referenced this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants