This commit is contained in:
Liang Ding 2022-06-05 00:45:08 +08:00
parent bceb37b108
commit 207e83a05b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 122 additions and 59 deletions

View file

@ -278,7 +278,7 @@ func CreateLocalBackup() (err error) {
return
}
err = genCloudIndex(newBackupDir, map[string]bool{})
err = genFullCloudIndex(newBackupDir, map[string]bool{})
if nil != err {
return
}
@ -364,7 +364,7 @@ func UploadBackup() (err error) {
util.PushEndlessProgress(Conf.Language(61))
util.LogInfof("uploading backup...")
start := time.Now()
wroteFiles, transferSize, err := ossUpload(localDirPath, "backup", "", false)
wroteFiles, transferSize, err := ossUpload(localDirPath, "backup", "not exist", false, map[string]bool{}, map[string]bool{})
if nil == err {
elapsed := time.Now().Sub(start).Seconds()
util.LogInfof("uploaded backup [wroteFiles=%d, transferSize=%s] in [%.2fs]", wroteFiles, humanize.Bytes(transferSize), elapsed)