| Dennis Carr ( @ 2007-12-24 21:21:00 |
Probably more of a bash question....
OK, so I have a backup script that an associate of mine wrote. The problem is that the backup script, which exports database files from MySQL, won't dump them - I get the following response:
/home/dennis/bin/backup-export: line 21: ${backupdir}/rf_forums_$TODAY: ambiguous redirect
The command in question is as follows:
mysqldump -u(redacted!) -p(redacted!) --host=127.0.0.1 rf_forums > ${backupdir}/rf_foru\
ms_$TODAY
...note, a similar command is run thrice in this script.
The confusion is that this worked when I first ran the file. On the other hand, I was root when I first ran the backup script. At this moment, I don't have any access to the root end o' things. So that said, does anyone have any insight as to what's going on? Perhaps I should rewrite the script?
...Bueller?
OK, so I have a backup script that an associate of mine wrote. The problem is that the backup script, which exports database files from MySQL, won't dump them - I get the following response:
/home/dennis/bin/backup-export: line 21: ${backupdir}/rf_forums_$TODAY: ambiguous redirect
The command in question is as follows:
mysqldump -u(redacted!) -p(redacted!) --host=127.0.0.1 rf_forums > ${backupdir}/rf_foru\
ms_$TODAY
...note, a similar command is run thrice in this script.
The confusion is that this worked when I first ran the file. On the other hand, I was root when I first ran the backup script. At this moment, I don't have any access to the root end o' things. So that said, does anyone have any insight as to what's going on? Perhaps I should rewrite the script?
...Bueller?