Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transfer files by cli between 2 Onedrive Business accounts? #10683

Closed
cyberduck opened this issue Apr 17, 2019 · 5 comments
Closed

How to transfer files by cli between 2 Onedrive Business accounts? #10683

cyberduck opened this issue Apr 17, 2019 · 5 comments

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Apr 17, 2019

fb4f814 created the issue

Good afternoon,

I tried many times to copy a file from a OneDrive Business account ( bostonatexample.com) to another a OneDrive Business account ( chicagoatexample.com) by CLI but it keeps failing.

I would appreciate if you could provide me the correct syntax through an example (like the one below but which is not correct.)

duck --username bostonatexample.com --copy "onedrive://Folder1/File1.txt" --username chicagoatexample.com "onedrive://Folder2/"

Regards,

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 4, 2019

@dkocher commented

Please try

duck --copy onedrive:bostonatexample.com@/Folder1/File1.txt onedrive:chicagoatexample.com@/Folder2/

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 5, 2019

fb4f814 commented

Hi,

Thank you the reply.

duck --copy onedrive:bostonatexample.com@/Folder1/FolderA/ onedrive:chicagoatexample.com@/Folder2/

is working fine.

but I keep getting the following error message while trying to upload only a file to a folder ( which is in the same folder that the one that was uploaded successfully with the previous command) .

duck --copy onedrive:bostonatexample.com@/Folder1/FolderA/file1.txt onedrive:chicagoatexample.com@/Folder2/

The error message is :

"Upload test failed.Conflict.Cannot create an upload session on a folder.Please contact your web hosting service provider for assistance."

Thank you,

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 22, 2019

@dkocher commented

You will have to use the full URL for the target including the filename such as

duck --copy onedrive:bostonatexample.com@/Folder1/FolderA/file1.txt onedrive:chicagoatexample.com@/Folder2/file1.txt

Loading

@cyberduck cyberduck closed this Jun 22, 2019
@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 25, 2019

fb4f814 commented

Thank you,it works!

Loading

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Jun 25, 2019

@dkocher commented

Replying to [comment:6 pardub]:

Thank you,it works!
Thanks for confirming.

Loading

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant