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

How to migrate from the no litestream version to the version with litestream? #7

Closed
inertia42 opened this issue Jan 28, 2024 · 2 comments

Comments

@inertia42
Copy link

Since I am unfamiliar with Memos, I chose the version without litestream for deployment. After using it for some time, I've come to realize the significance of having a backup. Therefore, I would like to switch from the non-litestream version to the litestream version. How can I accomplish this?

Can I use flyctl ssh console to connect to the container, back up its database files and asset folder, and then upload them to the new deployment?

Thank you.

@hu3rror
Copy link
Owner

hu3rror commented Jan 28, 2024

memos-litestream is actually based on the official memos image with the addition of litestream. In other words, this is just a prepositive startup and does not involve invasive hacker modifications.

Therefore, you can very simply follow the litestream README.md tutorial on the project's homepage to reoperate. Change the image source to ghcr.io/hu3rror/memos-litestream:stable, and also complete other operations such as adding litestream-related variables.

Oh, by the way, remember to use fly ssh sftp to back up all data before performing any operations to avoid unnecessary data loss.

@hu3rror hu3rror pinned this issue Jan 28, 2024
@inertia42
Copy link
Author

It works! Thank you for your help.

@hu3rror hu3rror closed this as completed Jan 28, 2024
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

No branches or pull requests

2 participants