Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Lock users while exporting/importing #6

Open
IljaN opened this issue Sep 17, 2018 · 3 comments
Open

Lock users while exporting/importing #6

IljaN opened this issue Sep 17, 2018 · 3 comments
Labels
Effort: <0.5md enhancement New feature or request
Milestone

Comments

@IljaN
Copy link
Member

IljaN commented Sep 17, 2018

During an export, the user's storage and metadata must be locked to prevent changes happening during the export and avoid inconsistent states.

One idea is to have a command to lock then unlock the user, using the new permanent locks: owncloud/core#31651. Limited to master / OC 11 currently.

Another one would be to lock the user when running occ export:xxx, this would require a single export command because locking/unlocking for each metadata type will likely result in inconsitencies.

@jvillafanez @IljaN

@IljaN IljaN added the enhancement New feature or request label Sep 17, 2018
@IljaN IljaN added this to the backlog milestone Sep 17, 2018
@PVince81
Copy link
Contributor

I think this is a must have to avoid data loss in case of concurrency during export.

Any estimate ?

@IljaN
Copy link
Member Author

IljaN commented Sep 26, 2018

Effort based on assumption that disabling the user during export/import works for us.

@PVince81
Copy link
Contributor

What also comes to mind: we should also be able to export disabled users and keep them disabled. This could happen for accounts temporarily disabled by the admin or accounts that are kept for a longer time because they contain important data to recover later on (ex: transfer ownership)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Effort: <0.5md enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants