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

Behaviour for versioned files on external storage #322

Open
TheDom42 opened this issue Dec 10, 2022 · 2 comments
Open

Behaviour for versioned files on external storage #322

TheDom42 opened this issue Dec 10, 2022 · 2 comments

Comments

@TheDom42
Copy link

First of all: thank you for implementing such a much-needed tool!

I was thinking about using the tool migrating from a NC standalone docker to the AIO docker on an Unraid system. In the old docker, most of my actual user files are mounted as external storage (this is a common practice on Unraid for Nextcloud installations - e.g. look at https://www.youtube.com/watch?v=mOHOcgVMLGM).
Now I know that with v2.0.1 of this plugin, external storages are by default not part of the archive anymore (which I think is in line with the expected behavior). However, I'm unsure about the database for the versions of the files on that storage. Is this migrated? If so, how?

Related to that is the question for me: what is the correct migration procedure if one uses external storage and versioning?
Should I unmount the external (local) storage from the old container first? Should I remap them as external storage to the new container before importing the migration file (I assume)? What needs to be prepared to not completely mess up the database and files?

The point I'm making: is there already documentation available on the caveats etc. when using this plugin together with external storages?

Thank you!

@Pytal
Copy link
Member

Pytal commented Dec 13, 2022

The expert @come-nc may have some ideas?

@come-nc
Copy link
Collaborator

come-nc commented Dec 13, 2022

I was thinking about using the tool migrating from a NC standalone docker to the AIO docker on an Unraid system. In the old docker, most of my actual user files are mounted as external storage (this is a common practice on Unraid for Nextcloud installations - e.g. look at https://www.youtube.com/watch?v=mOHOcgVMLGM). Now I know that with v2.0.1 of this plugin, external storages are by default not part of the archive anymore (which I think is in line with the expected behavior). However, I'm unsure about the database for the versions of the files on that storage. Is this migrated? If so, how?

In theory it should not as external storage is excluded, but I think it does in practice because the whole versions folder is exported and I think files_external stores versions there as well.

Related to that is the question for me: what is the correct migration procedure if one uses external storage and versioning? Should I unmount the external (local) storage from the old container first? Should I remap them as external storage to the new container before importing the migration file (I assume)? What needs to be prepared to not completely mess up the database and files?

This is not officially supported but I would try:

  1. Export from old installation
  2. Create the account on the new one
  3. Migrate the external storage
  4. Make sure external storage is at the same path as old installation
  5. Import the archive

The point I'm making: is there already documentation available on the caveats etc. when using this plugin together with external storages?

No, but you’re welcome to start some with your foundings :-)

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