【发布时间】:2021-10-07 16:27:06
【问题描述】:
我最近尝试使用 SCM Backup 备份我的 BitBucket 存储库。这是我所做的:
在我的 MacOS 上安装了 dot net
已安装 SCM 备份
我在 BitBucket 中为 SCM 备份创建了应用密码。
我在 settings.yml 文件中做了如下改动:
# all backups go here
localFolder: 'c:\scm-backup'
# when an error occurs, wait that many seconds before exiting the application
waitSecondsOnError: 5
# uncomment this to send SCM Backup's console output via email
#email:
# from: from@example.com
# to: to@example.com
# server: smtp.example.com
# port: 0
# useSsl: false
# userName: testuser
# password: not-the-real-password
sources:
- title: bitbucket_bkp
hoster: bitbucket
type: org
name: my_username
authName: my_username
password: App Password that I created
现在当我跑步时 -
dotnet ScmBackup.dll
它给出了输出 -
SCM Backup 1.2.1.552abf5
https://scm-backup.org/
Backing up config files
Getting repositories for source 'bitbucket_bkp' from hoster 'bitbucket'
Trying to find SCMs on this machine...
Backing up source: bitbucket_bkp
Backup finished!
The backups are in this directory: c:\scm-backup
如何从这个 c:\scm-backup 文件恢复存储库?
我对此一无所知。
根据文档bitbucket-scm-backup,当我在设置字段的名称字段中给出团队名称时,它会给出以下错误:
SCM Backup 1.2.1.552abf5
https://scm-backup.org/
Backing up config files
Getting repositories for source 'bitbucket_bkp' from hoster 'bitbucket'
User my_team_name not found!
Backup failed!
The application will close in 5 seconds!
我想备份我团队在 BitBucket 中的所有存储库并恢复它?
我该怎么办?
根据 Chris 的建议,我在 settings.yml 文件中进行了以下更改 -
# all backups go here
localFolder: '/Users/rahman/Desktop/'
现在,当我进行备份时,我的桌面上会出现一个名为 bitbucket_bkp 的文件夹。但它是空的。如何恢复?
另外,如何通过指定团队名称来备份整个团队?它不适合我。
为了支持我的团队,我对设置文件进行了如下更改 -
# all backups go here
localFolder: '/Users/rahman/Desktop/riz_bkp/'
# when an error occurs, wait that many seconds before exiting the application
waitSecondsOnError: 5
# uncomment this to send SCM Backup's console output via email
#email:
# from: from@example.com
# to: to@example.com
# server: smtp.example.com
# port: 0
# useSsl: false
# userName: testuser
# password: not-the-real-password
sources:
- title: bitbucket_bkp
hoster: bitbucket
type: org
name: team_name
现在我得到了错误-
SCM Backup 1.2.1.552abf5
https://scm-backup.org/
bitbucket_bkp: AuthName and Password are empty. Without authentication, SCM Backup will backup public repositories only!
Backing up config files
Getting repositories for source 'bitbucket_bkp' from hoster 'bitbucket'
User team_name not found!
Backup failed!
The application will close in 5 seconds!
怎么办?
【问题讨论】: