Welcome, Guest. Please login or register.

Author Topic: CLONE argument of copy command  (Read 3353 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
CLONE argument of copy command
« on: October 23, 2008, 02:24:08 PM »
What exactly does 'COPY ... CLONE' do compared to just 'COPY'?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline ZeBeeDee

  • Hero Member
  • *****
  • Join Date: Jan 2007
  • Posts: 1081
    • Show only replies by ZeBeeDee
Re: CLONE argument of copy command
« Reply #1 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

To err is human ... to BOING divine!

[SIGPIC][/SIGPIC]
 

Offline darksun9210

Re: CLONE argument of copy command
« Reply #2 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.

A500, A600, A1200x3, A2000, A3000, A4000 & a CD32.
and probably just like the rest of you, crates full of related "treasure" for the above XD
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: CLONE argument of copy command
« Reply #3 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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4052
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: CLONE argument of copy command
« Reply #4 on: October 23, 2008, 03:13:59 PM »
I have always used "copy df0: all"  that seems to do exactly the same thing
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline Colani1200

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 707
    • Show only replies by Colani1200
Re: CLONE argument of copy command
« Reply #5 on: October 23, 2008, 03:14:53 PM »
I think the clone option preserves the file attributes.
 

Offline zipper

Re: CLONE argument of copy command
« Reply #6 on: October 23, 2008, 03:48:51 PM »
And keeps the original datestamps for the drawers.
 

Offline zipper

Re: CLONE argument of copy command
« Reply #7 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...)
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show only replies by AmigaMance
Re: CLONE argument of copy command
« Reply #8 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
A1200 PPC user.