Ticket #2889 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

backup script returns error

Reported by: mbrevda Assigned to:
Priority: minor Milestone: Undetermined
Component: Backup & Restore Version: 2.4-branch
Keywords: Cc:
Confirmation: Need testing Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Error:

[root@test tmp]# /var/lib/asterisk/bin/retrieve_backup_cron_from_mysql.pl
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/crontab -l | grep -v ^# DO NOT | grep -v ^# ( |  grep -v ampbackup.pl  >> /etc/asterisk/backup.conf '

The command is invalid. I presume its supposed to filter the following:

  • any line that begins with a # followed by the words DO NOT
  • any line that begins with # followed by a (
  • any line that contains ampbackup.pl

it should read:

/usr/bin/crontab -l | grep -v '^# DO NOT' | grep -v ^'# (' |  grep -v ampbackup.pl

Change History

07/08/08 08:22:24 changed by mbrevda

07/08/08 08:33:17 changed by mbrevda

  • status changed from new to closed.
  • confirmation changed from Unreviewed to Need testing.
  • resolution set to fixed.