Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-04-02 | Use Carp in select_archive_timespec | Florian Pritz | 1 | -2/+2 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Use die in script | Florian Pritz | 1 | -4/+2 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | die on error instead of croak | Florian Pritz | 1 | -2/+2 | |
Croak would indicate that the caller is at fault, but if there is no path in the archive that's not a caller problem. Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Only output die() message once | Florian Pritz | 1 | -1/+2 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Left jusitfy package name and line number in debug log | Florian Pritz | 1 | -1/+3 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Log die() and warn() calls | Florian Pritz | 1 | -0/+14 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Ensure log4perl dependencies are included in use statements | Florian Pritz | 1 | -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-02 | Improve debug messages in find_archives | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Standardize error level for functions in main package | Florian Pritz | 1 | -3/+3 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Use Carp for find_archives errors | Florian Pritz | 2 | -6/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Use Carp for path resolving error | Florian Pritz | 2 | -2/+2 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Add TODO | Florian Pritz | 1 | -0/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Move backup path mapping to main package | Florian Pritz | 2 | -10/+18 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Move path resolving to main package | Florian Pritz | 2 | -8/+18 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Fix unhandleted formatting in invalid path error message | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Fix width of milliseconds in debug log format | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Refactor update_cache() | Florian Pritz | 1 | -18/+9 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Change default log level to INFO | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Improve log messages when adding archives | Florian Pritz | 1 | -2/+2 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Use logger everywhere in main package | Florian Pritz | 1 | -3/+3 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Start documenting the main class | Florian Pritz | 2 | -2/+28 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | script: Abort early if path is not found in backups | Florian Pritz | 1 | -0/+5 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | script: Print fatal errors using logger | Florian Pritz | 1 | -4/+4 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-02 | Use Log4perl for logging | Florian Pritz | 3 | -2/+24 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-01 | Fix codingstyle | Florian Pritz | 1 | -2/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-01 | Mark some functions private | Florian Pritz | 3 | -21/+21 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-01 | Remove unused get_temp_path | Florian Pritz | 1 | -11/+0 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-01 | Remove unused get_mtime_from_lookuptable | Florian Pritz | 1 | -17/+0 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-04-01 | fixup! Do not pass $opts to main class | Florian Pritz | 1 | -1/+1 | |
2017-04-01 | Do not pass $opts to main class | Florian Pritz | 4 | -10/+4 | |
The only reason this was done, was for the debug output. This no longer requires large amounts of memory or time (simple count(*) in the db now) so this is no longer necessary. Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-19 | Update META.json | Florian Pritz | 1 | -0/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-19 | Fix broken db handling when updating cache | Florian Pritz | 1 | -3/+3 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-19 | Fix undefined $log in script | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-19 | Migrate main package to Log::Any | Florian Pritz | 1 | -20/+16 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-13 | Use Log::Any in script | Florian Pritz | 1 | -1/+9 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-13 | Refactor db creation and cache dir creation | Florian Pritz | 4 | -23/+34 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-13 | Fix 02_parsing.t | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-13 | timespec_to_seconds: Use atomic groups in regex | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-12 | Fix sort order of detected archives | Florian Pritz | 2 | -1/+30 | |
cmp sorts strings, <=> sorts numbers Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-12 | Use POSIX::strftime instead of DateTime | Florian Pritz | 1 | -4/+2 | |
DateTime take forever to load (~115ms on my machine) and it's not required here. Removing it makes the usage text appear much faster. Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-12 | Make $db an object variable | Florian Pritz | 1 | -36/+20 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-04 | Add new_no_defaults constructor for test suite | Florian Pritz | 2 | -1/+17 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-04 | Test timespec_to_seconds | Florian Pritz | 1 | -0/+21 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-04 | Add cpanfile.snapshot | Florian Pritz | 1 | -0/+66 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-04 | Test adding of new archives | Florian Pritz | 3 | -0/+51 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-04 | Borg::list_archive: Use open() instead of IPC::Run for performance | Florian Pritz | 2 | -3/+9 | |
Surprisingly the callback isn't actually that bad, but IPC::Run (probably new_chunker) adds quite some overhead. Since open supports everything we need, use that instead. Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-03 | Fix broken recursion in save_node | Florian Pritz | 1 | -1/+1 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-03 | Pass sub to IPC::Run instead of using a typeglob | Florian Pritz | 2 | -7/+7 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-03 | Add test deps to cpanfile | Florian Pritz | 2 | -0/+4 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> | |||||
2017-03-03 | Support dependency injection of Borg class | Florian Pritz | 2 | -3/+17 | |
Signed-off-by: Florian Pritz <bluewind@xinu.at> |