summaryrefslogtreecommitdiffstats
path: root/script/borg-restore.pl
AgeCommit message (Collapse)AuthorFilesLines
2017-11-21Enable --adhoc automatically when cache is emptyFlorian Pritz1-0/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-11-12Prefix logging of uncaught exceptionsFlorian 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-19Add --version to -h outputFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-11Add --version optionFlorian Pritz1-1/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-04Move example usage under dedicated headingFlorian Pritz1-1/+1
If it's in SYNPOSIS it messes up the -h output Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-04Add example usage and output to readmeFlorian Pritz1-0/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-06-04Build README from script instead of main packageFlorian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-05-30Fix --update-cache not working due to help output optimizationFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-05-28Output usage earlier when called without argumentsFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-05-28Add --adhocFlorian Pritz1-2/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-10Use Function::Parameters for scriptFlorian Pritz1-3/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move configuration documentation to Settings packageFlorian Pritz1-57/+1
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-02Improve $PATH untaint commentFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Call borg with repo path instead of setting BORG_REPOFlorian Pritz1-2/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Extract logger setup into methodFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move format_timestamp to HelperFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use die in scriptFlorian Pritz1-4/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Only output die() message onceFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Left jusitfy package name and line number in debug logFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Log die() and warn() callsFlorian Pritz1-0/+14
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Ensure log4perl dependencies are included in use statementsFlorian Pritz1-1/+3
https://metacpan.org/pod/Log::Log4perl::FAQ#How-come-PAR-(Perl-Archive-Toolkit)-creates-executables-which-then-can't-find-their-Log::Log4perl-appenders? Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Carp for find_archives errorsFlorian Pritz1-6/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Carp for path resolving errorFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move backup path mapping to main packageFlorian Pritz1-10/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move path resolving to main packageFlorian Pritz1-8/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Fix unhandleted formatting in invalid path error messageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Fix width of milliseconds in debug log formatFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Change default log level to INFOFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02script: Abort early if path is not found in backupsFlorian Pritz1-0/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02script: Print fatal errors using loggerFlorian Pritz1-4/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Log4perl for loggingFlorian Pritz1-2/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01Fix codingstyleFlorian Pritz1-2/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01fixup! Do not pass $opts to main classFlorian Pritz1-1/+1
2017-03-19Fix undefined $log in scriptFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-13Use Log::Any in scriptFlorian Pritz1-1/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move most code to main packageFlorian Pritz1-346/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move debug() to main packageFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Remove unused sanitize_db_data()Florian Pritz1-16/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Extract borg related methods into dedicated packageFlorian Pritz1-18/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move packages to dedicated filesFlorian Pritz1-227/+12
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26Add scriptFlorian Pritz1-0/+859
Signed-off-by: Florian Pritz <bluewind@xinu.at>