Fabian Möller
98e2746e31
backend: add fstests.ChunkedUploadConfig
...
- azureblob
- b2
- drive
- dropbox
- onedrive
- s3
- swift
2018-10-11 14:47:58 +01:00
Nick Craig-Wood
a9273c5da5
docs: move documentation for options from docs/content into backends
...
In the following commit, the documentation will be autogenerated.
2018-10-06 11:47:46 +01:00
Paul Kohout
7826e39fcf
s3: use configured server-side-encryption and storace class options when calling CopyObject() - fixes #2610
2018-10-04 08:25:20 +01:00
Craig Miskell
2543278c3f
S3: Use (custom) pacer, to retry operations when reasonable - fixes #2503
2018-09-11 07:57:03 +01:00
bsteiss
aaa3d7e63b
s3: add support for KMS Key ID - fixes #2217
...
This code supports aws:kms and the kms key id for the s3 backend.
2018-08-30 17:08:27 +01:00
Nick Craig-Wood
7194c358ad
azureblob,b2,qingstor,s3,swift: remove leading / from paths - fixes #2484
2018-08-26 23:19:28 +01:00
Nick Craig-Wood
f06ba393b8
s3: Add --s3-force-path-style - fixes #2401
2018-07-20 15:41:40 +01:00
Nick Craig-Wood
f3f48d7d49
Implement new backend config system
...
This unifies the 3 methods of reading config
* command line
* environment variable
* config file
And allows them all to be configured in all places. This is done by
making the []fs.Option in the backend registration be the master
source of what the backend options are.
The backend changes are:
* Use the new configmap.Mapper parameter
* Use configstruct to parse it into an Options struct
* Add all config to []fs.Option including defaults and help
* Remove all uses of pflag
* Remove all uses of config.FileGet
2018-07-16 21:20:47 +01:00
Nick Craig-Wood
4fe6614ae1
s3: fix index out of range error with --fast-list fixes #2388
2018-07-09 17:00:52 +01:00
themylogin
7d2861ead6
Adjust S3 upload concurrency with --s3-upload-concurrency
2018-06-14 16:15:17 +01:00
Nick Craig-Wood
017297af70
s3: Fix --s3-chunk-size which was always using the minimum - fixes #2345
2018-06-10 12:22:30 +01:00
Nick Craig-Wood
311a962011
s3: Look in S3 named profile files for credentials - fixes #2243
2018-04-21 09:00:20 +01:00
Chris Redekop
a35e62e15c
s3: Add an option to disable checksum uploading - fixes #2213
2018-04-20 20:51:12 +01:00
Nick Craig-Wood
dc247d21ff
s3: add in config for all the supported S3 providers #2140
...
These are AWS, Ceph, Dreamhost, IBM COS S3, Minio, Wasabi and Other.
This configures endpoints where known and makes sure config doesn't
appear where it isn't valid where possible.
2018-04-13 16:33:26 +01:00
Giri Badanahatti
acd5d4377e
config,s3: hierarchical configuration support #2140
...
This introduces a method of making provider specific configuration
within a remote. This is useful particularly in s3.
This commit does the basic configuration in S3 for IBM COS.
2018-04-13 16:05:35 +01:00
Craig Rachel
0e6faa2313
s3: add One Zone Infrequent Access storage class - fixes #2240
2018-04-13 13:36:25 +01:00
Peter Baumgartner
1db68571fd
s3,swift: Add --use-server-modtime
...
`--use-server-modtime` stops s3 and swift retrieving the modtime from metadata which enables a fast sync mode with the `--update` flag.
2018-04-13 13:32:17 +01:00
Nick Craig-Wood
0fa700b3cf
Make integration tests use go1.7+ nested tests #2154
...
* Removed generated code and code generator
* Updated docs on how to write integration tests
* Tidied up the actual integration tests
2018-04-08 15:04:14 +01:00
Nick Craig-Wood
92c5aa3786
s3: add --s3-chunk-size option - fixes #2203
2018-04-05 15:40:08 +01:00
Stefan
a8267d1628
link: allow creating public link to files and folders - closes #1562
2018-03-29 09:10:19 +02:00
Nick Craig-Wood
e9a2cbec37
s3: ignore zero length directory markers at the root too
2018-03-21 20:09:37 +00:00
Nick Craig-Wood
a46f2a9eb7
s3: ignore zero length directory markers - fixes #1621
2018-03-19 17:41:46 +00:00
Giri Badanahatti
aba43cd3a4
Documention for IBM COS (S3) configuration.
2018-03-15 20:20:43 +00:00
Nick Craig-Wood
89748feaa5
s3: update docs to discourage use of v2 auth - fixes #2120
...
From testing it appears that CEPH no longer works properly with v2
auth and neither does Dreamhost, so update the docs anc configuration
to recommend v4 auth.
2018-03-13 20:47:29 +00:00
Remus Bunduc
70f07fd3ac
fs: add ChangeNotify and backend support for it ( #2094 )
...
* fs: rename DirChangeNotify to ChangeNotify
* cache: switch to ChangeNotify
* ChangeNotify: keep order of notifications
2018-03-08 22:03:34 +02:00
Nick Craig-Wood
f3e982d3bf
azureblob,b2,gcs,qingstor,s3,swift: Don't check for bucket/container presense if listing was OK
...
In a typical rclone copy to a bucket/container based remote, before
this change we were doing a list, followed by a HEAD of the bucket to
check it existed before doing the copy. The fact the list succeeded
means the bucket exists so mark it OK at that point.
Issue #1421
2018-03-01 12:11:34 +00:00
Fabian Möller
aeefa34f62
fstests: add TestInternal ( #2085 )
...
TestInternal allows to perform a custom test on the backend using the
optional InternalTester interface.
2018-02-25 10:58:06 +01:00
Nick Craig-Wood
38f829842a
s3: fix server side copy and set modtime on files with + in - fixes #2001
...
This was broken in 64ea94c1a4
when
putting a work-around for Digital Ocean. PathEscape has now been
adjusted so it works with both providers.
2018-01-23 10:50:50 +00:00
Nick Craig-Wood
8653944a6d
Make RangeOption manadatory for Open - #1825
...
Add an integration test to make sure all backends implement
RangeOption correctly.
2018-01-21 17:09:12 +00:00
Nick Craig-Wood
97c414f025
config/hash: rename more symbols after factoring into own package
2018-01-18 20:27:52 +00:00
Nick Craig-Wood
11da2a6c9b
Break the fs package up into smaller parts.
...
The purpose of this is to make it easier to maintain and eventually to
allow the rclone backends to be re-used in other projects without
having to use the rclone configuration system.
The new code layout is documented in CONTRIBUTING.
2018-01-15 17:51:14 +00:00
Nick Craig-Wood
60afda007b
Move dircache, oauthutil, rest and pacer modules into lib
2018-01-12 17:07:38 +00:00
Nick Craig-Wood
b8b620f5c2
Move all backends into backend directory
2018-01-12 17:07:38 +00:00