def archive_repository(self, repository_id, new_id):
    'Archive an repository. The archived repository will have the id `new_id`\n\n        Args:\n            repository_id (str): The active repository ID to be archived\n            new_id (str): The id that will be given to the archived repository\n        '
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not new_id):
        _exit_if_errors(['--new-id is required'])
    (_, errors) = self.rest.archive_backup_repository(repository_id, new_id)
    _exit_if_errors(errors)
    _success('Archived repository')
Archive an repository. The archived repository will have the id `new_id`

Args:
    repository_id (str): The active repository ID to be archived
    new_id (str): The id that will be given to the archived repository
def archive_repository(self, repository_id, new_id):
    'Archive an repository. The archived repository will have the id `new_id`\n\n        Args:\n            repository_id (str): The active repository ID to be archived\n            new_id (str): The id that will be given to the archived repository\n        '
    if (not repository_id):
        _exit_if_errors(['--id is required'])
    if (not new_id):
        _exit_if_errors(['--new-id is required'])
    (_, errors) = self.rest.archive_backup_repository(repository_id, new_id)
    _exit_if_errors(errors)
    _success('Archived repository')