Protect your files against deletion
The other day, I accidentally delete all my documents in my computer.
This include pictures,emails and so on. The good think is I have a backup, the bad one is the backup has more than 6 months. A complete disaster!
I start moving all my private datas in a NAS server with NFS to be able to backup if. It takes a lot of time, a lot of disk space, and decrease the file access performances.
Today I think about another good and stupi idea, why don't use ln?
Think about it, if you make a hard link to a file (in the same FS of course) if tou delete one of the file, the other link remains, and the file is “backuped” right ?
So if I script it, and do every two hours, make a hardlink to the files in my home directory, I can backup everything and it doesn't cost too much. And if the files are big - videos and music - I won a lot, because those files never change, right ?
So, imagine a ./backup directory with directories like this :
./Backup/
200808101100_backup/
00001_inbox.dat
00002_outbox.dat
00003_IMG2421.jpg
....

