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

Migration from Server A to Server B #100

Open
vysecurity opened this issue Sep 10, 2023 · 2 comments
Open

Migration from Server A to Server B #100

vysecurity opened this issue Sep 10, 2023 · 2 comments

Comments

@vysecurity
Copy link

vysecurity commented Sep 10, 2023

What's the best way to migrate the entire system from Server A to Server B?

Server A backs itself up every 3 hours and transfers all docker containers, volumes, and images to an off-site server. I have yet to try to restore it, though.

What would your recommendation be, or what the official method would be?

Other ideas:

  1. Dump the entire Postgres database and restore to a newly deployed instance.
  2. ...
@MWedl
Copy link
Contributor

MWedl commented Sep 11, 2023

In the community edition, you need to collect backup data yourself. What you need is two things: a database dump and files from file storages. Both are stored in docker volumes, so backing up the volumes should include all data. When restoring backups, make sure that

  • the backup is restored to the same SysReptor version for which the backup was created
  • the config in deploy/app.env is the same (especially encryption keys)

In SysReptor professional, there are official backup and restore commands that export and import all data. These commands perform all necessary steps in the background and are more flexible (e.g. import old backup to new version, allow different encryption keys, backup files from S3 storage)

@aronmolnar
Copy link
Contributor

We are also working on a migration procedure with our CLI tool https://github.com/syslifters/reptor/

That's still WIP.

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

3 participants