SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Works manually, but not w/ cron
Author Message
Post Works manually, but not w/ cron 
The following command in cron gives me a quotation error. Do I have
the --remote-schema argument wrong?:

Cron entry:
------------------
0 0 * * * sudo /usr/bin/rdiff-backup --print-statistics
--exclude-globbing-filelist /home/bry/backup/vic/exclude
--remote-schema "/usr/bin/ssh -C -i /home/bry/.ssh/id_rsa %s
/usr/bin/rdiff-backup --server" root < at > myip.net::/home
/home/bry/backup/vic/home

Error
-------------------
/bin/sh: Syntax error: Unterminated quoted string

See my post on linuxquestions.org:
http://www.linuxquestions.org/questions/linux-software-2/works-manually-but-not-w-cron-quotation-problem-762961/#post3726082


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Works manually, but not w/ cron 
On Tue, Oct 20, 2009 at 08:43:11AM -0700, Bryan Vicknair wrote:
The following command in cron gives me a quotation error. Do I have
the --remote-schema argument wrong?:

Cron entry:
------------------
0 0 * * * sudo /usr/bin/rdiff-backup --print-statistics
--exclude-globbing-filelist /home/bry/backup/vic/exclude
--remote-schema "/usr/bin/ssh -C -i /home/bry/.ssh/id_rsa %s
/usr/bin/rdiff-backup --server" root < at > myip.net::/home
/home/bry/backup/vic/home

Error
-------------------
/bin/sh: Syntax error: Unterminated quoted string

at a guess try changing the " to '


See my post on linuxquestions.org:
http://www.linuxquestions.org/questions/linux-software-2/works-manually-but-not-w-cron-quotation-problem-762961/#post3726082


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Works manually, but not w/ cron 
Bryan Vicknair wrote:
The following command in cron gives me a quotation error. Do I have
the --remote-schema argument wrong?:

Cron entry:
------------------
0 0 * * * sudo /usr/bin/rdiff-backup --print-statistics
--exclude-globbing-filelist /home/bry/backup/vic/exclude
--remote-schema "/usr/bin/ssh -C -i /home/bry/.ssh/id_rsa %s
/usr/bin/rdiff-backup --server" root < at > myip.net::/home
/home/bry/backup/vic/home

Error
-------------------
/bin/sh: Syntax error: Unterminated quoted string

See my post on linuxquestions.org:
http://www.linuxquestions.org/questions/linux-software-2/works-manually-but-not-w-cron-quotation-problem-762961/#post3726082


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Hi Bryan,

I'm totally not sure about my idea (I don't know the options you use),
but it is worth a shot: maybe it is the double : you used in your
command. I think it should be one. Easy to try, I would say Wink.
Hope this helps.

Best regards, Cybertinus


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Works manually, but not w/ cron 
Per "man 5 crontab":

The entire command portion of the line, up to a newline or %
character, will be executed by /bin/sh or by the shell
specified in the SHELL variable of the cronfile. Percent-signs
(%) in the command, unless escaped with backslash (\), will be
changed into new-line characters, and all data after the first %
will be sent to the command as standard input.

--Joe

On 10/20/2009 11:43 AM, Bryan Vicknair wrote:
The following command in cron gives me a quotation error. Do I have
the --remote-schema argument wrong?:

Cron entry:
------------------
0 0 * * * sudo /usr/bin/rdiff-backup --print-statistics
--exclude-globbing-filelist /home/bry/backup/vic/exclude
--remote-schema "/usr/bin/ssh -C -i /home/bry/.ssh/id_rsa %s
/usr/bin/rdiff-backup --server" root < at > myip.net::/home
/home/bry/backup/vic/home

Error
-------------------
/bin/sh: Syntax error: Unterminated quoted string


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB