I want backup of one file from past date

Posted December 4, 2019 371 views

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]

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.

Submit an Answer
1 answer

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.