Commit Graph
3969 Commits
Author SHA1 Message Date
Kenneth Skovhede 8f9977889c Fixed a few string compares
Fixed excluding webroot folder from checks
2017-10-22 13:14:36 +02:00
Kenneth Hsu c9aa6cf5fb Avoid performing tilde expansion.
The expansion being performed was often incorrect, as it's possible for
the tilde character to appear as part of the path where it should not be
expanded to the user's home directory.

Properly supporting tilde expansion is complicated and requires
additional study.  Instead of supporting it only partially, we have
decided to simplify things and just drop tilde expansion for now.  See
the discussion in issue #2619, as well as issues #2325 and #2555.
2017-10-21 10:08:33 -07:00
Kenneth Hsu 9c1e55f241 Expose field that represents users's home directory.
We will be removing support for tilde expansion, and this field can be
used instead of ~ internally in the code.
2017-10-21 09:40:18 -07:00
Kenneth Hsu 3d51e9153b Avoid signing assemblies.
Using strong-named assemblies can cause difficulties with the GNU LGPL
license, which allows for one to recombine or relink their application
with modified versions of the code.  While one solution is to share the
private key so that people can sign the assemblies themselves, this
would break the trust that is expected from signed assemblies.  For now,
the easiest fix is to simply not sign the assemblies.  Note that by
doing so, we prevent the code from being referenced from other signed
assemblies.

