summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2017-03-12Fix sort order of detected archivesFlorian Pritz1-1/+1
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 Pritz1-0/+16
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-03Support dependency injection of Borg classFlorian Pritz2-3/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-02Allow dots in archive namesFlorian Pritz1-1/+1
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 Pritz1-0/+356
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move debug() to main packageFlorian Pritz1-5/+21
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-27Extract borg related methods into dedicated packageFlorian Pritz1-0/+39
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-27Move packages to dedicated filesFlorian Pritz3-0/+240
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26Fix metadataFlorian Pritz1-6/+18
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-02-26initial commitFlorian Pritz1-0/+39
Signed-off-by: Florian Pritz <bluewind@xinu.at>