Revert "After restoring local directory from backup"

This reverts commit c7b9b3330e42cbce9654b85aae7b1ee4ac02410c.
Revert "Revert "After restoring local directory from backup""

This reverts commit 10c9026a5dd12a603019409b1a7d12d55fe31270.
Revert "After restoring local directory from backup"

This reverts commit c7b9b3330e42cbce9654b85aae7b1ee4ac02410c.