Re: [SLUG] shell script, how to pass date to output file name ?
Why not do mysqldump $(date +%b-%-d)-dump.sql alex On Mon, Aug 25, 2003 at 10:47:41PM +, Voytek Eymont wrote: I'm trying to dump data into a date-named file as in: mysqldump %dd%-%mm%-dump.sql so far I made an alias for today, but, supect I might not be heading in the right direction with it, so any pointers appreciated: # alias today='date +%b-%-d' Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug pgp0.pgp Description: PGP signature -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
Re: [SLUG] shell script, how to pass date to output file name ?
this is a snippet from my backup script. the $6-$2-$3 expands as (for example) 2003-Aug-26 Amanda set $(date) # if test $1 = Sun ; then # weekly a full backup of all data and config. settings: # first, backup Cadwal echo full backup Cadwal tar cfz /mnt/public1/public1/Backups/Cadwal/backup_home_full_$6-$2-$3.tgz $HOME Quoting Alexander Samad [EMAIL PROTECTED]: Why not do mysqldump $(date +%b-%-d)-dump.sql alex On Mon, Aug 25, 2003 at 10:47:41PM +, Voytek Eymont wrote: I'm trying to dump data into a date-named file as in: mysqldump %dd%-%mm%-dump.sql so far I made an alias for today, but, supect I might not be heading in the right direction with it, so any pointers appreciated: # alias today='date +%b-%-d' Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
[SLUG] shell script, how to pass date to output file name ?
I'm trying to dump data into a date-named file as in: mysqldump %dd%-%mm%-dump.sql so far I made an alias for today, but, supect I might not be heading in the right direction with it, so any pointers appreciated: # alias today='date +%b-%-d' Voytek Eymont -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug