$ 0 0 If a file already exists, its readonly attribute is not copied. So to create a perfect mirror, you need to delete the destination first.