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

Feature: Add backup() and restore() methods #127

Open
ntorrey opened this issue Jun 6, 2023 · 2 comments
Open

Feature: Add backup() and restore() methods #127

ntorrey opened this issue Jun 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ntorrey
Copy link

ntorrey commented Jun 6, 2023

This is kind of related to surrealdb/surrealdb#30 (comment)

It would be great if there were a backup() and restore() method in the js library. Since I use firebase functions to run CRON jobs and other tasks against my surrealdb instance, it would be nice to also be able to schedule regular backups from there as well. The backup() method would simply return the .surql file and the restore() method would... restore it.
It would also be super-helpful for backing-up/restoring from a front end environment (like an administration dashboard, etc.)

@kearfy
Copy link
Member

kearfy commented Jun 6, 2023

Hi @ntorrey, this feature is not yet implemented in the WebSocket protocol just yet, so we won't be implementing this just yet. I will leave this issue open however for when this does become an option!

@kearfy kearfy added the enhancement New feature or request label Jun 6, 2023
@ntorrey
Copy link
Author

ntorrey commented Jun 7, 2023

Silly me - this functionality is already possible for me using the /export and /import REST endpoints! Not sure why I didn't think of this before.
In any case, I think this feature would still be useful.
If anyone else is using firebase functions and wants to know how I scheduled regular backups and got imports working, just ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants