Re: rsync arg list to long - solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



In article <46D6F986.4040106@xxxxxxxxxxxxxxx>,
Jerry Geis <geisj@xxxxxxxxxxxxxxx> wrote:
> 
> Doing " rsync -a /somedirectory/* . " doesnt work

If you have a ton of file in /somedirectory/ then the shell will complain
when it tries to construct a list of arguments a mile long.

> Doing " rsync -a /somedirectory . " does work.

Yes, and you should also note the difference between /somedirectory and
/somedirectory/ which in rsync cause different things to happen.

If /somedir contains files a, and b, then this:

rsync -a /somedir /destdir

will create /destdir/somedir/a and /destdir/somedir/b

whereas:

rsync -a /somedir/ /destdir

will create /destdir/a and /destdir/b

Cheers
Tony
-- 
Tony Mountifield
Work: tony@xxxxxxxxxxxxx - http://www.softins.co.uk
Play: tony@xxxxxxxxxxxxxxx - http://tony.mountifield.org
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux