Use of 'COPY' command

4 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 1 hour 28 min ago
Joined: 2010-11-30 14:09
Use of 'COPY' command

Hi,

As one of the drives in my X5000 is making ehm, eh, lets say: 'funny noises', I decided to move the partitions it contains to another disk, using 'COPY'. One partition in particular contains truckloads of 'links' and whatever I tried, none of the links is copied as a link proper.

I tried the following:

  1. c:copy <from> <to> ALL CLONE
  2. - resulting in none of the links copied
  3. c:copy <from> <to> ALL CLONE COPYLINKS
  4. - resulting in the links being copied as files
  5. c:copy <from> <to> ALL CLONE FOLLOWLINKS
  6. - resulting in none of the links copied
  7. c:copy <from> <to> ALL CLONE COPYLINKS FOLLOWLINKS
  8. - resulting in the links being copied as files

Is there a way to copy (soft-)links as links and not as files?

OldFart

jabirulo
jabirulo's picture
Offline
Last seen: 1 month 14 hours ago
Joined: 2013-05-30 00:53
Re: Use of 'COPY' command

help copy:
...
NOTES
COPY does NOT provide any way to recreate hard or soft links,
but instead it allows copies of the target that the link points to
with the COPYLINKS option or FOLLOWLINKS into a linked directory.
...

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonRX550/SSD240GB/DVDRW :-P

cwenzel
cwenzel's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 2021-01-12 07:05
Re: Use of 'COPY' command

Now that OS4.1 Update 3 has been released, I can tell you about this.
You will find the new c:Mirror command will do what you want.
This allows you to make an exact mirror copy of a volume or directory to anywhere else.

OldFart
OldFart's picture
Offline
Last seen: 1 hour 28 min ago
Joined: 2010-11-30 14:09
Re: Use of 'COPY' command

@CWenzel

When I saw your new version of Snoopy on OS4Depot I realised that this meant an upgrade to OS4.1 was available or imminent. The first appeared to be the case. Downloaded both Snoopy and Update 3.

Thanks!

OldFart

Log in or register to post comments