Allow moving users between buckets in a multibucket setup.
⚠ Because this app modifies filesystem internals, backups are strongly recommended ⚠
Move all objects owned by a user to a different bucket.
occ multibucket_migrate:move_user <user_id> <target_bucket>Note: this can take a long time if the user owns a lot of data
This app can also be used to assist in a more manual migration
- Disable the user to migrate:
occ user:disable <user_id> - Get the current bucket for the user:
occ user:setting <user_id> homeobjectstore bucket - List all objects owned by the user:
occ multibucket_migrate:list <user_id> - Move all listed objects to the target bucket
- Save the new bucket for the user:
occ user:setting <user_id> homeobjectstore bucket <target_bucket> - Re-enable the user:
occ user:enable <user_id>
Note that it's important that this app stays enabled during the migration as it includes logic to ensure shares owned by disabled users are readonly, preventing accidental writes to objects owned by the user being migrated.
You can get all users who are using a specific bucket by using
occ multibucket_migrate:by-bucket <bucket>You can get a list of all object belonging to a users home storage by using
occ multibucket_migrate:list <user_id>