writeErrorToLog("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.")
askPassPath=""
else:
writeErrorToLog("Your OS does not appear to be supported at this time. If you are getting this error and you are using a x86_64 gnu libc-based linux distribution please report this issue. Please include the path to your ssh-askpass binary, as well.")
#try without requiring superuser privs by default.
rsyncRunCmd="rsync -aq "&source&""&destination
rsyncRun=execCmdEx(rsyncRunCmd)
ifrsyncRun.exitCode!=0:
#handle permission denied error.
ifrsyncRun.exitCode==23:
rsyncRun.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:
rsyncRunCmd="SUDO_ASKPASS="&getAskPassPath()&" sudo -A rsync -aq "&source&""&destination
rsyncRun=execCmdEx(rsyncRunCmd)
ifrsyncRun.exitCode!=0:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
ifrsyncErrors.len>0:
list.runStatus="<span color=\"#ff6b6b\" size=\"large\">Error! Please see the log at ~/.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>"