8

Linux Cron Job with timestamp appended to output file

view full story
linux-howto

http://stackoverflow.com – Im trying to create a basic mysql dump cronjob in linux. $ crontab -l * * * * * sh /tmp/script.sh then in cat script.sh $ /home/mysql/bin/mysqldump dbase > /home/backup/date.sql -u root -p root This will create and overwrite a file date.sql but now how can i get it so it has the date+timestamp as I want to do this every minute. so i would like it to save the date-.sql rather how can I edit script.sh to do this? (HowTos)