On Wed, Sep 20, 2000 at 12:41:22AM +0000, Marshall, Joshua ([EMAIL PROTECTED]) 
wrote:
> Hi All.
> 
> I'm wanting to back up the Mail directories of all the users on my 
> server, and leave all their other files for a separate backup. Can I do 
> this with tar? And what would the flags be?
> 
> The Maildirs are kept in their home directories, along with all their 
> working files, so I want to be able to have a backup which stores:
> User1/
>      Maildir/
>           cur/
>           new/
>           tmp/
> User2/
>      Maildir/
>           cur/
>           new/
>           tmp/
> 
> etc...etc...


Hi Joshua,

for the mail dirs its easy, just tell tar the directory to backup eg:

  tar  /User2  /User1

for the rest you exclude the stuff:

                                                 the lot
                                                    |
                                                    V 
  tar --exclude FILE_WITH_DIR_EACH_LINE_TO_EXCLUDE  /

  or:

  tar -x /User1



jhs





-- 
The future isn't what it used to be (it never was).

|            __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director|
|  _ _.--'-n_/   Barrett Consulting Group P/L & The Meditation Room P/L      |
|-(_)------(_)=  +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia|


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to