[nflug] copy (cp) large number of files

Jonathan Skulski jskulski at gmail.com
Tue Apr 25 09:51:26 EDT 2006


Because we don't have enough solutions yet ;-)

cd /mnt/mus/multimedia; for i in *; do cp -a $i /mnt/multimedia; done

On 4/25/06, David J. Andruczyk <djandruczyk at yahoo.com> wrote:
>
> use rsync.  rsync -av /source /destination
> man rsync for details, or rsync --help
>
> rsync is nice becasue you can quit partway through and recontinue
> unlike cp which starts over again.
>
>
> --- Darin Perusich <Darin.Perusich at cognigencorp.com> wrote:
>
> > try do a tar copy.
> >
> > cd /mnt/mus/multimedia/
> > tar -cf - . |(cd /mnt/new/multimedia && tar -xf - )
> >
> > Robert F. Stockdale IV wrote:
> >
> > >
> > > cp /mnt/mus/multimedia/* /mnt/mus/
> > > -bash: /usr/bin/cp: Argument list too long
> > >
> >
> >
> > --
> > Darin Perusich
> > Unix Systems Administrator
> > Cognigen Corporation
> > 395 Youngs Rd.
> > Williamsville, NY 14221
> > darinper at cognigencorp.com
> > _______________________________________________
> > nflug mailing list
> > nflug at nflug.org
> > http://www.nflug.org/mailman/listinfo/nflug
> >
>
>
> Dave J. Andruczyk
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nflug.org/pipermail/nflug/attachments/20070525/8177f066/attachment.html
-------------- next part --------------
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug


More information about the nflug mailing list