Best way to prevent accidental file deletion?

firstrig

Honorable
Dec 17, 2013
140
0
10,710
I have a portable hard disk where I back up my files. I am the only one who handles all my equipment so I don't intend to password protect or encrypt the drive. I just want to make sure that I don't accidentally delete my files. What's the best way to accomplish this? If I set all file permissions to DENY, will it work? is there an easier way?
 
You will not accidentaly delete your files if you connect the drive just during backup, and you use some backup software to manages your backups.

Setting file permisions to DENY (whatever this means) would make it diffucult to update these files with next backup run, and won't stop malicious person to delete them.
 


I don't take automated system backups. They are manual backups I take from time to time. I was talking about using the 'read only' option which comes bundled in Windows OS but is not honored when you plug the drive in a Linux system. To give you an example of how I accidentally sabotaged my drive, I was trying to rename a file and I made a spell error, so I hit CTRL+Z to undo it, except, I accidentally did it twice and lo behold! it undid my last action, which was the copying of hundreds of gigabytes worth of data. I want to prevent such things. I would like to be able to copy things into the drive and copy them from the drive but I don't want the option to delete the files on the drive *accidentally* without a confirmation prompt. The delete button at least gives a prompt, but hitting CTRL+Z at a wrong moment can ruin your entire day since there is no prompt.