Browder, Tom wrote: > Bob Proulx wrote: > >For your 'tar' case you can avoid the argument expansion > >entirely simply by giving '.' as the argument. > > > > tar cvzf xfer.tgz . > > Hm, when I try this the tgz archive gets sucked back into itself.
Oops. You are right. I typed that in too quickly. Of course it is possible to put the tar archive elsewhere. tar cvzf ../xfer.tgz . tar cvzf /tmp/xfer.tgz . Also if you are simply sync'ing two directories then I recommend using 'rsync' for this. It is a great tool and designed for just such activity. rsync -av ./fromhere host1.example.com:/to/there/ rsync -avz --progress ./fromhere host1.example.com:/to/there/ Bob