backup.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:borgcube 作者: enkore 项目源码 文件源码
def remote_create(self, command_line):
        try:
            self.callx('create', command_line)
        except CalledProcessError as cpe:
            if cpe.returncode == 1:
                log.debug('remote create finished (warning)')
                with transaction.manager as txn:
                    self.job.borg_warning = True
                    txn.note('Set borg warning flag on job %s' % self.job.id)
            else:
                raise
        else:
            log.debug('remote create finished (success)')
        finally:
            transaction.begin()
        self.job.update_state(BackupJob.State.client_in_progress, BackupJob.State.client_done)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号