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

Possibility of adding timestamp to database dump filename #1717

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

boryn
Copy link
Contributor

@boryn boryn commented Oct 2, 2023

At this moment, after unzipping several dumps, the db filename always is the same - which makes it difficult to do any comparisons between them, and we are unaware when they have been taken.

With this PR, you can choose a timestamp format (through the 'database_dump_file_timestamp_format' config option), which will be inserted into the db dump filename and now it's clear when it was taken, eg.:
mysql-PROJECT-2023-10-02-07-00-00.sql

@freekmurze
Copy link
Member

Thanks! Could you add a test for this?

@boryn
Copy link
Contributor Author

boryn commented Oct 2, 2023

I'll try :) Do you mean creating a new test with this option set?

@boryn
Copy link
Contributor Author

boryn commented Oct 2, 2023

Ok, @freekmurze I have just added the 'appends timestamp to database backup file name' test for this.

@freekmurze freekmurze merged commit f81e849 into spatie:main Oct 9, 2023
5 checks passed
@freekmurze
Copy link
Member

Thanks!

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.

2 participants