Implemented backing up, restoring and removing directories.