commit
5981aa5f2f
2 changed files with 5 additions and 2 deletions
|
|
@ -57,5 +57,6 @@ Trello board: [Click me!](https://trello.com/b/6zWLE6Jm)
|
||||||
| backupName | string | .bak file name |
|
| backupName | string | .bak file name |
|
||||||
| folderPath | string | Path to folder which should be backed up |
|
| folderPath | string | Path to folder which should be backed up |
|
||||||
| remoteStorageType | string | See [StorageTypes](#storage-types) |
|
| remoteStorageType | string | See [StorageTypes](#storage-types) |
|
||||||
| targetPath | string | Sets the targetPath for local backups |
|
| remoteTargetPath | string | Sets the remotePath for remote backups |
|
||||||
|
| localTargetPath | string | Sets the targetPath for local backups |
|
||||||
| createLocalBackup | boolean | Sets if .bak file should also be saved locally |
|
| createLocalBackup | boolean | Sets if .bak file should also be saved locally |
|
||||||
2
main.go
2
main.go
|
|
@ -36,6 +36,8 @@ func main(){
|
||||||
}
|
}
|
||||||
|
|
||||||
if !backupItem.CreateLocalBackup && backupItem.RemoteStorageType != "none"{
|
if !backupItem.CreateLocalBackup && backupItem.RemoteStorageType != "none"{
|
||||||
|
backupItem.LocalTargetPath = "NONE"
|
||||||
|
|
||||||
_ = os.Remove(bakFile)
|
_ = os.Remove(bakFile)
|
||||||
SQL.NewLogEntry(SQL.GetSQLInstance(), uuid.New(), SQL.LogInfo, backupItem.BackupName, SQL.SQLStage_DeleteTmp, SQL.REMOTE_NONE, "Deleted tmp file" ,time.Now())
|
SQL.NewLogEntry(SQL.GetSQLInstance(), uuid.New(), SQL.LogInfo, backupItem.BackupName, SQL.SQLStage_DeleteTmp, SQL.REMOTE_NONE, "Deleted tmp file" ,time.Now())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue