summaryrefslogtreecommitdiffstats
path: root/lib/App
AgeCommit message (Collapse)AuthorFilesLines
2017-04-11DB: Fix broken db initializationFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-11DB: Fix opening of missing dbFlorian Pritz1-1/+1
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-10Remove unused Data::Dumper dependencyFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-10Use Function::Parameters in Helper packageFlorian Pritz1-9/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-10Use Function::Parameters in Borg packageFlorian Pritz1-17/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-10Use Function::Parameters for DB packageFlorian Pritz1-58/+16
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-05Add debug output to Borg packageFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-03Add empty line between pod and codeFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-03Fix license statementFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Make sqlite cache size configurableFlorian Pritz3-4/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move configuration documentation to Settings packageFlorian Pritz1-0/+73
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-02Set default borg_repo to match my backup scriptFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Call borg with repo path instead of setting BORG_REPOFlorian Pritz2-4/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move database path to SettingsFlorian Pritz2-2/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move format_timestamp to HelperFlorian Pritz2-9/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02die instead of returning undef in select_archive_timespecFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Add debug log in select_archive_timespecFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Carp in select_archive_timespecFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02die on error instead of croakFlorian Pritz1-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-02Improve debug messages in find_archivesFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Standardize error level for functions in main packageFlorian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Carp for find_archives errorsFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use Carp for path resolving errorFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Add TODOFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move backup path mapping to main packageFlorian Pritz1-0/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Move path resolving to main packageFlorian Pritz1-0/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Refactor update_cache()Florian Pritz1-18/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Improve log messages when adding archivesFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Use logger everywhere in main packageFlorian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-02Start documenting the main classFlorian Pritz1-1/+14
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01Mark some functions privateFlorian Pritz1-11/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01Remove unused get_temp_pathFlorian Pritz1-11/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01Remove unused get_mtime_from_lookuptableFlorian Pritz1-17/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-04-01Do not pass $opts to main classFlorian Pritz1-7/+1
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-19Fix broken db handling when updating cacheFlorian Pritz1-3/+3
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-13Refactor db creation and cache dir creationFlorian Pritz3-23/+33
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 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>