Dear community,
I have been working on some sites on my droplet, I went to delete a folder in the apps root and I accidentally deleted the entire apps root using rm -r (with f or a wildcard idr)
I know rm is dangerous command, I know I have to enable backups, but is there anyway I can recover all the files from the cloud? I went to use photorec but it tells me no hard disk found, meaning that’s cloud I assume.
I also have a backup archive but the sad thing is I had it stuck at 99% and cancelled, now I can tell it is corrupted archive and fixing it gives me only 2 folders while it is for the whole apps root.
Any thoughts?
TYVM!
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!
Heya,
Even though you mentioned you didn’t enable backups, it’s worth double-checking:
If snapshots and backups are not available, you can try using testdisk to recover deleted files. testdisk is a powerful data recovery tool that can work in some cloud environments. You can also check this article:
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.