Re: Speedup cp command?
On Tue, Aug 23, 2016 at 03:18:30PM -0500, Richard Owlett wrote:
> I'm copying Debian distribution DVDs.
> I used
> cp -R /media/cdrom0 /media/richard/myrepository/dvd_1
>
> It gave me what I wanted [*N.B.* I did not want dvd_1.iso]
> It was SLOW.
> The man page for rsync suggested that it could do it faster.
> Can it?
> If so, what is correct syntax to get the same result as the command above?
>
> TIA
Loop mount the DVD
mount -t iso /media/cdrom0 -o loop /mnt
cd /mnt
and you should see all the files within the DVD.
cd /media/richard/repository/dvd_1/
rsync -pavz /mnt/ .
Should do it. If you stop and restart rsync, it should start from the place it left off,more or less.
Hope this helps,
AndyC
Reply to: