summaryrefslogtreecommitdiffstats
path: root/lib/App/BorgRestore.pm
AgeCommit message (Collapse)AuthorFilesLines
2023-09-03Checking in changes prior to tagging of version 3.4.5.HEADmasterFlorian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 8d12e49..092aa83 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.5 2023-09-03T11:58:14Z - Fix deprecation warning with borg 1.2.x 3.4.4 2020-10-14T12:37:04Z
2020-10-14Checking in changes prior to tagging of version 3.4.4.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index e7582ea..0fa7341 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.4 2020-10-14T12:37:04Z - Require DBD::SQLite 1.60 or newer to fix issues with schema migration 2 on old systems. - Reduce database size for databases that contained data from before
2020-09-27Checking in changes prior to tagging of version 3.4.3.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 1bb3489..3013873 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.3 2020-09-27T13:53:54Z - Add database migration for change from 3.4.2 3.4.2 2020-09-27T13:50:47Z
2020-09-27Checking in changes prior to tagging of version 3.4.2.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 6a1d238..a40a774 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.2 2020-09-27T13:50:47Z - Fix missing cache data for top level files that exist with and without an extension. For example a '/lib' symlink and '/lib64'. '/lib' would be missing from the database.
2020-09-27Checking in changes prior to tagging of version 3.4.1.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index f77e9f9..cd1a4c3 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.1 2020-09-27T12:57:01Z - Fix missing cache data for files that exist with and without an extension. For example '/home/*/.ssh/id_rsa' would be missing from the database and only the accompanying `id_rsa.pub` file would be contained
2019-09-28Checking in changes prior to tagging of version 3.4.0.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index eeb4d3b..dd5812e 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.4.0 2019-09-28T13:28:49Z - Remove archive name untaint restrictions (remove untaint_archive_name function)
2019-09-28Import untaint function where usedFlorian Pritz1-4/+4
Better code readability than with the full name. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-09-28Helper: Remove untaint_archive_nameFlorian Pritz1-2/+1
We no longer need a special whitelist for archive names since the database no longer uses them as column keys. We still need to untaint variables that are passed to DBI so we use untaint() for this now. We also move the location of the untaint call closer to its usage with DBI/system() to prevent untainted data from leaking elsewhere. Fixes #4 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2019-02-07Checking in changes prior to tagging of version 3.3.0.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 807706c..9bb5022 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.3.0 2019-02-07T16:18:41Z - Support borg list's --prefix option via $borg_prefix setting - Properly handle cases where the DB is empty after removal of archive information
2019-02-07Support borg list --prefix option via settingFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-11-01Checking in changes prior to tagging of version 3.2.1.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index b9b6218..dae2435 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,9 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} +3.2.1 2018-11-01T12:54:26Z + - Add missing version requirement to List::Util dependency + 3.2.0 2018-09-19T11:46:35Z - Write data directly to DB instead of preparing it in memory first. The new algorithm should be faster and uses constant memory. If you want the
2018-09-19Checking in changes prior to tagging of version 3.2.0.Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index bd95acb..b9b6218 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.2.0 2018-09-19T11:46:35Z - Write data directly to DB instead of preparing it in memory first. The new algorithm should be faster and uses constant memory. If you want the old one back for any reason look at the '$prepare_data_in_memory' config
2018-09-09Use strictures instead of strict/warningsFlorian Pritz1-2/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-09Get settings via hash instead of direct variable accessFlorian Pritz1-9/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-09Settings: Add constructorsFlorian Pritz1-0/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-09Simplify BorgRestore constructorsFlorian Pritz1-8/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-09BorgRestore: Move dependencies to dedicated $self->{deps} keyFlorian Pritz1-28/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-06Update copyright yearsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-06Add direct-to-db adding of paths instead of memory onlyFlorian Pritz1-5/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-09-06Extract lookup table into dedicated packageFlorian Pritz1-43/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-08-25Checking in changes prior to tagging of version 3.1.0.3.1.0Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index a4b127d..a7d4b7b 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.1.0 2018-08-25T09:46:27Z - Add --json option - Add --detail option - Log cache update status message per archive to INFO
2018-08-02Send cache update messages to INFOFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-03-23Checking in changes prior to tagging of version 3.0.0.3.0.0Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 22043d6..600f118 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +3.0.0 2018-03-23T14:57:52Z - No longer automatically enable --adhoc when cache is empty 2.3.0 2018-02-06T15:58:36Z
2018-02-06Checking in changes prior to tagging of version 2.3.0.2.3.0Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 32e7b5b..a46f8bc 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,11 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} +2.3.0 2018-02-06T15:58:36Z + - Add --list option to search for paths occuring in backups + - Warn if sqlite's memory cache is is filled during cache updates + - Improve documentation of @backup_prefixes setting + 2.2.0 2017-11-25T23:16:04Z - Add borg 1.1 support - Mention required positive return code of config in documentation
2018-01-24Only increase sqlite cache size during updateFlorian Pritz1-0/+2
While not all operations fill the cache, --list does. However, for read operations it doesn't actually appear to help performance. Limit the large cache setting to update operations only because there it does really increase performance. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2018-01-24Add --list feature to search for files contained in backups by pathFlorian Pritz1-0/+15
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-12-04Warn if sqlite cache is fullFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-11-26Checking in changes prior to tagging of version 2.2.0.2.2.0Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 0c8276e..32e7b5b 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} + +2.2.0 2017-11-25T23:16:04Z - Add borg 1.1 support - Mention required positive return code of config in documentation - Enable adhoc mode automatically when cache is empty
2017-11-26Remove old cacheFlorian Pritz1-0/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-11-22Replace File::* dependencies with Path::TinyFlorian Pritz1-5/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-11-21Enable --adhoc automatically when cache is emptyFlorian Pritz1-0/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-11-12Remove duplicate exception stringsFlorian Pritz1-7/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-10-05Update versionFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-08-10Bump minimal perl version to 5.14Florian Pritz1-1/+1
Function::Parameters requires >=5.14 so we can bump our version as well. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-24Checking in changes prior to tagging of version 2.1.0.2.1.0Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 63cdd4d..ffbe7ba 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,10 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} +2.1.0 2017-06-24T15:26:08Z + - Improve documentation + - chdir back to original working directory after restore + 2.0.1 2017-06-04T17:44:27Z - Add github to META.json
2017-06-11Remove unused, commented variableFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-11Use File::pushd for temporary chdirFlorian Pritz1-10/+13
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-11Document main packageFlorian Pritz1-0/+128
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-06Move license documentation to end of fileFlorian Pritz1-15/+25
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-04Checking in changes prior to tagging of version 2.0.1.2.0.1Florian Pritz1-1/+1
Changelog diff is: diff --git a/Changes b/Changes index 7a69a34..63cdd4d 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,10 @@ Revision history for Perl extension App-BorgRestore {{$NEXT}} +2.0.1 2017-06-04T17:44:27Z + + - Add github to META.json + 2.0.0 2017-06-04T16:18:33Z - original version
2017-06-04Build README from script instead of main packageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-05-28Add --adhocFlorian Pritz1-0/+23
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-11Add missing dependenciesFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-10Use Function::Parameters for main packageFlorian Pritz1-69/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Make sqlite cache size configurableFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Update license file nameFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Fix indentation in SYNOPSISFlorian Pritz1-6/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Add restore_simpleFlorian Pritz1-0/+25
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Call borg with repo path instead of setting BORG_REPOFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move database path to SettingsFlorian Pritz1-2/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>