rsync and deleted files

Nathan England nathan at paysonlinux.org
Mon Sep 7 19:34:05 MST 2009


I plugged my USB drive into my system, ran my backup script and went to
supper. My backup script contains

rsync -avz --delete-after /home/naubrey/ /media/320GB/naubrey/


Usually, it works great. Problem is my /home/naubrey/ directory on my
system was EMPTY and it wiped out my backup!!!!

I just wiped my work laptop and reinstalled, but I had not copied my user
directory stuff back because I needed to make some additional changes. I
made the changes and wanted to back up the changes, forgetting my user
directory was included in my all_inclusive backup script...

The USB drive is ext2 and when I came back I immediately unmounted and
mounted ro.

This is a typical user directory with 60GB of text files, abiword files,
kword files, OpenOffice files, mp3, ogg, about 100 avi dvds, and thousands
of notes... Some files were only 2 k others were over 1GB.

As I have never attempted recovery of deleted files because I am (99% of
the time) very vigilante about my backups. I design backup systems for
customers!!!! ha ha

What utilities or programs are there that might automate this as I really
don't care to sit and tell the system to recover this inode, and yes, this
inode, and again y to this inode as there are well over 200,000 files.

Thanks for any help, insights, condolences!!!

nathan



More information about the PLUG-discuss mailing list