Question

how to recover changes after wrong backup restore

hi i restored a droplet from a backup i had and it was the wrong one, the files i had and changes obviously were deleted and replaced by the backup, is there a way to retreive the files from before the restore process


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 7, 2024

Hey,

If you’ve restored a DigitalOcean Droplet from the wrong backup, and your files were overwritten, recovering the previous data can be difficult.

What you could do here is to check if you have any older backups or snapshots in the DigitalOcean Control Panel which you could use to restore to instead.

If your project was under version control like Git, you might recover your changes from a repository. Also, check if you by any chance have any more recent copies on your local machines, or other servers for example.

If none of these options work, reaching out to DigitalOcean support might help, though recovery isn’t guaranteed.

- Bobby.

alexdo
Site Moderator
Site Moderator badge
December 11, 2024

Heya, @6f2fdef512d74fd598fcaed809d4b8

You currently cannot undo restoring a Droplet from a backup. However, if you have a snapshot of your Droplet from before restoring from the backup, you can restore the Droplet to that snapshot.

Otherwise, the only option is manual recovery using, for example, local copies of the Droplet’s data you may have from development.

There might be a way to recover deleted files using tools like TestDisk, you can check out our tutorial on the tool here:

https://www.digitalocean.com/community/tutorials/how-to-install-testdisk-on-linux-and-recover-deleted-files

Regards

KFSys
Site Moderator
Site Moderator badge
December 17, 2024

Heya,

The best way would be to restore from the proper backup. There are not other options I believe at this point.

If you can’t restore from the backup you intended to, then it would be best to contact DigitalOcean’s support.

https://www.digitalocean.com/support/

Hope that helps! - KFSys.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.