diff --git a/bin/pbackup b/bin/pbackup index 2069e6f..f5d9e23 100755 --- a/bin/pbackup +++ b/bin/pbackup @@ -560,7 +560,11 @@ ORDER BY due next if $nosys and $job_name =~ /^sys_/; next unless lck_can_lock("SERVER.$path_server", LCK_EX); next unless lck_can_lock("JOB.$job_name", LCK_EX); - $datadir = datadir($job_name); # $ROOT/data/X1234 + if ($type eq 'I') { + $datadir = datadir($job_name); # $ROOT/data/X1234 + } else { + $datadir = free_datadir(); + } -d $datadir or next; my $free = df_cached($datadir) / 1024 / 1024 / 1024; if ($free < 2) {