diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-04-02 22:11:24 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-04-02 22:31:49 +0200 |
commit | 724ae95b1f9bd0758bb9804f8035a7378790808e (patch) | |
tree | baeab089b7dffd0e2079a8de35cf1deb482977d4 /lib | |
parent | 286751abf9661a93d3d1de53df98c06ea4c3ddb7 (diff) | |
download | App-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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App/BorgRestore/Settings.pm | 3 |
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 => ""}, |