Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not sure where to ask this question but I'll ask here first.

I've got a Synology DS211 server and I am trying to run cron jobs but it is not working.

This is the code I got in the crontab file

10 19 4 * * root /opt/bin/openssh-scp user@remote-server:/home/user/Backup/backup.tar.gz /volume1/Backup/ 

However it is not running.

I am able to run commands with /opt/bin/openssh-scp directly, but not with cron

Is there anything I am doing wrong?

share|improve this question
If this command prompts your for a password, it will not work as cron job. Is this the case? – Khaled May 7 '12 at 10:13
It does not require a password, public key installed on remote-server – zentenk May 7 '12 at 11:15

I've got cronjobs working on our DS1010+. In order to do this I had to add the jobs to /etc/crontab and then run /usr/syno/etc.defaults/rc.d/ stop followed by /usr/syno/etc.defaults/rc.d/ start

Instead of running those last 2 commands you can just reboot the NAS instead. As Khaled says you'll also need to make sure that you have keys set up so that you don't need to enter a password for the SCP.

share|improve this answer
I have already tried restarting the service using synoservice --restart crond and have also tried restarting the NAS. It still does not work. – zentenk May 7 '12 at 11:16
In that case I'm out of ideas, sorry. – Phil May 7 '12 at 11:36

You need to use "tabs" to separate the entries not spaces.

share|improve this answer
I don't think that that is correct. – slm Dec 23 '12 at 9:47
It is correct on Synology. – miracle2k Jun 2 '13 at 11:05

I don't know if this is an option for you, but the Synology DSM software (versions 4.2 and up) includes a task scheduler feature. For all I know it may simply be converting it to a crontab job under the covers, but perhaps trying it out from the admin GUI may get the job done and help avoid any syntax issues.

share|improve this answer

DS211 using CHIP MV6282 so you can install bootstrap and then install ipkg, then install crond. This crond work well like any other linux, unix systems.

Do not use the default crontab of synology DSM.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.