mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-03 12:14:39 -06:00
Show erasure coding/rsa encryption if enabled for backup and copy
This commit is contained in:
@@ -184,8 +184,13 @@ func (manager *BackupManager) Backup(top string, quickMode bool, threads int, ta
|
|||||||
|
|
||||||
LOG_DEBUG("BACKUP_PARAMETERS", "top: %s, quick: %t, tag: %s", top, quickMode, tag)
|
LOG_DEBUG("BACKUP_PARAMETERS", "top: %s, quick: %t, tag: %s", top, quickMode, tag)
|
||||||
|
|
||||||
|
if manager.config.DataShards != 0 && manager.config.ParityShards != 0 {
|
||||||
|
LOG_INFO("BACKUP_ERASURECODING", "Erasure coding is enabled with %d data shards and %d parity shards",
|
||||||
|
manager.config.DataShards, manager.config.ParityShards)
|
||||||
|
}
|
||||||
|
|
||||||
if manager.config.rsaPublicKey != nil && len(manager.config.FileKey) > 0 {
|
if manager.config.rsaPublicKey != nil && len(manager.config.FileKey) > 0 {
|
||||||
LOG_INFO("BACKUP_KEY", "RSA encryption is enabled" )
|
LOG_INFO("BACKUP_KEY", "RSA encryption is enabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
remoteSnapshot := manager.SnapshotManager.downloadLatestSnapshot(manager.snapshotID)
|
remoteSnapshot := manager.SnapshotManager.downloadLatestSnapshot(manager.snapshotID)
|
||||||
@@ -1557,6 +1562,15 @@ func (manager *BackupManager) CopySnapshots(otherManager *BackupManager, snapsho
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if otherManager.config.DataShards != 0 && otherManager.config.ParityShards != 0 {
|
||||||
|
LOG_INFO("BACKUP_ERASURECODING", "Erasure coding is enabled for the destination storage with %d data shards and %d parity shards",
|
||||||
|
otherManager.config.DataShards, otherManager.config.ParityShards)
|
||||||
|
}
|
||||||
|
|
||||||
|
if otherManager.config.rsaPublicKey != nil && len(otherManager.config.FileKey) > 0 {
|
||||||
|
LOG_INFO("BACKUP_KEY", "RSA encryption is enabled for the destination")
|
||||||
|
}
|
||||||
|
|
||||||
if snapshotID == "" && len(revisionsToBeCopied) > 0 {
|
if snapshotID == "" && len(revisionsToBeCopied) > 0 {
|
||||||
LOG_ERROR("SNAPSHOT_ERROR", "You must specify the snapshot id when one or more revisions are specified.")
|
LOG_ERROR("SNAPSHOT_ERROR", "You must specify the snapshot id when one or more revisions are specified.")
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user