What is the problem you are having with rclone?
Unecessary use of Amazon S3 HEAD requests when using rclone copy.
I'm pretty sure i've tried every flag combination i could think of to prevent it as per the command example below
There is always 1 HEAD after the PUT to S3. When you have 400m files, this is expensive.
There is also 1 HEAD top level prefix in each job - not fussed about that one it wont cause me spend really. It fails anyway (trying to head a prefix gives 404 head of the bucket itself gives 409 - why have it at all)
What is your rclone version (output from rclone version
)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
rclone v1.53.4
- os/arch: windows/amd64
- go version: go1.15.6
Which cloud storage system are you using? (eg Google Drive)
Local windows NTFS (Source)
Amazon S3 Standard (Destination)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
my first sync
./rclone copy --dump headers --log-level DEBUG --log-file firstsync.txt --cache-db-purge --transfers 1 --no-check-dest --ignore-checksum --fast-list --auto-confirm --no-traverse --local-no-check-updated --s3-disable-checksum --s3-no-check-bucket C:\testdata s3:REDACTED
my incremental forever sync
rclone copy --max-age 24h --dump headers --log-level DEBUG --log-file incrementalsync.txt --transfers 1 --no-check-dest --ignore-checksum --fast-list --auto-confirm --no-traverse --local-no-check-updated --s3-disable-checksum --s3-no-check-bucket C:\testdata s3:REDACTED
The rclone config contents with secrets removed.
[s3]
type = s3
provider = AWS
env_auth = true
region = ap-southeast-2
location_constraint = ap-southeast-2
server_side_encryption = AES256
storage_class = STANDARD
shared_credentials_file = %USERPROFILE%\.aws\credentials
A log from the command with the -vv
flag
2021/01/28 14:50:55 DEBUG : rclone: Version "v1.53.4" starting with parameters ["REDACTED\\rclone.exe" "copy" "--dump" "headers" "--log-level" "DEBUG" "--log-file" "firstsync.txt" "--cache-db-purge" "--transfers" "1" "--no-check-dest" "--ignore-checksum" "--fast-list" "--auto-confirm" "--no-traverse" "--local-no-check-updated" "--s3-disable-checksum" "--s3-no-check-bucket" "C:\\REDACTED" "s3:REDACTED"]
2021/01/28 14:50:55 DEBUG : Creating backend with remote "C:\\testdata"
2021/01/28 14:50:55 DEBUG : Using config file from "REDACTED\\rclone.conf"
2021/01/28 14:50:55 DEBUG : fs cache: renaming cache item "C:\\testdata" to be canonical "//?/C:/testdata"
2021/01/28 14:50:55 DEBUG : Creating backend with remote "s3:REDACTED"
2021/01/28 14:50:55 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2021/01/28 14:50:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:55 DEBUG : HTTP REQUEST (req 0xc00043f800)
2021/01/28 14:50:55 DEBUG : HEAD /testdata HTTP/1.1
Host: REDACTED
User-Agent: rclone/v1.53.4
Authorization: XXXX
X-Amz-Content-Sha256: REDACTED
X-Amz-Date: 20210128T065055Z
2021/01/28 14:50:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:55 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:55 DEBUG : HTTP RESPONSE (req 0xc00043f800)
2021/01/28 14:50:55 DEBUG : HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Thu, 28 Jan 2021 06:50:55 GMT
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Request-Id: REDACTED
2021/01/28 14:50:55 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:55 DEBUG : fs cache: renaming cache item "s3:REDACTED" to be canonical "s3:REDACTED"
2021/01/28 14:50:55 DEBUG : S3 bucket Host: REDACTED-datasync path testdata: Waiting for checks to finish
2021/01/28 14:50:55 DEBUG : S3 bucket Host: REDACTED-datasync path testdata: Waiting for transfers to finish
2021/01/28 14:50:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:55 DEBUG : HTTP REQUEST (req 0xc00043fd00)
2021/01/28 14:50:55 DEBUG : PUT /testdata/testfile1?REDACTED
Host: REDACTED
User-Agent: rclone/v1.53.4
Content-Length: 104857
content-md5: REDACTED
content-type: application/octet-stream
x-amz-acl: private
x-amz-meta-mtime: 1611816654.4557248
x-amz-server-side-encryption: AES256
x-amz-storage-class: STANDARD
Accept-Encoding: gzip
2021/01/28 14:50:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc00043fd00)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 0
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : HTTP REQUEST (req 0xc000136c00)
2021/01/28 14:50:56 DEBUG : HEAD /testdata/testfile1 HTTP/1.1
Host: REDACTED
User-Agent: rclone/v1.53.4
Authorization: XXXX
X-Amz-Content-Sha256: REDACTED
X-Amz-Date: 20210128T065056Z
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc000136c00)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 104857
Accept-Ranges: bytes
Content-Type: application/octet-stream
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Last-Modified: Thu, 28 Jan 2021 06:50:57 GMT
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Meta-Mtime: 1611816654.4557248
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
X-Amz-Version-Id: null
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 INFO : testfile1: Copied (new)
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : HTTP REQUEST (req 0xc00066b400)
2021/01/28 14:50:56 DEBUG : PUT /testdata/sub1/testfile2?REDACTED
Host: REDACTED
User-Agent: rclone/v1.53.4
Content-Length: 104857
content-md5: REDACTED
content-type: application/octet-stream
x-amz-acl: private
x-amz-meta-mtime: 1611816654.4867294
x-amz-server-side-encryption: AES256
x-amz-storage-class: STANDARD
Accept-Encoding: gzip
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc00066b400)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 0
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : HTTP REQUEST (req 0xc00066ba00)
2021/01/28 14:50:56 DEBUG : HEAD /testdata/sub1/testfile2 HTTP/1.1
Host: REDACTED
User-Agent: rclone/v1.53.4
Authorization: XXXX
X-Amz-Content-Sha256: REDACTED
X-Amz-Date: 20210128T065056Z
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc00066ba00)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 104857
Accept-Ranges: bytes
Content-Type: application/octet-stream
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Last-Modified: Thu, 28 Jan 2021 06:50:57 GMT
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Meta-Mtime: 1611816654.4867294
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
X-Amz-Version-Id: null
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 INFO : sub1/testfile2: Copied (new)
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : HTTP REQUEST (req 0xc000137400)
2021/01/28 14:50:56 DEBUG : PUT /testdata/sub1/sub11/testfile3?REDACTED
Host: REDACTED
User-Agent: rclone/v1.53.4
Content-Length: 104857
content-md5: REDACTED
content-type: REDACTED
x-amz-acl: private
x-amz-meta-mtime: 1611816654.5167276
x-amz-server-side-encryption: AES256
x-amz-storage-class: STANDARD
Accept-Encoding: gzip
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc000137400)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 0
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : HTTP REQUEST (req 0xc00022be00)
2021/01/28 14:50:56 DEBUG : HEAD /testdata/sub1/sub11/testfile3 HTTP/1.1
Host: REDACTED
User-Agent: rclone/v1.53.4
Authorization: XXXX
X-Amz-Content-Sha256: REDACTED
X-Amz-Date: 20210128T065056Z
2021/01/28 14:50:56 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 DEBUG : HTTP RESPONSE (req 0xc00022be00)
2021/01/28 14:50:56 DEBUG : HTTP/1.1 200 OK
Content-Length: 104857
Accept-Ranges: bytes
Content-Type: application/octet-stream
Date: Thu, 28 Jan 2021 06:50:57 GMT
Etag: REDACTED
Last-Modified: Thu, 28 Jan 2021 06:50:57 GMT
Server: AmazonS3
X-Amz-Id-2: REDACTED
X-Amz-Meta-Mtime: 1611816654.5167276
X-Amz-Request-Id: REDACTED
X-Amz-Server-Side-Encryption: AES256
X-Amz-Version-Id: null
2021/01/28 14:50:56 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2021/01/28 14:50:56 INFO : sub1/sub11/testfile3: Copied (new)
2021/01/28 14:50:56 INFO :
Transferred: 307.198k / 307.198 kBytes, 100%, 409.954 kBytes/s, ETA 0s
Transferred: 3 / 3, 100%
Elapsed time: 1.8s
2021/01/28 14:50:56 DEBUG : 4 go routines active