Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 setup a script for to take an mysql db backup everyday on a specific time, so now the cron is running perfectly it executing the script without problem but the problem is db backup file is not stored in the specific location,but while we executing a script manually in terminal it executing and the files are stored in the specific location perfectly.

I checked the cron logs it's shows all perfectly running, and i check the cron and mysql status it's running perfectly.

help me to solve this issue.

share|improve this question
Can you post a relevant fragment of the script? Also, how did you put in the line in cron? What operating system? That info may be relevant, this smells of a PATH problem or something similar. – Zlatko Nov 20 '12 at 8:38

Are you giving the full path for this db backup file ?. If not not I suggest you do so. Always give the absolute paths in scripts.

Share us the part of the code which handles writing this db backup file to assist you further.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .