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

How to restore data? #1

Open
chrschdev opened this issue Nov 29, 2023 · 5 comments
Open

How to restore data? #1

chrschdev opened this issue Nov 29, 2023 · 5 comments

Comments

@chrschdev
Copy link

Hey,
nice that you have developed a script for storyblok space backups!

Not an issue, but what is the recommended way to restore an existing backup to storyblok?

@codeflorist
Copy link
Member

hey @chrschdev,

at the moment no restore-functionality is included. i might add one in the future.

you can call storyblok's management API to update or create single elements.

@cgpro
Copy link

cgpro commented Jan 23, 2024

A restore function would be very handy... +1 😬 but nevertheless, the script is already very cool. stupid pricing strategy at storyblok... to enable backups only from business level. 🙄

@chrschdev
Copy link
Author

@cgpro totally agree, i also don't understand why this is only a business level feature. I stopped creating new projects with Storyblok, have no trust anymore in their pricing policy...but nevertheless, thx @codeflorist for your work!

@codeflorist
Copy link
Member

codeflorist commented Jul 13, 2024

hey everyone!

i've just released v0.1.0, which includes a restore script (see docs for details). however, only restoring of single resources is possible.

a full restore over an existing space or via creating a new space is quite problematic, since non-existing resources will get new IDs and all relations must reflect that. i might add such a functionality later.

@codeflorist
Copy link
Member

i've just released v0.3.0, which includes a new --propagate option for the restore script, which can be used in conjunction with --create. this option will update all stories referencing the old UUID (as stated in the backup-json's uuid field) in the relevant fields (single/multi-option, references, links, links in rich-text fields) with the new one.

it's still not a full restore, but one step closer to it.

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