Kenneth Skovhede and GitHub
4abc2f832f
Merge pull request #3014 from tygill/fix/reparse-points-arent-symlinks
...
Fix 2829: Reparse points aren't always symlinks
2018-02-07 22:56:41 +01:00
Tyler Gill
0a1e98712a
Adds warnings and errors if the reported available quota either reaches a configurable percentage of the backup size, or when it is completely exhausted.
...
This is configurable via the --quota-warning-threshold command line parameter.
2018-02-07 11:23:52 -07:00
Tyler Gill
08e0708a95
Change Duplicati's handling of reparse points, so that not all reparse points are treated as symlinks.
...
This is inspired largely by the new (/ returning) feature of OneDrive in Windows 10 Fall Creator's Update, which downloads files on-demand.
A side effect of that change is that the OneDrive folder (and subfolders of it) are marked as reparse points, even though they are not technically standard symlinks.
With this change, a new extension method IsSymlink is added for ISnapshotService and ISystemIO, which checks both the file attributes (for reparse point) and the symlink target path (if null, the path is not treated as a symlink).
All places that previously checked only the file attributes have been updated to use either this method (or at least the same logic, in the case of the core BackupHandler file check).
One side effect of this change is that '--symlink-policy=store' no longer ignores empty symlinks - they are now treated as regular files.
If there are empty symlinks, they will now be backed up as if they were regular files, but I don't know what the conditions are that create symlinks like that, so this might not effect anything in practice.
2018-02-06 13:24:49 -07:00
Tyler Gill
cc053ff4b0
Normalize whitespace
2018-02-06 12:28:54 -07:00
Daniel Radünz
e6f0356351
Renamed variables to better convey content and usage
2018-01-28 00:36:31 +01:00
Daniel Radünz
2d725784a2
Changed order of checks for which backups to delete
2018-01-28 00:35:58 +01:00
Kenneth Skovhede
bf07f70318
Added method to automatically create folder for async upload.
...
This fixes #1384
2018-01-26 09:22:21 +01:00
JonMikelV
4f0cf589ba
Update duplicate error message to better distinguish failure point when error is thrown
2018-01-21 02:46:17 -06:00
JonMikelV and GitHub
47d5e8877e
Merge pull request #4 from duplicati/master
...
Merge from master
2018-01-21 02:14:37 -06:00
JonMikelV
2c43f38945
Undo unnecessary AddVerboseMessage() change
2018-01-21 02:11:27 -06:00
Kenneth Skovhede
75bf6857c1
Merge branch 'master' into concurrent_processing
...
# Conflicts:
# .travis.yml
# Duplicati/Library/Main/Database/LocalBackupDatabase.cs
# Duplicati/Library/Main/Operation/BackupHandler.cs
# Duplicati/Library/Main/ResultClasses.cs
# Duplicati/Library/Main/Volumes/VolumeWriterBase.cs
# Duplicati/Library/Utility/TempFile.cs
2018-01-20 15:02:41 +01:00
Kenneth Skovhede
d9377bab7e
Removed TempFileStram and fixed the two places that were using it, as they both had errors in the way it was used.
2018-01-18 14:25:25 +01:00
Brian Lakstins
ba8dddc7fe
Move RunScript module to be configured first so that any configuration changes can be used by other modules
2018-01-12 09:43:07 -05:00
JonMikelV
25e88cd478
Merge branch 'master' of https://github.com/jonmikelv/duplicati
2018-01-04 22:59:00 -06:00
JonMikelV
0d2145fc55
Fix copy/paste typo with && vs ||
2018-01-04 22:52:47 -06:00
JonMikelV and GitHub
a2a73e05bd
Merge pull request #2 from duplicati/master
...
Sync from original
2018-01-04 22:28:30 -06:00
JonMikelV
0e6bb62520
Let AddVerboseMessage() handle null / empty args variable & update PurgeFilesHandler to correctly call AddMessage()
2018-01-03 18:18:53 -06:00
Kenneth Skovhede and GitHub
9593edae14
Merge pull request #2939 from vnau/master
...
Compression classes refactoring
2017-12-26 12:27:35 +01:00
vnau
1c67118737
Type pattern conditions removed to compile with AppVeyor.
2017-12-25 23:51:10 +07:00
vnau
62a7901aca
Compression modules refactored to work with streams instead of filenames;
...
Added unit test to check compression reversibility
2017-12-25 04:12:19 +07:00
Kenneth Skovhede and GitHub
60503b6fa0
Merge pull request #2929 from warwickmm/remove_format_string_argument
...
Remove unused format string argument
2017-12-21 16:19:57 +01:00
vnau
9b9d9b1297
Fixed compiler warnings.
2017-12-17 01:34:21 +07:00
Kenneth Hsu
7cf04ea5d0
Remove unused format string argument.
...
The location of the assembly is already being reported as the "Current
Version folder".
2017-12-16 09:42:45 -08:00
Kenneth Skovhede and GitHub
5ecd381592
Update Strings.cs
...
Updated the help text for the snapshot policy
2017-12-11 00:23:53 +01:00
Kenneth Hsu
ab489d9a28
Make parameter names in XML documentation match code.
2017-12-09 18:42:30 -08:00
Kenneth Hsu
1c7391399d
Remove XML documentation for unmatched parameters.
2017-12-09 18:30:01 -08:00
Kenneth Skovhede and GitHub
36aadc4ad1
Merge pull request #2910 from warwickmm/refactor/remove_redundant_tostring
...
Remove redundant calls to ToString
2017-11-27 08:50:00 +01:00
Kenneth Hsu
5fb1958ceb
Remove redundant calls to ToString.
2017-11-26 15:44:34 -08:00
Kenneth Hsu
8810e0130d
Make string comparisons use ordinal (binary) sort rules.
...
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Skovhede
813e9c3140
Merge branch 'master' of github.com:duplicati/duplicati
2017-11-17 13:05:18 +01:00
Roberto Ribeiro
1ce4ccd61f
Changed subqueries to improve folder browsing in restore
2017-11-15 15:16:25 -02:00
Kenneth Skovhede
f4511d0bbb
Updated the affected command to check if the local database is found, and to return an error if not.
...
Also updated the help text to indicate that a database is required.
2017-11-09 17:59:36 +01:00
Kenneth Skovhede and GitHub
20877ce833
Merge pull request #2861 from jesjimher/added-dv-extension
...
Added dv extension
2017-11-06 20:48:14 +01:00
davegold24 and GitHub
8ed6aac68b
Spelling mistake loose changed to lose
2017-11-05 13:32:01 -05:00
Jesus Jimenez and GitHub
6a30d27782
Added dv extension
2017-11-02 10:12:08 +01:00
Kenneth Skovhede
8bbe04f623
Fixed a case where entering an invalid value for the --number-of-retries or --retry-delay options would crash the uploader thread and bring down the server.
...
This fixes #2834
2017-10-30 16:12:44 +01:00
Kenneth Skovhede
efc06b7210
Refactored the source path expansion/filtering into its own method.
...
Changed the check for subfolders to only work if the shortest path is a folder itself.
Changed the backup and test-filters method to use the same expansion logic so the filter test is more reliable.
This fixes #2778
2017-10-30 15:30:43 +01: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 Skovhede and GitHub
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 Hsu
8fdbbaa255
Avoid premature declaration of backup completion.
...
This addresses issue #2803 .
2017-10-14 12:00:52 -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
Kenneth Hsu
1846c67aae
Rename variable to be consistent with exception message.
2017-10-13 19:28:06 -07: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 and GitHub
b907aa607a
Merge pull request #2802 from warwickmm/fix_line_endings
...
Fix line-ending characters
2017-10-10 13:43:37 +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
Kenneth Skovhede and GitHub
38a8d11266
Merge pull request #2781 from TekkiWuff/retention-policy
...
Retention Policy
2017-10-04 15:12:19 +02:00
Kenneth Skovhede and GitHub
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