Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: motorollin on October 23, 2008, 02:24:08 PM

Title: CLONE argument of copy command
Post by: motorollin on October 23, 2008, 02:24:08 PM
What exactly does 'COPY ... CLONE' do compared to just 'COPY'?

--
moto
Title: Re: CLONE argument of copy command
Post by: ZeBeeDee on October 23, 2008, 02:36:32 PM
IIRC the CLONE argument copies all files and dir structures from 1 place and recreates them at the destination

e.g.

df0:c/copy df0:#? sys: all clone


It's been far too long for CLI commands ... DOpus rules lol

Title: Re: CLONE argument of copy command
Post by: darksun9210 on October 23, 2008, 02:40:56 PM
thats the bunny.... and "all" goes down all subdirectories. so if i was doing a backup or workbench copy to another machine, i'd do "copy dh0:#? dh1: all clone"

this would give me a pure like for like copy.
Title: Re: CLONE argument of copy command
Post by: motorollin on October 23, 2008, 03:04:59 PM
Brilliant, cheers. I'm copying the contents of the OS4 CD to an FFS hard drive under UAE and I suspected I needed the clone argument. I actually did this:

Copy cd0:#? hd0: ALL CLONE

I'm hoping that will result in an exact copy of what's on the CD.

--
moto
Title: Re: CLONE argument of copy command
Post by: jj on October 23, 2008, 03:13:59 PM
I have always used "copy df0: all"  that seems to do exactly the same thing
Title: Re: CLONE argument of copy command
Post by: Colani1200 on October 23, 2008, 03:14:53 PM
I think the clone option preserves the file attributes.
Title: Re: CLONE argument of copy command
Post by: zipper on October 23, 2008, 03:48:51 PM
And keeps the original datestamps for the drawers.
Title: Re: CLONE argument of copy command
Post by: zipper on October 23, 2008, 03:50:45 PM
Quote


Copy cd0:#? hd0: ALL CLONE

I'm hoping that will result in an exact copy of what's on the CD.

--
moto


add QUIET, too - will go quicker.
(or use the command Xcopy...)
Title: Re: CLONE argument of copy command
Post by: AmigaMance on October 23, 2008, 04:17:12 PM
I'm using it by default. Here is how:
Open the s:shell-startup file and add the line
alias copy c:copy clone