Automatically backup JailBreak iPhone DCIM photo directory Hi I heard that you can write cron job into plist and put it to JB iPhone /Library/LaunchDaemons folder in plist format

I would like to backup the photo folder every 300 seconds, so I put a com.backup.plist like this into /Library/LaunchDaemons folder

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;KeepAlive&lt;/key&gt;
    &lt;true/&gt;

    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;com.backup&lt;/string&gt;

    &lt;key&gt;Program&lt;/key&gt;
    &lt;string&gt;/bin/cp&lt;/string&gt;

    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;-u&lt;/string&gt;
        &lt;string&gt;/private/var/mobile/Media/DCIM/100APPLE/*.*&lt;/string&gt;
        &lt;string&gt;/private/var/backup&lt;/string&gt;
    &lt;/array&gt;

    &lt;key&gt;StartInterval&lt;/key&gt;
    &lt;integer&gt;300&lt;/integer&gt;

&lt;/dict&gt;
&lt;/plist&gt;


I have created a folder of /private/var/backup with access right of 777 mobile:mobile

I rebooted the iPhone, however, the script just doesn't work

Does the failure refer to the "cp" command access right?
or should I change the /private/var/backup folder access right to something else?

btw I'm running iOS 4.3.3 Jailbreak iPhone 4 

Many thanks for reading
According to Wikipedia's article on cp:


  To copy a directory to a directory (-r or -R must be used)


So try adding &lt;string&gt;-r&lt;/string&gt; to the list of arguments. Reboot your device and after 5 minutes (300 seconds) check if it worked. 

Ad@m