Commit Graph
41 Commits
Author SHA1 Message Date
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
Sean Templeton c05f304fd7 Update S3, Sharepoint, Tahoe, and WEBDAV backends for async Put 2019-03-05 21:25:35 -06:00
verhoek 68d1ba4b39 Replaced type by var. 2019-01-11 13:19:21 +01:00
verhoek d5119d2422 Simplifying object initialization. 2019-01-06 18:41:57 +01:00
verhoek b2cc18426c Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek 71c6aca8a7 Fixed IO calls in Filebackend.
Moved FileEntry to Library.IO due to AlphaFS not implementing
System.IO.FileInfo/DirectoryInfo.
2018-11-01 17:56:48 +01:00
Kenneth Hsu 0c1ac9c489 Replace chained LINQ calls with call to overload with predicate.
This simplifies the code by reducing the number of enumerators created
while also making the code slightly more readable.
2018-10-06 16:20:18 -07:00
Kenneth Skovhede 98303a6249 Removed console output from the S3 module 2018-06-20 10:54:37 +02:00
Kenneth Skovhede bd863016fa Added support for returning multiple DNS names for cache invalidation.
Updated most backends to return the actual DNS names for cache invalidation.
2018-02-26 11:37:10 +01:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 8bbeb54e48 Fixed a missing case-insensitive compare 2017-08-29 10:35:07 +02:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede 2542824361 Merge branch 'master' into nuget_setup
# Conflicts:
#	thirdparty/SharpAESCrypt/SharpAESCrypt.exe
2016-03-13 22:20:57 +01:00
Kenneth Skovhede 2d6744df5f Added support for additional configuration parameters for S3.
This closes #1581
2016-02-15 13:36:10 +01:00
Kenneth Skovhede 59cc0005a3 Removed unused references and updated most libraries to come from NuGet sources instead of being provided in the thirdparty library 2016-01-29 10:47:39 +01:00
Kenneth Skovhede 5fa7ebaef3 Added S3 storage class options to allow the user to specify the InfrequentAccess (IA) storage model. 2015-11-18 20:38:27 +01:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede d4b08fad7b Updated AWS SDK for the S3 backend 2015-01-18 22:01:47 +01:00
Kenneth Skovhede 4702323d6c Added rename support to S3 and SSH. 2014-08-21 20:59:21 +02:00
Kenneth Skovhede eb2454f4e0 Changes to prevent premature timeouts when running with Mono 2014-07-20 10:07:56 +02:00
kenneth@hexad.dk 4b28d6e8f2 Fixed a case where AWS returns a timestamp that is not .Net compatible.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1450 59da171f-624f-0410-aa54-27559c288bec
2012-09-08 10:39:48 +00:00
kenneth@hexad.dk 815c740390 Updated S3 library to use larger transmissions buffers.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1150 59da171f-624f-0410-aa54-27559c288bec
2012-02-27 14:36:32 +00:00
kenneth.skovhede@gmail.com af681f57f0 Fixed a timeout issue with S3
git-svn-id: https://duplicati.googlecode.com/svn/trunk@846 59da171f-624f-0410-aa54-27559c288bec
2011-07-30 09:36:44 +00:00
kenneth.skovhede@gmail.com 65824d2ca8 Specified timeout values for S3 requests
git-svn-id: https://duplicati.googlecode.com/svn/trunk@844 59da171f-624f-0410-aa54-27559c288bec
2011-07-27 06:59:36 +00:00
kenneth.skovhede@gmail.com 32706f7de0 Update issue #341
Status: Fixed

Duplicati is now using the AWSSDK library, which apparently handles buckets with periods just fine. The validation is now performed by the AWSSDK library so it is most likely correctly validating bucket names.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@812 59da171f-624f-0410-aa54-27559c288bec
2011-06-23 21:49:03 +00:00
kenneth.skovhede@gmail.com db8cdd0dd2 Update issue #160
Status: Fixed

Changed to the AWSSDK library, which fixes a few quirks, but basically seems to be the Affirma version slightly renamed.



