Report this

What is the reason for this report?

I want backup of one file from past date

Posted on December 4, 2019

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]



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!

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.

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.

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.