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

Create an "after" directive in gitpod.yml #10180

Closed
richardfrankza opened this issue May 23, 2022 · 2 comments
Closed

Create an "after" directive in gitpod.yml #10180

richardfrankza opened this issue May 23, 2022 · 2 comments

Comments

@richardfrankza
Copy link

Is your feature request related to a problem? Please describe

When the workspace goes to sleep, data may be lost. For example, bash history or a database. I'd like to be able to preserve this information and restore it on start up.

Describe the behaviour you'd like

We have before and init and command but I would like the ability to run a script as the workspace is closing down. For instance making a database snapshot to the workspace directory.

Describe alternatives you've considered

A cron job running every 3 minutes perhaps?

@axonasif
Copy link
Member

Duplicate of #3966

@axonasif axonasif marked this as a duplicate of #3966 May 23, 2022
@axonasif
Copy link
Member

When the workspace goes to sleep, data may be lost. For example, bash history or a database. I'd like to be able to preserve this information and restore it on start up.

We have an Epic for shell histories specifically: #9019
For the meantime, if you're interested, take a look at here: https://github.com/axonasif/dotfiles, persisting shell histories is already possible with dotifles feature of gitpod, just not straightforward enough.

or a database

If you keep it under /workspace dir, your database will persist.

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

2 participants