|
From: | Bob Proulx |
Subject: | Re: Command failure: Too Many Files (rm, ls, tar) |
Date: | Tue, 15 Apr 2008 13:59:40 -0600 |
User-agent: | Mutt/1.5.13 (2006-08-11) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |