In article <cvu763$2vlt$1@godfrey.mcc.ac.uk>, Roy Schestowitz wrote:
>I have been struggling to set up a nightly job that backs up a portion of my
>files. The following is a snippet from my crontab:
>28 4 * * * tar czvf /home/roy/Main/Transfer_Archives/rss-`date
>+%Y-%m-%d`.tar.gz /home/roy/Main/Transfer
>/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
>/bin/sh: -c: line 2: syntax error: unexpected end of file
NORMALLY, when I see this error, it's because there is a linefeed at
the end of the word 'date' and you have two lines. Your command really
wants everything on a single line. Could you be using a "user friendly"
editor like 'pico' that automatically line wraps? If it is 'pico', that
nasty feature can be disabled at the command prompt by calling pico with
the '-w' option.
Old guy
|
|