#quote sources and destinations to handle possible spaces.
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."
rsyncRunCmd="SUDO_ASKPASS="&getAskPassPath()&" sudo -A rsync -aq "&source&""&destination
rsyncRun=execCmdEx(rsyncRunCmd)
rsyncRun=execCmdEx(rsyncRunCmd)
ifrsyncRun.exitCode!=0:
ifrsyncRun.exitCode!=0:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
rsyncErrors.add("("&nowDT&")"&"EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
#handle non-perms related error.
#handle non-perms related error.
else:
else:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to back up "&source&" to "&destination)
rsyncErrors.add("("&nowDT&")"&"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.
#explicitly check that sources were copied to destinations.
#just using file names, mod times, and size (same as bkup run itself).
#just using file names, mod times, and size (same as bkup run itself).
rsyncCheckCmd="rsync -rn "&source&""&destination
#quote sources and destinations to handle possible spaces.
#quote sources and destinations to handle possible spaces.
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."
rsyncCheckCmd="SUDO_ASKPASS="&getAskPassPath()&" sudo -A rsync -rn "&source&""&destination
rsyncCheckRun=execCmdEx(rsyncCheckCmd)
rsyncCheckRun=execCmdEx(rsyncCheckCmd)
ifrsyncCheckRun.exitCode!=0:
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)
rsyncErrors.add("("&nowDT&")"&"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.
#handle non-perms related error.
else:
else:
rsyncErrors.add("EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to verify that "&source&" got backed up to "&destination)
rsyncErrors.add("("&nowDT&")"&"EZ-Bkup's rsync process(es) returned error ("&$rsyncRun.output&") while attempting to verify that "&source&" got backed up to "&destination)
ifrsyncErrors.len>0:
ifrsyncErrors.len>0:
list.runStatus="<span color=\"#ff6b6b\" size=\"large\">Error! Please see ~/.ez-bkup/errors.log</span>"
list.runStatus="<span color=\"#ff6b6b\" size=\"large\">Error! Please see ~/.ez-bkup/errors.log</span>"
forerrinrsyncErrors:
forerrinrsyncErrors:
logger.log(lvlError,err)
logger.log(lvlError,err)
elifroutineRunCount==0:
elifroutineRunCount==0:
list.runStatus="<span color=\"#FFA651\" size=\"large\">Meh. No Bkup Routines were run.</span>"
list.runStatus="<span color=\"#FFA651\" size=\"large\">No Bkup Routines were enabled. None were run.</span>"