[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: Moving news spool
"John Carlyle-Clarke" <john.cc@xxxxxxxxxxxxxxxx> 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 -'
leafnode-list mailing list