rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
#handle non-perms related error.
else:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
#explicitly check that sources were copied to destinations.
#just using file names, mod times, and size (same as bkup run itself).
rsyncCheckCmd="rsync -rn "&source&""&destination
rsyncCheckRun=execCmdEx(rsyncCheckCmd)
ifrsyncCheckRun.exitCode!=0:
#handle permission denied error.
ifrsyncCheckRun.exitCode==23:
rsyncCheckRun.exitCode=0
ifgetAskPassPath()=="":
leterr="No ssh-askpass binary found. Please install an ssh-askpass package for your distro, and let us know if EZ-Bkup still can't detect it's location."
rsyncErrors.add(err)
else:
rsyncCheckCmd="SUDO_ASKPASS="&getAskPassPath()&" sudo -A rsync -rn "&source&""&destination
rsyncCheckRun=execCmdEx(rsyncCheckCmd)
ifrsyncCheckRun.exitCode!=0:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to verify that "&source&" got backed up to "&destination)
#handle non-perms related error.
else:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to verify that "&source&" got backed up to "&destination)
ifrsyncErrors.len>0:
list.runStatus="<span color=\"#ff6b6b\" size=\"large\">Error! Please see the log at ~/.ez-bkup/errors.log</span>"
list.runStatus="<span color=\"#ff6b6b\" size=\"large\">Error! Please see ~/.ez-bkup/errors.log</span>"
forerrinrsyncErrors:
logger.log(lvlError,err)
elifroutineRunCount==0:
list.runStatus="<span color=\"#FFA651\" size=\"large\">Meh. No Bkup Routines were run.</span>"