cloudcmd icon indicating copy to clipboard operation
cloudcmd copied to clipboard

Poor transfer speed, goes faster with CP

Open evildemons opened this issue 1 year ago • 9 comments

I use default settings, when I choose to copy via webgui it takes a super long time but when I use "CP" in Linux it goes much faster.

  • Version (cloudcmd -v): v18.3.0
  • Node Version node -v: v18.19.1
  • OS (uname -a on Linux): Linux backup-server 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Browser name/version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

evildemons avatar Nov 30 '24 15:11 evildemons

Is from/to paths you use are the same? Could you please provide video or more details?

coderaiser avatar Nov 30 '24 19:11 coderaiser

Is from/to paths you use are the same? Could you please provide video or more details?

I took pictures as it is easier, a few seconds may be wrong. The test I did is on the same server and the same folder.

SSH Webgui01 Webgui02

evildemons avatar Nov 30 '24 20:11 evildemons

Different ways of copying: second with progress bar.

coderaiser avatar Nov 30 '24 22:11 coderaiser

Different ways of copying: second with progress bar.

Is there anything that can be improved? I've been thinking of moving over 30TB, but it will take many weeks to move over when it's so slow.

It is also not possible to log out from the page.

evildemons avatar Dec 01 '24 08:12 evildemons

It is also not possible to log out from the page.

While copying?

Is there anything that can be improved?

PR’a are welcome

coderaiser avatar Dec 01 '24 20:12 coderaiser

It is also not possible to log out from the page.

While copying?

I don't mean when I'm copying but it doesn't work. When I try to log out, it goes back to the root folder and enters more hands.

Is there anything that can be improved?

PR’a are welcome

I'm thinking about whether you should recode it instead, so that it uses Linux screen (cp) instead and then checks the size first of the file and then checks the second file that is being copied, so you can see the percentage when it's finished.

And the hash on the file is also checked, so everything has gone right.

I would like that when you copy things that it sort of puts in a task, so that you can do other things instead of having to wait until it has finished copying before you can do anything else.

https://github.com/coderaiser/cloudcmd/blob/master/server/fixture-user-menu/io-cp-fix.js Is this what is used to copy?

evildemons avatar Dec 01 '24 20:12 evildemons

copymitter is used, that is interesting idea, you can implement your idea as separate module with the same interface, and we can opt out this feature. The only thing it will work only on Unix, but the idea is good

coderaiser avatar Dec 01 '24 21:12 coderaiser

copymitter is used, that is interesting idea, you can implement your idea as separate module with the same interface, and we can opt out this feature. The only thing it will work only on Unix, but the idea is good

I can try to create it as a module, haven't coded much within node js. I mostly code in C#, php.

There is hardly anyone who uses this for Windows, for me the obvious choice is Linux.

evildemons avatar Dec 01 '24 21:12 evildemons

There is hardly anyone who uses this for Windows, for me the obvious choice is Linux.

I have no access to any Windows computer, but right now Cloud Commander works both on Unix and Windows, anyways on Windows other built-in cli tool can be used for copying.

coderaiser avatar Dec 02 '24 12:12 coderaiser