Re: Command failure: Too Many Files (rm, ls, tar)

[email protected] (Bob Proulx)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.