-
Notifications
You must be signed in to change notification settings - Fork 19
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
Question: How to restore SQLite to a different server with already existing SQLite #50
Comments
How are you running restore? And can you provide the full logs that lead up to that error? |
I'm running restore like this: The logs are only the command above, and this error message: |
I also ran into something similar. I got it to work like so:
|
Indeed. And |
@oandalib would you want to open a PR to add a section to the README detailing when one might want to restore to a new server, why the |
I think we need to better define the entire restoration process, not strictly just for a new server. See #52. |
For what it's worth, I'd love to be able to have the option of seeing/restoring from my prod server to my dev, and vice versa. Something along the lines of the following in litestream.yml:
So that when I visit localhost:3000/admin/litestream, I am able to see my prod backup, and restore it to my dev computer and vice versa. You could swap dev with a different server etc. |
If I'm on a server A with a rails app (running with Kamal 2) and using Litestream. Then i decided to move my app to a new server B
The data is already synced to my S3, when I moved to server B i tried to restore the database, but i got this error
error="cannot restore, output path already exists: /rails/storage/production.sqlite3"
I deleted the existing sqlite files and then I restored. It didn't throw errors, but I wasn't able to access the data. I felt that manually deleting the sqlite files is not a good action since there are already
shm
andwal
files.What should be the better way to handle my scenario?
The text was updated successfully, but these errors were encountered: