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
Labels
cli Command Line Interface feature worksforme

Comments

@cyberduck
Copy link
Collaborator

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

@dkocher commented

Please try

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

@cyberduck
Copy link
Collaborator Author

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,

@cyberduck
Copy link
Collaborator Author

@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

@cyberduck
Copy link
Collaborator Author

fb4f814 commented

Thank you,it works!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:6 pardub]:

Thank you,it works!
Thanks for confirming.

@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.
Labels
cli Command Line Interface feature worksforme
Projects
None yet
Development

No branches or pull requests

1 participant