type = b2
account = #########
key = ##########
What is the problem you are having with rclone?
I get this error when executing the command:
2020/05/26 09:45:28 Failed to create file system for ":remote1/BB2-DeploymentsTest/CBB_S9SERVER02": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10 64bit
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Paste command here
```C:\rclone>rclone move :remote1/BB2-DeploymentsTest/CBB_S9SERVER02 :remote1/BB2-DeploymentsTest/MBS-c78ef851-0588-453b-ac8c-7191d9a55544/CBB_S9SERVER02
#### The rclone config contents with secrets removed.
<!-- You should use 3 backticks to begin and end your paste to make it readable. -->
Paste config here
type = b2
account = #########
key = ##########
#### A log from the command with the `-vv` flag
<!-- You should use 3 backticks to begin and end your paste to make it readable. Or use a service such as https://pastebin.com or https://gist.github.com/ -->
Paste log here
2020/05/26 09:55:20 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "move" ":remote1/BB2-DeploymentsTest/CBB_S9SERVER02" ":remote1/BB2-DeploymentsTest/MBS-c78ef851-0588-453b-ac8c-7191d9a55544/CBB_S9SERVER02" "-vv"]
2020/05/26 09:55:20 Failed to create file system for ":remote1/BB2-DeploymentsTest/CBB_S9SERVER02": config name contains invalid characters - may only contain 0-9, A-Z ,a-z ,_ , - and space
Got it... I ran it with the dry run switch and got good looking info. I then ran it and it looks like it copied things very well. This was just test data to start out with. I have a 30TB bucket that I need to move this way that I am working my way up to copying once I am confident of my use of the commands. I think I will try on a larger test sample of data next.
So far most things are working well with rclone, but I have run into one (expected) issue. When it gets to files that are over 5GB I get an error:
Failed to move: Copy source too big: 5899789057 (400 bad_request)
Is there a provision in rclone that will allow the moving of files over 5GB within a bucket in a server-side copy? I believe it is possible looking at the B2 b2_copy_part command, I am wondering if this can all be done within rclone or is it required to use B2's tools to accomplish this?
Ok, so I have found the Chunker command and setup a test of one directory with a <5GB file in it and it seems to be transferring just fine. My one concern I am not sure how to check is to confirm that this is a server-side copy and not an download and re-upload.
Well, I spoke to soon. The command ran for hours and seemed to download and upload way over 5GB of data from my PC. I had Glasswire running and while running the sync on the chunker overlay it consumed 32GB of data. Here is the result of the command I had to eventually CTRL+C out of:
Below 5GB works fine now. Above 5GB is where the problem is!
I've had a go at fixing this here. This adds a new flag --b2-copy-cutoff - above this limit files will be server side copies in --b2-copy-cutoff sized chunks. I set this quite conservatively to 4G but it might be quicker to set it lower. In my testing with copying 1GB ish files setting it to 100M made it quicker... So some experimentation with this value would be useful!
I've also reworked the multipart transfer code - I think it is all working, but please report bugs!
Hi guys, sorry to barge in, but would this also cause me to see the following error when trying to make a copy of a large file on B2? I.e. make a copy within the same bucket but in a different "folder"?
2020/06/03 10:14:13 ERROR : file.bin: Failed to copy: Copy source too big: 30074455444 (400 bad_request)
I really apologize for the delay. Other demands got in the way and I just got a chance to test out the beta version you sent over.
It appears as if the function to copy large files is now being used, when it gets to those files it does not give errors and shows them transferring:
When I check the destination of that file entry on the B2 GUI, it shows that it as "Started Large File":
But I think it is getting held up somewhere and not able to complete the process, it finishes all the smaller files and then seems to get stuck on the larger files. The Move task keeps running and does not seem to show any progress happening in the GUI:
But when I check the B2 GUI, the bucket size keeps getting larger and larger the longer I let it go:
Oddly enough, the bucket size seems to keep growing disproportionately to the folders themselves. The destination folder seems to be getting larger than the source but the size of the 2 does not seem to add up to the bucket size it is reporting.
I hope these notes help you out. If you need me to try anything else please feel free to hit me up.
(I hope this image is readable, I got to the end of this and tried to post it and I got en error that said I could only post one image. So, I made the whole thing an image and added it here. I spent a bunch of time to make good notes and did not want to waste it!)
So rclone looks like it is running and according to the b2 website stuff is being transferred, but the stats aren't updating...
Did rclone complete Ok in the end?
I've just checked the code for server side copy - it doesn't report usage as it goes along since normally it is very quick. That would need some different infrastructure rclone hasn't got to make that work.
I actually just CTRL+C'd out of it as it was running for 4 hours. It did not seem to show any progress in the CLI in the last 2-3 hours so I assumed it was not going to finish. This test set of data was 41gb so I assume that would be plenty of time to complete.
The first time I tried it, I tried with just one 6GB file in the bucket and it went right thru in about 4.5 min. I then tried it against the last job I had cancelled out and it finished it off, it had moved all the files that were under 5GB and this job moved all the rest over. I then reset the whole bucket to how it originally was and ran it once more with the --transfers 1 switch and it completed the whole 33GB in about 55 min.
I tested out my backup software and everything works in the migration for this test data set. Thank you so much for taking the time to help me work thru it. The more I use rclone the more I really like it. It is really an elegant solution to a complex problem, thank you for all your work.
My full data sets that I need to transfer range from 3TB to 34TB, I am getting ready to begin that migration but I wanted to see if you would recommend using the same --transfers 1 switch on a larger data set like 34TB?
It seems that even if the job gets stopped we can easily just run it again and finish off moving the files that have not yet been moved. Is there anything I should keep an eye out for if running this for an extended period of time on such a large data set?
Thanks again for everything. I really appreciate your time!