Backup and restore working dir