[clue-tech] Linux server, backups...
Jed S. Baer
cluemail at jbaer.cotse.net
Sat Nov 1 18:03:33 MDT 2008
On Sat, 1 Nov 2008 16:03:59 -0700 (PDT)
Adrian F. Nagle, IV wrote:
> I have two external hard drives on my Linux server. What is the
> easiest way to backup one drive onto another.
cd /drive1
tar cf - . | (cd /drive2; tar xf -)
That does:
tar; create file and send it to stdout, from the current directory
pipe it to this other tar process, which extracts from file, reading
from stdin, but cd to the destination first.
jed
More information about the clue-tech
mailing list