Fribse
2005-11-07 11:45:01 UTC
Hi Guys
I'm not really using perl for anything interesting, except doing a
backup of mysql with the mysqlhotcopy script.
As far as I understand the script, I can only backup one database at a
time with it, so the different databases I have running, needs a
seperate script calls.
How do I accomplish running the scripts in sequence, and how do I make
perl close the window after itself?
I've put this in an .ncf file:
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
phpgedview web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
videodb web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
fribertchat web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
intranet web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
mysql web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
phpmyadmin web:/mysqlbk --user=* --password=* --allowold
But that just opens 6 parallel backup jobs, and leaves 6 windows open
:-)
I'm not really using perl for anything interesting, except doing a
backup of mysql with the mysqlhotcopy script.
As far as I understand the script, I can only backup one database at a
time with it, so the different databases I have running, needs a
seperate script calls.
How do I accomplish running the scripts in sequence, and how do I make
perl close the window after itself?
I've put this in an .ncf file:
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
phpgedview web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
videodb web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
fribertchat web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
intranet web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
mysql web:/mysqlbk --user=* --password=* --allowold
load address space=mybackup perl sys:/mysql/scripts/mysqlhotcopy.pl
phpmyadmin web:/mysqlbk --user=* --password=* --allowold
But that just opens 6 parallel backup jobs, and leaves 6 windows open
:-)
--
/Fribse
/Fribse