From 724ae95b1f9bd0758bb9804f8035a7378790808e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 22:11:24 +0200 Subject: Set default borg_repo to match my backup script Signed-off-by: Florian Pritz --- lib/App/BorgRestore/Settings.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 => ""}, -- cgit v1.2.3-24-g4f1b