Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Kenneth Hsu
5951047ff1
Fix incorrect or misleading indentations.
...
This also adds braces to clarify scope where beneficial.
2020-11-21 13:58:16 -08:00
Kenneth Hsu
0a390bd31a
Move NormalizeDateTimeToEpochSeconds method to Utility class.
2019-09-01 12:38:23 -07:00
Kenneth Hsu
40cae529e6
Move NormalizeDateTime method to Utility class.
2019-09-01 12:38:23 -07:00
verhoek
f7ccb75e13
Minor refactoring.
2019-02-25 11:35:43 +01:00
Kenneth Hsu
b5d9451b33
Remove redundant casts.
2019-01-21 19:30:52 -08:00
Kenneth Hsu
fecde4f992
Add command-line program to import backup configurations.
...
This concerns issue #2693 .
2019-01-10 21:43:30 -08:00
verhoek
ed27eb52ad
Suppress passphrase input on restore when backup set was unencrypted.
2018-11-21 09:55:56 +01:00
verhoek
f7800e8a2b
Functionality for backend to retrieve passphrase adhoc on restore, which
...
is convenient for asymmetric gpg encryption.
2018-11-20 21:12:46 +01:00
verhoek
1f8c7fab87
Misc refactoring.
2018-11-20 12:57:31 +01:00
verhoek
b6c8c5b5b8
Removed unnecessary requirement of passphrase for asymmetric GPG encryption.
2018-11-19 17:27:11 +01:00
Mikael Mello
91bdf4be63
Make description an optional field for backups
...
Checks whether it has been set and acts accordingly to avoid exceptions
Update migration to initialize all existent rows to Description=''.
Note that after some research, default values for TEXT columns were not
supported by MySQL a few years ago, however Duplicati uses SQLite
which seems to fully support this feature. If not, a workaround is to use:
ALTER TABLE "Backup" ADD COLUMN "Description" TEXT NULL;
UPDATE "Backup" SET "Description"='' WHERE "Description" IS NULL;
ALTER TABLE "Backup" ALTER COLUMN "Description" TEXT NOT NULL;
2018-10-17 09:02:39 -03:00
Kenneth Hsu
9e0b031fee
Remove unused members.
2018-10-15 21:20:30 -07: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
sffetlio
70febafc2b
Add Description field to backups
2018-09-20 14:46:32 +03:00
Kenneth Hsu
f12858e6a5
Mark fields that shouldn't be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Skovhede
e124329f1e
Merge branch 'feature/improved-logging'
2018-03-16 08:38:14 +01:00
Kenneth Skovhede
842fd96543
Implemented a new logging system that is more transparent and allows a more granular way of picking log messages.
...
Added ID's to each log message and each exception to allow later introduction of a Knowledgebase service that explains each error in more detail.
2018-03-15 09:12:34 +01:00
Kenneth Hsu
1f8b542604
Use nameof operator when constructing ArgumentNullException.
...
This will make rename refactorings easier in the future.
2018-03-07 17:53:08 -08:00
Pectojin
15284ce445
Altered the DeleteFromDb() method so that it can be used to delete rows defined by arbitrary identifiers. Added overloaded function that turns legacy calls to DeleteFromDb() into calls to the new DeleteFromDb() method
2018-02-01 20:12:10 +01:00
Pectojin
b68dda3d59
Added calls to clean up dependency tables when a backup is deleted
2018-02-01 20:12:04 +01: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
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
Dan Stahr
58a95e03e6
Autovacuum option added
2017-08-04 12:09:01 +01:00
Max
319288ef9f
upstream
2017-06-17 17:19:34 +02:00
Kenneth Skovhede
ded920178d
Fixed a few issues with storing and reading UI settings
2017-05-31 22:44:16 +02:00
Max
0c97194cf7
Move GetDatabaseConnection to Server
2017-05-21 19:25:39 +02:00
Albertony
c87f3946df
Fixed unreported issue: The block size validation was not triggered, and did also not allow setting the value to 1KB (similar to issue #2387 )
2017-03-20 12:36:08 +01:00
Albertony
a8905a4da8
Fixed issue #2387 : Volume size cannot be set to 1 MB
2017-03-20 12:31:13 +01:00
Kenneth Skovhede
3c5a45bdff
Layout fix
2017-02-27 09:09:13 +01:00
Kenneth Skovhede
8c8a0907c0
Added checks to ensure that hyphens are not used in --prefix as that would make it possible to craft prefixes that confuse the filename parser, e.g. --prefix=duplicati-b1234.zip
...
This fixes #2295
2017-02-27 09:09:02 +01:00
Kenneth Skovhede
71933b2674
Added serverside validation of backups on save/update
2016-10-14 00:15:49 +02:00
Kenneth Skovhede
53a7459f29
Fixed problem with UI saving global options in ApplicationSettings/ServerSettings.
...
This fixes #1720 .
This fixes #1830
2016-09-23 23:23:44 +02:00
Kenneth Skovhede
742eab0913
Fixed multiple cases where connections and command instances were not disposed.
...
This should fix all cases of "File is locked" on windows.
2016-04-06 20:40:34 +02:00
Kenneth Skovhede
b1a2115fc7
Fixed a case where a backup save failed if a schedule was created
2015-12-08 23:48:29 +01:00
Kenneth Skovhede
bcf9985ee8
Added web-interface support for changing the local database for a backup
2015-12-08 20:42:53 +01:00
Kenneth Skovhede
0bfe3daac4
Fixed issues with the REST interface
2015-08-26 12:38:27 +01:00
Kenneth Skovhede
3972211757
Added automatic log cleanup
...
This fixes #1298
2015-02-15 23:44:20 +01:00
Kenneth Skovhede
3ab1632f43
Cleanup broken database.
...
This fixes #1295 .
This fixes #1287 .
2015-02-15 22:54:49 +01:00
Kenneth Skovhede
a3d21c1f6d
Fixed saving with ID=-1 which is what causes #1295 and #1287
2015-02-15 22:28:34 +01:00
Kenneth Skovhede
a0efbed111
Protecting against saving with ID=-1 as mentioned in #1295
2015-02-15 22:26:43 +01:00
Kenneth Skovhede
4846ffa103
Now using the file modification timestamp and the filesize as indicators that trigger file scanning.
...
This fixes #1099 .
2015-01-24 21:59:53 +01:00
Kenneth Skovhede
8d13e698eb
Updated copyright notices
2015-01-20 21:44:52 +01:00
Kenneth Skovhede
c2fc930411
Implemented storing backup task info in the backup data
2014-10-14 14:45:49 +02:00
Kenneth Skovhede
d0f306dba9
Store sqlite databases in the Datafolder to support portable installs
2014-09-02 18:04:50 +02:00
Kenneth Skovhede
4c7878a27b
Implemented method for downloading the bug-report after it has been created.
2014-08-05 23:04:00 +02:00
Kenneth Skovhede
0b24c5977e
Implemented a miniature ORM mapping system for the server database to avoid lots of boilerplate code
2014-08-05 22:59:00 +02:00
Kenneth Skovhede
ef1cb1a3dc
Added the action field to notifications
2014-08-04 09:06:12 +02:00