Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2005 21:37:04 -0400
From:      James Skinner <james@tunasafedolphin.org>
To:        "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
Cc:        bsd List <freebsd-questions@freebsd.org>
Subject:   Re: moving /var/mail to another machine
Message-ID:  <4293D6C0.8070400@tunasafedolphin.org>
In-Reply-To: <E4E5B053-A85E-412F-95E7-3BB55BBF4CD7@shire.net>
References:  <004001c560b7$c51c3910$d580a23f@lisac>	<1D53733C-BC53-434D-B9AC-DD2B8371E78E@shire.net> <E4E5B053-A85E-412F-95E7-3BB55BBF4CD7@shire.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Chad Leigh -- Shire.Net LLC wrote:

>
> On May 24, 2005, at 6:40 PM, Chad Leigh -- Shire.Net LLC wrote:
>
>>
>> On May 24, 2005, at 5:24 PM, Lisa Casey wrote:
>>
>>
>>> Hi,
>>>
>>> I want to move all of the mailboxes (all of /var/mail/*) on one  
>>> machine to another one across a network. I need to preserve  
>>> permissions, uid's and gud's. (It would probably be good to  
>>> preserve modification times as well). I can move a file using scp,  
>>> but it doesn't preserve uid/gid
>>>
>>
>>
>> Can't you  just do
>>
>> cd /var/mail
>> tar cpf /tmp/var_mail.tar *
>>
>> scp /tmp/var_mail.tar user@host:
>>
>> ssh to the new host
>>
>> cd /var/mail
>> rm -rf *    # if you want to clean out the existing /var/mail on  the 
>> new machine
>> tar xpf ~user:var_mail.tar
>
>
> sorry  typo above
>
> should be
>
> tar xpf ~user/var_mail.tar
>
> Chad
>
>>
>> ????
>>
>> Chad
>>
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions- 
>> unsubscribe@freebsd.org"
>>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"

you need to use tar-cvpf /usr/local/archive.tar /var/mail to preserve 
the permissions. then, youre cool.

Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4293D6C0.8070400>