[leafnode-list] Re: Moving news spool

Matthias Andree matthias.andree at gmx.de
Fri Nov 18 03:23:35 CET 2005


"John Carlyle-Clarke" <john.cc at europlacer.co.uk> writes:

> I want to move my leafnode installation to a new machine.  I intend to 
> use tar to backup my spool, and then copy it across and unpack it.  
> The location on the new machine will be the same.
>
> Can anyone advise me as to what options to use with tar to ensure that 
> the spool structure is undamaged, for example to preserve the 
> symlinks, file times, etc.

Just adding "-p" when extracting should do.

cd /var/spool/news && tar cf leafnode-spool.tar .
copy over leafnode-spool.tar.gz

on new machine:
mkdir -p /var/spool/news
chown news:news /var/spool/news
tar xpf leafnode-spool.tar

should do the trick. (This example does not use compression.)

If you have a direct connection between the to, you can also use a
pipeline, for instance, on the old computer, type:

cd /var/spool/news && tar cf - . \
| ssh new 'mkdir /var/spool/news && cd /var/spool/news && tar xf -'

-- 
Matthias Andree



More information about the leafnode-list mailing list