[#6100] Fix snapshotting script, which was failing for multiple nodes