I want backup of one file from past date

Hello eveyryone, I am new to DO and have one website on droplet, accidently I made some changes in one php file and while uploading the file it got corrupted. I want to backup the old version of this file.

PS: I do not have Backup enabled [which I will do immediately]

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there, I don’t think that you will be able to restore a file if you don’t have backups enabled. Maybe try re-uploading the file from a local copy again. Also I would strongly recommend using a version control like git for example, that way you will be able to revert the contents of your files at any given point.