logger.Info"Note: if you run the following rsync command yourself, make sure the generated file list (%s) is up-to-date.\n%s"mbackupFile(rsyncExe+" "+rsyncArgs)
logger.Info
"Note: if you run the following rsync command yourself, make sure the generated file list (%s) is up-to-date.\n%s"
mbackupFile(rsyncExe+" "+rsyncArgs)
letproc=Process.Start(rsyncExe,rsyncArgs)
ifproc.WaitForExitInt32.MaxValuethen
logger.Info"mbackup exit"
@@ -233,6 +265,11 @@ let main argv =
logger.Error"mbackup timed out while waiting for rsync to complete"
ExitTimeout
with
|PrivateKeyNotFoundExceptionmsg->
logger.Error"%s"msg
logger.Info
"backup to remote node requires ssh private key, use --ssh-key <existing_key> option or create ~/.ssh/id_rsa file using ssh-keygen"
- 2019-11-14T10:50:13 ERROR Read/write file failed: System.Private.CoreLib Could not find a part of the path 'C:\Users\IEUser\AppData\Local\mbackup\mbackup.list'.
Does the dir exist? no. Create it at runtime.
@@ -208,7 +229,17 @@ Both local.list and local.exclude.
Warning: Identity file /cygdrive/c/Users/IEUser/.ssh/id_rsa not accessible: No such file or directory.
Can't open user config file /cygdrive/c/Users/IEUser/.ssh/config: No such file or directory
DONE do not specify config file if it doesn't exist.
TODO fail fast if ssh key doesn't exist. mbackup will only support key based auth.
DONE fail fast if ssh key doesn't exist. mbackup will only support key based auth.
DONE ssh options should only be added when backup to remote node.