Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions zetaback.in
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ sub zfs_do_backup($$$$$$;$) {
print STDERR "Receiving to zfs filesystem $storefs/$encodedname\n"
if($DEBUG);
zfs_create_intermediate_filesystems("$storefs/$encodedname");
open(LBACKUP, "|__ZFS__ recv $storefs/$encodedname");
open(LBACKUP, "|__ZFS__ recv -F $storefs/$encodedname");
}
# Do it. yeah.
eval {
Expand Down Expand Up @@ -1304,7 +1304,7 @@ sub zfs_restore_part($$$$;$) {
$command .= " -b $dep" if($dep);
}
else {
$command = "__ZFS__ recv $fs";
$command = "__ZFS__ recv -F $fs";
}
if ($file) {
print " => piping $file to $command\n" if($DEBUG);
Expand Down Expand Up @@ -1630,7 +1630,7 @@ sub plan_and_run($$) {
# We need to drop a __zb_base snap or a __zb_incr snap before we proceed
unless($NEUTERED || $backup_type eq 'no') {
# attempt to lock this action, if it fails, skip -- someone else is working it.
next unless(lock($host, dir_encode($diskname), 1));
next unless(lock($host, dir_encode($diskname) . ".lock", 1));
unlock($host, '.list');

if($backup_type eq 'full') {
Expand Down Expand Up @@ -1677,7 +1677,7 @@ sub plan_and_run($$) {
}
$took_action = 1;
}
unlock($host, dir_encode($diskname), 1);
unlock($host, dir_encode($diskname) . ".lock", 1);
}
$suppress{"$host:$diskname"} = 1;
last if($took_action);
Expand Down