-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Replace File::copy with SQLite .backup for Transactionally Safe Backups #748
base: main
Are you sure you want to change the base?
Replace File::copy with SQLite .backup for Transactionally Safe Backups #748
Conversation
package.json
Outdated
} | ||
}, | ||
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this committed in error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was committed by mistake. I have removed it now.
rector.php
Outdated
__DIR__.'/app', | ||
__DIR__.'/bootstrap/app.php', | ||
__DIR__.'/config', | ||
__DIR__.'/database', | ||
__DIR__.'/public', | ||
__DIR__ . '/app', | ||
__DIR__ . '/bootstrap/app.php', | ||
__DIR__ . '/config', | ||
__DIR__ . '/database', | ||
__DIR__ . '/public', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep changes relevant to the focus of the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think this was added by my editor's formatter. Let me know if it's fine now.
Based on the article from Litestream, which advises against using the
cp
command for SQLite database backups and recommends the.backup
command or theVACUUM INTO
statement.This PR removes the
File::copy
method and replaces it with.backup
for a safer and transactionally consistent backup process.