Find the answer to your Linux question:
Results 1 to 2 of 2
i have created a file named "backups.sh" to take a backup of mysql db. /usr/bin/mysqldump -A -u [username] -p[password] | gzip > /backups`date +%m_%d_%y`.gz And set crontab. 10 * * ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Location
    Kochi-India
    Posts
    9

    Thumbs down backup with cron

    i have created a file named "backups.sh" to take a backup of mysql db.
    /usr/bin/mysqldump -A -u [username] -p[password] | gzip > /backups`date +%m_%d_%y`.gz
    And set crontab.
    10 * * * * /root/backups.sh
    But didnt take backup.
    i had run /etc/init.d/cron start.
    i use ubuntu
    what the problem with me????????any help...

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Location
    Highlands
    Posts
    37
    I've forgotten all about cron. Isn't there an easier way in Ubuntu?

    • Write your script.
    • Test it.
    • When it works, copy it to:


    /etc/cron.hourly
    
/etc/cron.daily
    
or whatever

    Maybe you check the queue with "atq", or the modern equivalent?
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...