How to backup and restore collection API permissions? #7083
Replies: 1 comment
-
I don't understand what do you mean by this. It is also not clear what actually you mean by "permissions". If you mean the collections API rules, then they should be already available as part of the Export/Import collections apis. With that said, the recommended approach to migrate your collection options from one environment to another is to use the builtin Go or JS migrations. If you are using the prebuilt binary, then the JS migrations are already enabled and you should have a If that doesn't help, please try to elaborate more clearly what actually is the problem but we currently support both options - migration via migration files and manually via web api snapshots (aka. the Export/Import settings) so I don't see what else we can do more here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to figure out the best way to copy all permissions from one PocketBase instance to another. Right now, I update permissions locally and then manually apply them to my test instance, which is a bit tedious. Is there a way to define all permissions in a single migration file? Also, I've noticed that backups don't seem to restore permissions on the user collection and the mail template in the users collection.
What's the recommended approach for handling this in PocketBase? also it would great if there was an option to just export permisions as json and import it (settings/export-collections)
Beta Was this translation helpful? Give feedback.
All reactions