06 November 2019, 23:59 | #1 |
Registered User
Join Date: Oct 2006
Location: USA
Posts: 1,058
|
Fastest way to exactly copy many files, Amiga-Side?
What is the fastest way on the Amiga to copy many files and folders recursively, with attributes etc.?
I tried directory opus 4 and 5, but it is slow and sometimes seems to truncate filenames etc. Maybe the copy command on the CLI is better? Which arguments shall I use? On my MacBook, I use rsync. |
07 November 2019, 00:20 | #2 |
Registered User
Join Date: Nov 2014
Location: The Ford Galaxy
Posts: 214
|
Since you asked "What is the fastest way on the Amiga to copy many files and folders recursively, with attributes etc.?
I have passed this on many times... and use it myself. Works great. UNCROMPRESSED is faster. -------------------------------------------------------------------------- From mfilos..... http://eab.abime.net/showpost.php?p=673448&postcount=2 LHA utility is enough mate. Just open a CLI and type: Code: 1> DH0: 1> lha -aezrx a DH1:backup.lha #? That will create a file called "backup.lha" under partition DH1 (assuming the partition you want to backup is partition DH0) maintaining all protection bits etc. The archive is not compressed so it will be rather large. If you want to make it compressed also just replace "z" with "Z" in lha options of the command provided. Then of course you can transfer the one lha file via FTP or any other way anywhere To restore the archive anytime just use the following command: Code: 1> DH0: 1> lha x DH1:backup.lha |
07 November 2019, 04:41 | #3 |
Registered User
Join Date: Oct 2006
Location: USA
Posts: 1,058
|
But I don't want to have one .lha file, I want each file and folder to appear on destination.
|
07 November 2019, 07:30 | #4 |
Registered User
Join Date: Sep 2004
Location: Poland
Posts: 1,301
|
It depends from many things.
First of all if something is truncated, You have something not right. It should not alter data in any way with proper system and settings. Check file manager if it supports longer filenames. Second it depends from filesystem. OFS is slowest, FFS is little faster but not too much. If You want good speed it should be SFS or PFS. I had PFS3 on my Amiga Classic and disk operations were rather fast. What CPU You have, it depends also from CPU - the faster the better. And even some FastRAM speedup disk ops. You can also try to add buffers to device, it should speed up it. Last edited by Solo Kazuki; 07 November 2019 at 08:17. |
07 November 2019, 10:35 | #5 | ||
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,006
|
Quote:
Quote:
Something like this... Code:
Copy source:#? destination:path/ ALL CLONE QUIET If you have soft links in the directory structure, then the Copy command isn't a good solution, but you have to find some 3rd party program for copying them correctly. BackUp, MirrorCopy, etc come handy then. |
||
07 November 2019, 14:04 | #6 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
As already mentioned by others. DOpus should work. If not something else is wrong (setting, filesystem, ...). If you want to copy only files that have changed like rsync then use Backup or MirrorCopy.
|
07 November 2019, 23:03 | #7 |
Registered User
Join Date: Aug 2018
Location: Mansfield
Posts: 76
|
Ill just make a note here, DOPUS has filesystem limits compared to CLI. I did some tests a month or two ago, to see how many characters a folder could have, and with how many nested folders inside could be ... CLI can go on forever, DOPUS I guess they decided to limit the amount of chars for tracking / memory usage?.
|
08 November 2019, 11:37 | #8 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
What DOpus version you are talking about? How many characters for a folder worked for you and where is the limit? How many sub directories? Give us examples/facts so we can test it on our systems. A small shell script that does all the things in RAM would be nice.
|
09 November 2019, 02:16 | #9 |
Registered User
Join Date: Oct 2006
Location: USA
Posts: 1,058
|
Thanks for all the help! In the end I was successful with the copy command:
copy ALL FROM #? TO DH1: worked perfectly Yes, after I had some problems with Directory Opus 4 a year or so ago (truncating filenames, not copying files with many many subdirectories), I don't trust Directory Opus for this task anymore. I vaguely remember also having similar problems with latest Directory Opus 5 Magellan, but I might be wrong about that. |
09 November 2019, 12:13 | #10 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
DOpus 5.82 works fine here. There is a (cosmetic) problem with truncated filename length in text lister. A lister buffer refresh can solve it.
|
09 November 2019, 13:16 | #11 |
Registered User
Join Date: Aug 2018
Location: Mansfield
Posts: 76
|
I was using : Directory Opus 5 release 5.5 - Notes 20th August 1996.
I dont have my notes on me, but I think I was using DOPUS to create a folder : 012345678901234567890123456780 and then going inside and creating the same folder ... I think 8 times? then going to CLI makedir 012345678901234567890123456780 cd 012345678901234567890123456780 up arrow a few times, and you can re-run each line again. and you will notice CLI, can go forever. I can do some tests in a few weeks, at the moment in the middle of a project. |
09 November 2019, 13:30 | #12 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
|
09 November 2019, 15:54 | #13 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
I guess that is a CD and max command line length problem. With DOpus 5 and on CLI (3.1) I can greate 8 folders of 30 char length. The next (9) makedir throws an error ("can't create directory" or "already exists"). The ninth directory is shown in CLI "12" (DOpus 5) and "123456" (CLI). If I do a CD before makedir the directories are created without errors like you mentioned.
|
10 November 2019, 00:29 | #14 |
Commodork
Join Date: Nov 2018
Location: Finland
Posts: 82
|
ZShell is great: "copy -r DH0: DH1:"
|
10 November 2019, 03:52 | #15 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
Why is ZShell great?
|
10 November 2019, 15:54 | #16 | |
Commodork
Join Date: Nov 2018
Location: Finland
Posts: 82
|
It delivers some sweet unixlinux feels. I boot straight to ZShell and not WB, because I like typing more than mouse action. Also easy to make function key macros (alias) for those often used commands.
Here is the convincing bits from the readme: Quote:
|
|
10 November 2019, 18:28 | #17 | |
Registered User
Join Date: Aug 2018
Location: Mansfield
Posts: 76
|
Yeah I couldn't remember the exact numbers Thanks for confirming though.
I guess each programmer had their own ideas ... back in the day ... who ever is going to need more than 8 nested folders of 30 chars? Quote:
|
|
10 November 2019, 19:07 | #18 | |
Registered User
Join Date: Nov 2019
Location: Croydon
Posts: 580
|
Quote:
OP, I found that the fastest way is the CLI. Dir managers seem to slow down with large file operations. |
|
10 November 2019, 19:51 | #19 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
|
I was obviously not communicating clearly. What I wondered was why it was a better alternative for copying files.
|
10 November 2019, 20:08 | #20 |
Commodork
Join Date: Nov 2018
Location: Finland
Posts: 82
|
Never tried KingCON, so I can't tell. Only once seen someone use it on a video and the tab filename completion seemed much clunkier.
I did provide a command example, which does the same as "ALL FROM TO CLONE", but with a simpler syntax. I doubt there is any speed difference in action, though of course measuring is always welcome, if anyone cares enough. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mounting .hdf files from Linux side? How? | Hercules | support.OtherUAE | 5 | 13 January 2020 10:48 |
How to copy files from inside an Amiga hardfile to real filesystem | markmarques | support.WinUAE | 4 | 10 April 2017 10:49 |
fastest possible rom copy loop | Yulquen74 | Coders. Asm / Hardware | 17 | 10 May 2014 19:10 |
Amiga IDE shows in WinUAE but I can't copy files! | SimonLCFC | support.Hardware | 18 | 08 July 2012 23:17 |
program to format/copy Amiga diks/files on the PC side ? | Overdoc | support.Other | 3 | 21 January 2010 18:08 |
|
|