On Sun, 30 Jan 2000, you wrote:
> Hey people!
>
> A recent accident with a mke2fs command on my /home partition has
> caused me to try to implement some sort of backup procedure. Now I'm
> a lazy forgetful <insert appropriate adjective>. So I figure tar... a
> nice shell script... cron, and Bob's me Uncle.
>
> All's well and good until I get to the part where I want to exclude a
> few directories from the backup. You know things like
> ~/.netscape/cache and that sort of thing.
I do it the simple way, or at least it seems the simplest way.
mkdir /tmp/home
cp wanted files and dirs /tmp/home
If you script in the right order you can create a duplicate of /home in
/tmp/home
Now tar the /tmp/home as archive
rm -f /tmp/home
rmdir /tmp/home
That way i dont worry about what man tar says and i get the job done in one
little script.
> ===========================
> Want to really learn Linux?
> ... Install Slackware
> ===========================
>
>
> Footnotes:
> [1] Don't worry about the variables here, they're all ok. The script
> works fine except it doesn't take any notice of the exclusions
>
> --
> |---<Regards, Steve Youngs>-------------------------------------|
> | Failures are divided into two classes - those who thought and |
> | never did, and those who did and never thought. |
> |------------------------------------<[EMAIL PROTECTED]>---|
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/