<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<div><font style="" face="Courier New">OK I have a pair of </font><font style="" face="Courier New"><span class="yshortcuts" id="lw_1306949613_0">Drobo FS NAS devices</span></font><font style="" face="Courier New">.</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
Kernel&nbsp; :Linux Drobo-FS </font><font style="" face="Courier New"><span style="border-bottom: 2px dotted rgb(54, 99, 136); cursor: pointer;" class="yshortcuts" id="lw_1306949613_1">2.6.22</span></font><font style="" face="Courier New">.18</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
BusyBox v1.14.2 (2009-07-29 17:47:47 PDT) multi-call binary</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
One is the </font><font style="" face="Courier New"><span class="yshortcuts" id="lw_1306949613_2">file server</span></font><font style="" face="Courier New">,
 the other is the backup device.&nbsp; I can manually rsync between the two 
via the command line during a ssh session to the backup device.&nbsp; It 
works if I call the rsync command directly or via the </font><font style="" face="Courier New"><span style="border-bottom: 2px dotted rgb(54, 99, 136); cursor: pointer;" class="yshortcuts" id="lw_1306949613_3">shell script</span></font><font style="" face="Courier New"> that calls the rsync command.</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
crond is not enabled by default and there is no official DroboApp 
(marketing name for software plugin) to enable the service.&nbsp; This blog 
post outlines how to </font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
enable crond: </font><font style="" face="Courier New"><a href="http://blog.troyastle.com/2010/06/activate-cron-daemon-on-drobofs.html" target="_blank"><span class="yshortcuts" id="lw_1306949613_4">http://blog.troyastle.com/2010/06/activate-cron-daemon-on-drobofs.html</span></a></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
crond is running (ps | grep crond) and I've tested using the following </font><font style="" face="Courier New"><span style="border-bottom: 2px dotted rgb(54, 99, 136); cursor: pointer;" class="yshortcuts" id="lw_1306949613_5">cron job</span></font><font style="" face="Courier New">: 0,15,30,45 * * * * date &gt; /path/to/test.txt</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
The following job does get called: 0 * * * * /path/to/backup.sh &gt; 
/path/to/output.log (alternate definition,&nbsp; 0 * * * * /bin/sh 
/path/to/backup.sh &gt; /path/to/output.log)</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
However, the rsync command does not run.&nbsp; I only get the "BEGIN" and 
"END" messages I added in the output file.&nbsp; Not even an error message.&nbsp; 
Calling the script from the command line produces the full output, 
starting with "receiving incremental file list".&nbsp; I suspect that the 
cron environment is missing something (or I am), but adding the -l to 
the call (/bin/sh -l /root/backup.sh) has no effect.</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
Any ideas?</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">Here's the executable script with IP removed:</font><font style="" face="Courier New"><br></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">#!/bin/sh</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo '****************************************'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo 'BEGIN BACKUP'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">date</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo '****************************************'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New"><br></font><font style="" face="Courier New"># ssh uses public/private key authentication</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">/mnt/DroboFS/Shares/DroboApps/rsync/rsync -avz -e 'ssh -i /root/rsync-key' </font><font style="" face="Courier New">--rsync-path=/mnt/DroboFS/Shares/DroboApps/rsync/rsync </font><font style="" face="Courier New">root@0.0.0.0:/mnt/DroboFS/Shares /mnt/DroboFS/</font><font style="" face="Courier New"><br></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo '****************************************'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo 'END BACKUP'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">date</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">echo '****************************************'</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">
</font></div>



                                               </body>
</html>