> +use File::Copy; I am not sure if we want to use File::Copy, because I do not know if it provides any guarantees to copy files atomically (all or nothing)? We already have code in PVE::Tools to do that: my $data = PVE::Tools::file_get_contents($filename_src); PVE::Tools::file_set_contents($filename_dst, $data); - Dietmar