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

Any way to backup existing anytype docker container #71

Closed
3 tasks done
Onefabis opened this issue Jun 26, 2024 · 4 comments
Closed
3 tasks done

Any way to backup existing anytype docker container #71

Onefabis opened this issue Jun 26, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Onefabis
Copy link

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing requests and didn't find any that were similar
  • I have considered creating a pull request instead and want to proceed

Clear and concise description of the problem

In case my HDD will die, I'll loose my data on the server, but I want to recover my generated container from 'make start' command at some point.

Suggested solution

Could you provide any info how could I backup the whole docker container or maybe some files from it, so I could replace them in the new HDD drive so my device, that has latest data could update it to the server with old Network ID, so I don't need to create new account for that purpose, but use the old one instead.

Alternative

No response

Additional context

No response

@Onefabis Onefabis added the enhancement New feature or request label Jun 26, 2024
@fb929
Copy link
Collaborator

fb929 commented Jun 26, 2024

You only need to back up the contents of the ./storage directory (or STORAGE_DIR if you changed the settings) in any convenient way.
it is best to do this by stopping all services, something like this:

make stop
cp -rp ./storage /path/to/backup/directory
make start

@fb929 fb929 closed this as completed Jul 10, 2024
@Onefabis
Copy link
Author

Onefabis commented Jul 25, 2024

@fb929 another question similar to this topic, is there any way to restore account in case my server device will change ID address: when it connected to another router or it changes network connection from LAN to Wifi?

@fb929
Copy link
Collaborator

fb929 commented Aug 6, 2024

@fb929 another question similar to this topic, is there any way to restore account in case my server device will change ID address: when it connected to another router or it changes network connection from LAN to Wifi?

I don't quite understand what you mean by "device will change ID address."
If you are simply changing the IP address for the server, everything should be fine.
You just need to:

  1. set the new IP address in EXTERNAL_LISTEN_HOSTS (file .env.override).
  2. regenerate and restart the server using make restart.
  3. deliver the updated config ./etc/client.yml to all client devices.

@Onefabis
Copy link
Author

Onefabis commented Aug 6, 2024

@fb929 yeah, sorry, you're actually right, right now it works fine. Last time I've tried that it didn't work with updated client.yml, this time it work well. Perhaps, I did something wrong that time. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants