Wiped out local and mobile disks thoroughly...
- Anmelden oder Registrieren um Kommentare zu schreiben
I wanted to move the root directory to a portable disk. But I entered "rm" instead of "mv" by mistake.
Now both disks are emptied.
Is there any free/libre data recovery software?
You can try PhotoRec: https://www.cgsecurity.org/wiki/PhotoRec
In Trisquel's repository, you can have it installing the "testdisk" package. Notice that you can install it in a live session. You should write down the recovered files to another disk.
Thanks. Sounds fine...
I still keep a Trisquel Live USB.
photorec is da best :)
Testdisk and Photorec are really good.
This time, I meant to make a demonstration of basic GNU/Linux operations. However, the result was disastrous...
This is why it's a good idea to always have backups.
I always have backups. But the backups are wiped out as well. Just because I entered "rm" instead of "mv".
Oh there's your problem then: As you experienced, backups don't do any good if they're online, connected to the machine, and can be destroyed at the same time. This is they should be *offline* backups; i.e. only connected to the computer when they're being updated and then unplugged.
Yes, I was about to update my offline backup on a (dedicated) portable HDD, and resulted in disaster...
Question: why did you do this as root? Why not just "cp -r /home /media/whatever"?
I always use "sudo rm -rf" to delete files irreversibly. So I set the literal "rm" as an alias for "rm -rf".
Because I wanted to move files to the root directory of the portable disk, I had to use "sudo" as well.
The collective result was "sudo rm -rf source destination".
You could at least add -I to your alias.
They say you don't have backups if you only have one on-site copy.
https://www.howtogeek.com/219197/youre-not-backing-up-properly-unless-you-have-offsite-backups/
- Anmelden oder Registrieren um Kommentare zu schreiben