Creating symlinks or hardlinks might fail if a directory entry with the same name is already present on the filesystem during restore. When the overwrite flag is given, on failure unlink the existing entry (except directories) and retry hard/symlink creation. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>