Script to create new directory with date
Hi,
I'm trying to write a script which will take mysqldump from a server and put it in a directory with today's date. Here's the script i've written so far: Code:
#!/bin/sh Thanks. |
WHy don't you just use $NOW for the directory name and then output to $FILE as you've been doing?
FILE=$BACKUP/$NOW/mysql-$db.$NOW.sql.gz |
Quote:
Check out http://sourceforge.net/projects/automysqlbackup/ it's a great way to automate MySQL dumps and rotate them... |
Quote:
---------- Post added 04-22-11 at 03:14 AM ---------- Quote:
|
All times are GMT -5. The time now is 07:11 PM. |