summaryrefslogtreecommitdiffstats
path: root/script/borg-restore.pl
diff options
context:
space:
mode:
Diffstat (limited to 'script/borg-restore.pl')
-rwxr-xr-xscript/borg-restore.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index d6e97e5..f58ba33 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -235,6 +235,11 @@ sub main {
return 0;
}
+ if (!$app->cache_contains_data()) {
+ $opts{"adhoc"} = 1;
+ $log->warning("Cache is empty. --adhoc has been enabled for you automatically");
+ }
+
my @paths = @ARGV;
my $path;