backup script
- From: "someguy12345" <fakename12345@xxxxxxxxxxxxxxx>
- Date: 22 Feb 2006 11:18:32 -0800
Hi,
I'm using Suse9.3 and I'm trying to script an automated backup of some
files during the night when there's no one in the office. The first
think I'm having a problem with is getting tar to exclude a directory
(and everything below). I would like to pull the info from a seperate
file (--exclude-from=) but I'm not sure of the syntax to use.
Here's an imaginary file tree:
foo/ (top of tree I need to back up)
foo/fooa1/fooa2/fooa3 (sub branch #1)
foo/foob1/foob2/foob3 (sub branch #2)
foo/fooc1/fooc2/fooc3 (sub branch #3)
Now, supposing I want to backup everything under "foo" except branch
#2. What syntax to is use for file I'm using with tar switch
(--exclude-from=)? Will a line like "foob/" or "foob/*" (minus the
quotation marks) work?
Secondly, under the bash shell, how to I get my script to name the file
"<prefix><today's date>.tar?
Thanks for your help.
.
- Follow-Ups:
- Re: backup script
- From: Bernd Villiger
- Re: backup script
- From: Bernd Villiger
- Re: backup script -- Suggest to have a look at DAR and KDAR --
- From: AnonymousFC4
- Re: backup script
- From: David Bolt
- Re: backup script
- From: Eric Teuber
- Re: backup script
- From: houghi
- Re: backup script
- Prev by Date: 10.0 Unstable but where to start looking?
- Next by Date: Audacity on SuSE 10.0?
- Previous by thread: mail aliases - SUSE LINUX Enterprise Server 9
- Next by thread: Re: backup script
- Index(es):
Relevant Pages
|