summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 22:11:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:31:49 +0200
commit724ae95b1f9bd0758bb9804f8035a7378790808e (patch)
treebaeab089b7dffd0e2079a8de35cf1deb482977d4
parent286751abf9661a93d3d1de53df98c06ea4c3ddb7 (diff)
downloadApp-BorgRestore-724ae95b1f9bd0758bb9804f8035a7378790808e.tar.gz
App-BorgRestore-724ae95b1f9bd0758bb9804f8035a7378790808e.tar.xz
Set default borg_repo to match my backup script
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--lib/App/BorgRestore/Settings.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/BorgRestore/Settings.pm b/lib/App/BorgRestore/Settings.pm
index f793b8f..2aa24ad 100644
--- a/lib/App/BorgRestore/Settings.pm
+++ b/lib/App/BorgRestore/Settings.pm
@@ -6,8 +6,9 @@ use warnings;
use App::BorgRestore::Helper;
use File::Path qw(mkpath);
+use Sys::Hostname;
-our $borg_repo = "";
+our $borg_repo = "backup:borg-".hostname;
our $cache_path_base = sprintf("%s/borg-restore.pl", $ENV{XDG_CACHE_HOME} // $ENV{HOME}."/.cache");
our @backup_prefixes = (
{regex => "^/", replacement => ""},