Qiniu cloud domain name recovery image local download and backup method
1. Through cross-region synchronization
- Create a space in another zone
- Then migrate through synchronization
Second, through the official qshell command method
Set up qshell login account
AccessKey: Access key
SecretKey: Security key
SelfCustomName: Fill in the custom user name here (this name is the name of the account you log in to in qshell, which can be set arbitrarily, such as qiniuaccount or account_1, etc.)
AccessKey and SecretKey can be found in the personal panel in the upper right corner of the console, in the key management
### 格式: qshell account AccessKey SecretKey SelfCustomName
### 列如:
qshell account AccessKey SecretKey achang
- Get each file name in the space in batch
qshell listbucket <原bucket名> list.txt (list 出全部文件)
https://github.com/qiniu/qshell/blob/master/docs/listbucket.md
cat list.txt | awk '{print $1}' >list_final.txt ( 用awk获取list结果的第一列)
- Migrate the old space to the new space
qshell batchcopy <原bucket名> <新bucket名> list_final.txt
(复制到新bucket的文件和原bucket文件名一致)
https://github.com/qiniu/qshell/blob/master/docs/batchcopy.md
- Download pictures to local
qshell qdownload newfilelist.txt (newfilelist.txt is the downloaded configuration document)
https://github.com/qiniu/qshell/blob/master/docs/qdownload.md