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 request: Dashboard - Restore data directly in dashboard #3845

Open
stqp opened this issue Nov 19, 2024 · 2 comments
Open

Feature request: Dashboard - Restore data directly in dashboard #3845

stqp opened this issue Nov 19, 2024 · 2 comments

Comments

@stqp
Copy link
Contributor

stqp commented Nov 19, 2024

When restoring backup data, downloading it locally and then uploading it again is cumbersome.
I would like a feature in the amazee.io dashboard that allows direct backup restoration without the need for local download and upload.

@shreddedbacon
Copy link
Member

Thanks for the feature request. We can look into this possibility to be able to restore the backup into the filesystem of a pod somewhere within the environment for restoration by a user.

We won't ever perform the restoration of the data into any system though, that process would have to be performed by a user still.


As a work around though, the Download button is just a link to a signed S3 download which has a short life time. You can right click the download button to get this signed URL and then use a tool like curl to download the file into one of your pods via SSH.

This download URL is short lived, so you have to be relatively quick or you will have to refresh the page to generate a new URL.

Also, the lagoon CLI offers ways to get this download URL

Firstly list the backups for an environment that have been made available for download (or "restored")

lagoon list backups --project $project --environment $environment  --output-json | jq -r '.data[] | select(.restored=="true")'

Then get the backup using the backup ID, which will return the download URL for the backup. You can then use this URL with curl or other tools to download directly in a running pod via SSH.

lagoon get backup --project $project --environment $environment --backup-id $backupid  --output-json | jq -r '.result'

You need to be aware of where you are downloading it in the file system, and make sure you handle the data accordingly so you're not accidentally exposing it, or downloading it somewhere where it will then get backed up by another backup.

@shreddedbacon
Copy link
Member

Somewhat related to #2959 and #2888

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