Ok so I've decided I want to write a script that

1. connect to samba share

2. Create folder by date (YYYY-MM-DD)

3. locks the tables on mysql so no changes can be made (I think this is
one of the switch commands in mysqldump)

4. runs mysqldump and stores the output into a file named by database

5. zip the file (gzip or bz2 don't care)

6. store the copied file to samba share

7. remove local copy

8. unmount samba share

Now my problem is I've never written a shell script and don't know how.
Or even where to start



____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to