This also fixes an issue introduced in revision ba94d36a80 ("Added
auto-update for WindowsService and Service."), where the WindowsService
project (signed) referenced the AutoUpdater project (not signed).

We also removed instances of <SignAssembly>false</SignAssembly> to be
consistent with newly created .csproj files that do not contain the
SignAssembly element.

This was motivated by the discussion in issue #2814.
2017-10-15 22:00:23 -07:00
Kenneth SkovhedeandGitHub 202a6641e5 Merge pull request #2818 from warwickmm/fix_out_of_range_arguments
Fix arguments to ArgumentOutOfRangeException constructor
2017-10-15 16:32:17 +02:00
Kenneth SkovhedeandGitHub baa869594f Merge pull request #2817 from tygill/fix/ftp-list-exception
Make sure HandleListExceptions(Func) calls HandleListExceptions(Action).
2017-10-15 16:31:35 +02:00
Kenneth Hsu 8fdbbaa255 Avoid premature declaration of backup completion.
This addresses issue #2803.
2017-10-14 12:00:52 -07:00
Kenneth Hsu 12ca6d320d Add exception message. 2017-10-14 11:54:39 -07:00
Kenneth Hsu f95b5861f5 Fix parameter name in ArgumentOutOfRangeException. 2017-10-14 11:43:31 -07:00
Kenneth Hsu 07bfc4a5da Use nameof operator instead of string literal. 2017-10-14 11:43:31 -07:00
Tyler Gill dcc9faea31 Make sure HandleListExceptions(Func) calls HandleListExceptions(Action). 2017-10-14 09:17:19 -06:00
Kenneth Hsu 1846c67aae Rename variable to be consistent with exception message. 2017-10-13 19:28:06 -07:00
Kenneth Skovhede 58065c9972 Updated FasterHashing. This enables automatic loading of OpenSSL on Linux and Windows using the most common names for OpenSSL libraries without needing a <dllmap> hack. 2017-10-13 11:53:14 +02:00
Kenneth Skovhede beb88aecad Merge branch 'feature/add-macos-powersupply-detection' 2017-10-12 12:50:59 +02:00
Kenneth Skovhede 7537bb72fc Added options to run the update manager in a "check" mode that shows if it thinks the updated versions are modified or not 2017-10-12 11:40:40 +02:00
Kenneth Skovhede 124a5c4cf5 Added temporary option to allow switching between the auto update invoke methods, in case we need to test something on installed machines 2017-10-12 11:17:45 +02:00
Kenneth Skovhede 7ccd05348e Added support for reading the power supply state on MacOS 2017-10-11 21:48:31 +02:00
Kenneth Skovhede 6ad0fa649e Re-wrote the auto-updater to use process spawning instead of AppDomain loading to execute updates. 2017-10-11 12:49:14 +02:00
Kenneth Skovhede f03965eb65 Fixed compile error after refactor 2017-10-11 08:58:58 +02:00
Kenneth Skovhede 451c71ccb1 Changed remote-file delete logic to only delete files that look like Duplicati files and have the correct prefix.
This fixes #2678
2017-10-10 16:44:06 +02:00
Kenneth Skovhede 78c5bdac0c Updated FasterHashing 2017-10-10 13:47:31 +02:00
Kenneth SkovhedeandGitHub b907aa607a Merge pull request #2802 from warwickmm/fix_line_endings
Fix line-ending characters
2017-10-10 13:43:37 +02:00
Kenneth SkovhedeandGitHub 45f816571e Merge pull request #2801 from warwickmm/dispose_enumerators
Dispose enumerators after manually iterating over elements
2017-10-10 13:43:09 +02:00
Kenneth Hsu 8bac875311 Fix line-ending characters. 2017-10-07 13:59:46 -07:00
Kenneth Hsu 604b6e4337 Dispose enumerators after manually iterating over elements.
Since the IEnumerator<T> interface implements IDisposable, we should
make sure to dispose of the enumerator when manually iterating over the
elements.
2017-10-07 12:27:11 -07:00
Tyler Gill b0887af743 Fix a few default filters. 2017-10-05 22:47:55 -06:00
Kenneth SkovhedeandGitHub 38a8d11266 Merge pull request #2781 from TekkiWuff/retention-policy
Retention Policy
2017-10-04 15:12:19 +02:00
Kenneth SkovhedeandGitHub 433fced587 Merge pull request #2790 from tygill/fix/file-quota
Fix FileBackend's quota detection for non-drive letter roots by fallng back to GetDriveFreeSpaceEx
2017-10-04 15:06:15 +02:00
Kenneth SkovhedeandGitHub 5a911bfb13 Merge pull request #2785 from warwickmm/feature/detect_power_supply
Add preliminary support for detecting power supply source
2017-10-04 15:04:59 +02:00
Kenneth SkovhedeandGitHub b4ef0e0f77 Merge pull request #2780 from warwickmm/feature/get_unique_items
Add method to get unique items and duplicates from collection
2017-10-04 14:56:41 +02:00
Kenneth Hsu 8573ab2cd3 Add ability to detect power supply source on Windows. 2017-10-03 18:53:28 -07:00
Kenneth SkovhedeandGitHub 1df44989d2 Update LocalListChangesDatabase.cs
Fixed issue with filters and ListCchanges / Compare
2017-10-03 11:08:43 +02:00
Tyler Gill 4a22a8b075 Fix FileBackend's quota detection for non-drive letter roots by falling back to GetDriveFreeSpaceEx. 2017-10-02 23:22:12 -06:00
Kenneth Hsu 5708d5aa3d Add method to get current power source. 2017-10-01 19:50:55 -07:00
Kenneth Hsu 9ab76dddc7 Add Linux power supply state. 2017-10-01 19:50:55 -07:00
Kenneth Hsu 4403e8cd5c Add default power supply state.
By default, we will always claim to be on AC so that no backups are
missed.
2017-10-01 19:50:55 -07:00
Kenneth Hsu be34b62668 Add interface for power supply status. 2017-10-01 19:31:07 -07:00
Kenneth Hsu b49023376a Add enumeration for power supply types. 2017-10-01 19:18:21 -07:00
Daniel Radünz ed5daa60b5 Simplified code by removing one loop 2017-09-30 22:05:54 +02:00
Daniel Radünz 4e3d5d3e81 Fixed typo in option name 2017-09-30 22:05:54 +02:00
Daniel Radünz 28ad1e1bbd Better example in option description 2017-09-30 22:05:30 +02:00
Daniel Radünz 0a4a6edca1 Renamed all occurrences of "staggered version" to "retention policy" 2017-09-30 22:05:30 +02:00
Daniel Radünz 7b176e4dc2 Check validity of keep-staggered-versions option value 2017-09-30 22:05:30 +02:00
Daniel Radünz be19329d7f Compact if new the option is used 2017-09-30 22:05:29 +02:00
Daniel Radünz 04b7bf38c3 Reworded option description and added example 2017-09-30 22:05:29 +02:00
Daniel Radünz 40db42b29b Moved code related to deciding which backups to delete from Options into the DeleteHandler
Added logging
2017-09-30 22:05:29 +02:00
Daniel Radünz 3ec1fabc57 initial commit of staggered versioning feature 2017-09-30 12:07:02 +02:00
Kenneth Hsu 65593ddd93 Remove unncessary sorting.
The original implementation only sorted the collection if there were
duplicates.  This indicates that the result does not really need to be
sorted.
2017-09-29 21:41:41 -07:00
Kenneth Hsu c8ac480c09 Use helper method to get unique items and duplicates. 2017-09-28 22:02:05 -07:00
Kenneth Hsu 6abe087c18 Use helper method to get unique items and duplicates. 2017-09-28 21:55:15 -07:00