summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-04-01Do not pass $opts to main classFlorian Pritz4-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-19Update META.jsonFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-19Fix broken db handling when updating cacheFlorian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-19Fix undefined $log in scriptFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-19Migrate main package to Log::AnyFlorian Pritz1-20/+16
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-03-13Refactor db creation and cache dir creationFlorian Pritz4-23/+34
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-13Fix 02_parsing.tFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-13timespec_to_seconds: Use atomic groups in regexFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-12Fix sort order of detected archivesFlorian Pritz2-1/+30
cmp sorts strings, <=> sorts numbers Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-12Use POSIX::strftime instead of DateTimeFlorian Pritz1-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-12Make $db an object variableFlorian Pritz1-36/+20
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-04Add new_no_defaults constructor for test suiteFlorian Pritz2-1/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-04Test timespec_to_secondsFlorian Pritz1-0/+21
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-04Add cpanfile.snapshotFlorian Pritz1-0/+66
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-04Test adding of new archivesFlorian Pritz3-0/+51
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-04Borg::list_archive: Use open() instead of IPC::Run for performanceFlorian Pritz2-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-03Fix broken recursion in save_nodeFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-03Pass sub to IPC::Run instead of using a typeglobFlorian Pritz2-7/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-03Add test deps to cpanfileFlorian Pritz2-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-03Support dependency injection of Borg classFlorian Pritz2-3/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-02Allow dots in archive namesFlorian Pritz2-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Drop useless =podFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move most code to main packageFlorian Pritz2-346/+364
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move debug() to main packageFlorian Pritz2-6/+26
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Test Helper::untaint_archive_nameFlorian Pritz1-0/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Remove empty lines from the dbFlorian Pritz1-1/+8
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 Pritz2-18/+43
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move packages to dedicated filesFlorian Pritz4-227/+252
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26Fix metadataFlorian Pritz5-16/+41
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26Add scriptFlorian Pritz1-0/+859
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26initial commitFlorian Pritz11-0/+574
Signed-off-by: Florian Pritz <bluewind@xinu.at>