Forums

Recover Deleted Files

I have a folder where images are being upload. It looks like my git pull deleted the files. Is it possible to recover the files. Its been a while since I overwrote the directory.What is the best practice to avoid deletion of files uploaded by user to not be included in git commits ?

If you have not added files to git, then they would not be tracked by git and a git pull would not delete them. If you want to exclude a directory from git entirely, you can add the directory name to your .gitignore file in the root of your repository.

We can recover the files for you, but our backups are not designed for point-in-time recoveries of user files, so we may not have a backup that is recent enough to recover all the missing files and the process is likely to take at least a day. Let us know when the files were deleted and where they are and we'll have a look at recovering them.

Apologies for the late response. I guess I missed the notification. The files were in the path mentioned below:

/home/rohitprasad/kvizmaster/uploads/2020/11 This path had directories for each day of the month.

Also : /home/rohitprasad/kvizmaster/uploads/2020/ also had a directory named 12

There were deleted sometime around January first week.

Please help its urgent now.

We no longer have backups from January.