summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 22:39:57 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:39:57 +0200
commitfae93cb1650e646032a1dfe8a7088f478a81c5ca (patch)
tree736216c8ef6406316416130f2464594fe3aa191e
parente597aa5c8a9f2d3ba7760b5aca7903e76da35e29 (diff)
downloadApp-BorgRestore-fae93cb1650e646032a1dfe8a7088f478a81c5ca.tar.gz
App-BorgRestore-fae93cb1650e646032a1dfe8a7088f478a81c5ca.tar.xz
Update README
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index febfc0b..adac73b 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,15 @@ App::BorgRestore - Restore paths from borg backups
use App::BorgRestore;
+ my $app = App::BorgRestore->new();
+
+ # Update the cache (call after creating/removing backups)
+ $app->update_cache();
+
+ # Restore a path from a backup that is at least 5 days old. Optionally
+ # restore it to a different directory than the original.
+ $app->restore_simple($path, "5days", $optional_destination_directory);
+
# DESCRIPTION
App::BorgRestore is a restoration helper for borg.