You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I sometimes start a new Pocketbase instance with the intention of duplicating an existing instance.
I currently run the installer with a dummy admin user and pass and then restore from the backup menu. I think this might be a common flow for some folks.
It'd be more convenient to be able to upload and restore from a backup file directly from the installer UI, to avoid having to create this dummy admin user first.
Thanks for this great piece of software!
The text was updated successfully, but these errors were encountered:
Maybe even go as far as specifying a backup to load initially (i.e. pocketbase serve --initial-backup=init.zip). This way, no manual steps have to be done.
There is a method app.restoreBackup that can be executed in hooks, but it accepts a context object as the first parameter, which I don't know what to put into. Have not gotten that to work yet.
// a file somewhere in pb_hooks//// <reference path="../pb_data/types.d.ts"/>onAfterBootstrap((e)=>{e.app.restoreBackup(context,'init.zip')})
I sometimes start a new Pocketbase instance with the intention of duplicating an existing instance.
I currently run the installer with a dummy admin user and pass and then restore from the backup menu. I think this might be a common flow for some folks.
It'd be more convenient to be able to upload and restore from a backup file directly from the installer UI, to avoid having to create this dummy admin user first.
Thanks for this great piece of software!
The text was updated successfully, but these errors were encountered: