Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to undo deleted files on sftp/ssh? [closed]

Tags:

ssh

sftp

Is it possible to undo deleted files on sftp/ssh? Please say it is so!

like image 531
Himmators Avatar asked Jul 17 '12 20:07

Himmators


People also ask

How can I recover deleted files from SFTP server?

There is no such thing as a recycling bin for SFTP/SSH (as far as I'm aware). If you deleted deleted a file, then it's gone for all intents and purposes - recovering the file would most likely require special file-recovery software. Show activity on this post.

Can erased files be recovered?

If you can't find a file on your computer or you accidently modified or deleted a file, you can restore it from a backup (if you're using Windows backup) or you can try to restore it from a previous version.

How do I Unstage deleted files?

In your case you must have used git rm to remove the file, which is equivalent to simply removing it with rm and then staging that change. If you first unstage it with git reset -- <file> you can then recover it with git checkout -- <file> .


1 Answers

Deleting files over SFTP/SSH is no different from running rm on a *NIX machine or SHIFT+DELETE on Windows. There is no such thing as a recycling bin for SFTP/SSH (as far as I'm aware). If you deleted deleted a file, then it's gone for all intents and purposes - recovering the file would most likely require special file-recovery software.

like image 149
Palladium Avatar answered Sep 23 '22 20:09

Palladium