Michael C. Toren on Wed, 5 Jul 2000 13:18:13 -0400 (EDT) |
> LB> # tar cf - /dirname | (cd /mnt/dirname; tar xvf -) > > Which is similar to what I would use. I think you want a -p in there > so that you preserve permissions. Also, just to be safe, I would use: (cd /src && tar cvpf - *) | (cd /dest && tar xvpf -) I end up using lines similar to the above quite often when moving and copying directory structures. I also end up piping tar to gzip -c, and then to netcat to do network backups. -mct
|
|