git-svn-id: https://duplicati.googlecode.com/svn/trunk@811 59da171f-624f-0410-aa54-27559c288bec
2011-06-23 21:37:14 +00:00
kenneth.skovhede@gmail.com b0a359fd27 Updated license text
git-svn-id: https://duplicati.googlecode.com/svn/trunk@770 59da171f-624f-0410-aa54-27559c288bec
2011-05-09 19:52:28 +00:00
kenneth.skovhede@gmail.com e7dc268fad Renamed the Duplicati.Library.Core dll to Duplicati.Library.Utility as the "Core" name was misleading.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@591 59da171f-624f-0410-aa54-27559c288bec
2010-11-21 11:08:15 +00:00
kenneth.skovhede@gmail.com 31eadfddd2 Fixed another bug with the S3 backend and multi request lists.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@522 59da171f-624f-0410-aa54-27559c288bec
2010-09-23 16:47:53 +00:00
kenneth.skovhede@gmail.com 62242bb04b Fixed a critical bug with the S3 backend that would cause deletion of backup volumes.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@511 59da171f-624f-0410-aa54-27559c288bec
2010-09-12 21:46:24 +00:00
kenneth.skovhede@gmail.com 7edf074cbd An S3 issue fix.
Fixed issue #215.
If the user chooses EU buckets, bucketnames that are not valid hostname labels will be rejected.
If the user does not choose EU buckets, a warning is displayed for bucketnames that are not valid hostname labels, and the setup is switched to the path-style calling method.

Fixed issue #214.
There were multiple issues with entering a bucket/folder type path, those should now be resolved.

Fixed issue #212.
The UI and commandline now supports Reduced Redundancy Storage.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@430 59da171f-624f-0410-aa54-27559c288bec
2010-06-19 23:29:47 +00:00
kenneth.skovhede@gmail.com a40f6acf37 A fairly large refactoring of the code.
This was based on the idea that the interfaces should remain static.
I hope this change is enough to ensure stable interfaces until release 1.2.

Overview of changes:
Moved all interfaces into the same dll.
Encryption and compression is now plugable modules, just as the backends.
Encryption/compression can now register an UI.
Encryption now uses AESCrypt as a default.
GPG does not default to using the --armor option.
Added support for generic modules, but none are written yet.
Added support for plugable settings pages in the "Options" dialog.

Fixed issue #148.
Duplicati now uses AESCrypt as the default encryption format.

Fixed issue #199.
GPG now supports custom commandline options.

Fixed issue #207.
Encryption modules are now plugable.

Fixed issue #118.
S3 credentials are now stored.

Fixed issue #151.
Backends can now register system wide options.


git-svn-id: https://duplicati.googlecode.com/svn/trunk@427 59da171f-624f-0410-aa54-27559c288bec
2010-06-19 21:08:21 +00:00
kenneth.skovhede@gmail.com 474e15e975 Fixed issue #127.
I am unable to reproduce the error with the "test connection" that you describe.
Was it with a particular bucket/folder name?
I have also added some logic to ensure that it does not repeatedly ask to prefix the username.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@406 59da171f-624f-0410-aa54-27559c288bec
2010-05-13 18:21:42 +00:00
kenneth.skovhede@gmail.com 05bfadbc41 Updated License notice to 2010
git-svn-id: https://duplicati.googlecode.com/svn/trunk@311 59da171f-624f-0410-aa54-27559c288bec
2010-01-03 22:57:13 +00:00
kenneth.skovhede@gmail.com 18cf1549e6 Fixes for the S3 backend under Linux.
Also cleaned up the backend, and removed the Wrapper which was unused.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@266 59da171f-624f-0410-aa54-27559c288bec
2009-08-27 17:53:19 +00:00
kenneth.skovhede@gmail.com 79c99336ab A heavy chunk of work on the translation support.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@196 59da171f-624f-0410-aa54-27559c288bec
2009-06-14 21:51:06 +00:00
kenneth.skovhede@gmail.com 5e8fe893d5 Fixed #8, modified files count as added.
Fixed #12, signature cache, which is now enabled pr. default.
Added a cache for the S3 redirect tests, which should limit the number of calls.
Added some GC.Collect calls for the S3 backend, as it appears to be leaking HttpWebRequest objects for some reason.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@111 59da171f-624f-0410-aa54-27559c288bec
2009-03-09 21:09:27 +00:00
kenneth.skovhede@gmail.com 8babf1d616 Updated license notices.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@85 59da171f-624f-0410-aa54-27559c288bec
2009-02-10 23:36:15 +00:00
kenneth.skovhede@gmail.com c9ce3a3216 Added options to throttle up and download.
GPG encryption now works correctly.
Asyncronous uploads now work as expected.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@73 59da171f-624f-0410-aa54-27559c288bec
2009-01-25 19:33:36 +00:00
kenneth.skovhede@gmail.com 576d2ea74b Amazon S3 support is now done for the commandline, still needs a little fixup in the GUI.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@71 59da171f-624f-0410-aa54-27559c288bec
2009-01-20 22:54:53 +00:00