diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index 651806d..5611c1d 100644 --- a/src/PVE/Storage/BTRFSPlugin.pm +++ b/src/PVE/Storage/BTRFSPlugin.pm @@ -780,7 +780,8 @@ sub volume_export { } push @$cmd, '--'; if (ref($with_snapshots) eq 'ARRAY') { - push @$cmd, (map { "$path\@$_" } ($with_snapshots // [])->@*), $path; + push @$cmd, (map { "$path\@$_" } ($with_snapshots // [])->@*); + push @$cmd, $path if !defined($base_snapshot); } else { foreach_snapshot_of_subvol($path, sub { my ($snap_name) = @_;