[4413] in RedHat Linux List
Re: How to undelete files..
daemon@ATHENA.MIT.EDU (Borg)
Thu Nov 14 18:38:21 1996
Date: Thu, 14 Nov 1996 11:18:01 -0800
From: Borg <vladimip@iceonline.com*>
To: Ho See Chung <ncscho@ug.cs.ust.hk>
CC: Red Hat Mailing List <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Ho See Chung wrote:
>
> I have carelessly deleted some important files. Is there a way to recover
> them. Or, is there a way to prevent this from happening again. Like some
> program which can back up a copy for u automaticaly, ie, any rpm package
> that do this?
I am afraid undeleting is not possible. For backing up
my data and system config files on my home computer I
put the following simple script in /etc/cron.daily:
#!/bin/sh
cd /zdrive;
mv -f etc.tar.gz etc.tar.gz.old;
mv -f vlad.tar.gz vlad.tar.gz.old;
cd /
tar -czf /zdrive/etc.tar.gz etc;
tar -czf /zdrive/vlad.tar.gz /home/vlad;
tar -czf /zdrive/root.tar.gz /root;
tar -czf /zdrive/usrlocalbin.tar.gz /usr/local/bin;
sync;sync;sync;
echo "Backup: done"
That makes backups on a ZIP drive at 2:00 every night without any
additional interference. Yes, a week ago, I deleted everything
in my home directory and I was very glad I could recover it in
a matter of seconds. I started making backups after I hosed
all my C++ tutorials and 50 little custom programs I wrote
in the cource of learning during 2 months. I do not backup the
whole system since it would be easy to reinstall it anyway but
data and configuration files are what's important.
--
*** #include <disclaimer.h> ***** Good pings come in small packets
******** Vlad Petersen ********** ********************************
*** <vladimip@iceonline.com> **** **** Linux: OS I can trust *****
******** Vancouver, B.C. ******** ********************************
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null