mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-08 22:54:38 -06:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76f1274e13 | ||
|
|
9c3122b814 | ||
|
|
6ca8b8dff0 | ||
|
|
51cbf73caa | ||
|
|
835af11334 |
@@ -2084,7 +2084,7 @@ func main() {
|
|||||||
app.Name = "duplicacy"
|
app.Name = "duplicacy"
|
||||||
app.HelpName = "duplicacy"
|
app.HelpName = "duplicacy"
|
||||||
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
|
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
|
||||||
app.Version = "2.5.0" + " (" + GitCommit + ")"
|
app.Version = "2.5.2" + " (" + GitCommit + ")"
|
||||||
|
|
||||||
// If the program is interrupted, call the RunAtError function.
|
// If the program is interrupted, call the RunAtError function.
|
||||||
c := make(chan os.Signal, 1)
|
c := make(chan os.Signal, 1)
|
||||||
|
|||||||
@@ -998,6 +998,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
|
|||||||
}
|
}
|
||||||
|
|
||||||
if checkChunks && !checkFiles {
|
if checkChunks && !checkFiles {
|
||||||
|
manager.chunkDownloader.snapshotCache = nil
|
||||||
LOG_INFO("SNAPSHOT_VERIFY", "Verifying %d chunks", len(*allChunkHashes))
|
LOG_INFO("SNAPSHOT_VERIFY", "Verifying %d chunks", len(*allChunkHashes))
|
||||||
for chunkHash := range *allChunkHashes {
|
for chunkHash := range *allChunkHashes {
|
||||||
manager.chunkDownloader.AddChunk(chunkHash)
|
manager.chunkDownloader.AddChunk(chunkHash)
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ func CreateStorage(preference Preference, resetPassword bool, threads int) (stor
|
|||||||
} else {
|
} else {
|
||||||
keySigner, err = ssh.ParsePrivateKey(content)
|
keySigner, err = ssh.ParsePrivateKey(content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if strings.Contains(err.Error(), "cannot decode encrypted private keys") {
|
if _, ok := err.(*ssh.PassphraseMissingError); ok {
|
||||||
LOG_TRACE("SSH_PUBLICKEY", "The private key file is encrypted")
|
LOG_TRACE("SSH_PUBLICKEY", "The private key file is encrypted")
|
||||||
passphrase = GetPassword(preference, "ssh_passphrase", "Enter the passphrase to decrypt the private key file:", false, resetPassword)
|
passphrase = GetPassword(preference, "ssh_passphrase", "Enter the passphrase to decrypt the private key file:", false, resetPassword)
|
||||||
if len(passphrase) == 0 {
|
if len(passphrase) == 0 {
|
||||||
@@ -652,7 +652,7 @@ func CreateStorage(preference Preference, resetPassword bool, threads int) (stor
|
|||||||
LOG_ERROR("STORAGE_CREATE", "Failed to load the OneDrive storage at %s: %v", storageURL, err)
|
LOG_ERROR("STORAGE_CREATE", "Failed to load the OneDrive storage at %s: %v", storageURL, err)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
SavePassword(preference, "one_token", tokenFile)
|
SavePassword(preference, matched[1] + "_token", tokenFile)
|
||||||
return oneDriveStorage
|
return oneDriveStorage
|
||||||
} else if matched[1] == "hubic" {
|
} else if matched[1] == "hubic" {
|
||||||
storagePath := matched[3] + matched[4]
|
storagePath := matched[3] + matched[4]
|
||||||
|
|||||||
Reference in New Issue
Block a user