Skip to content

Commit

Permalink
pbackup: Use volume with most space for full backups
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Apr 7, 2025
1 parent a5b6250 commit 2758ac4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/pbackup
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2758ac4

Please sign in to comment.