Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hai..
Iam having two servers with redhat9.0 loaded on both.Iam using mysql as my database.One server is being kept as a backup server.
My problem is that ,I want a script which is to be executed in such a way that it takes bakup of my database automatically in the scheduled time and transfer it to my backup server.
In nutshell how to execute a script on a scheduled time say 5:00 PM every day,and how to transfer it to another machine which in the network.
Expecting ur valuable suggestions
With regards
Hari
Ok so scheduleuing can be done using crond ,but is it posible to copy a particular file to another network machine (also rh9.0) automatically i mean in the same script .i.e once backup is taken in the scheduled time i want to copy that to another machine automatically.
Ok so scheduleuing can be done using crond ,but is it posible to copy a particular file to another network machine (also rh9.0) automatically i mean in the same script .i.e once backup is taken in the scheduled time i want to copy that to another machine automatically.
I would share out the destination folder of your other RH9 machine and mount it on your primary RH9 machine where the database files reside. Then it's a simple matter of copying the files to the shared partition.
That's exactly how I back up my mail archive files on a weekly basis.
but as iam a newbie in linux i couldnt get all that u ve said .how can i share it did u mean by using SAMBA server or anything like that.and oce its shared how to mount it..
Originally posted by Haric but as iam a newbie in linux i couldnt get all that u ve said .how can i share it did u mean by using SAMBA server or anything like that.and oce its shared how to mount it..
You need to run a service called "nfs" on the machine that shares out the partition. Samba is for sharing your Linux partitions with Windows clients. Between Linux machines, all you need is NFS ("nfs").
Once you have your destination folder shared out on the second machine, you use the "mount" command on the primary machine to mount it. For instance:
Code:
# mount -t nfs rh9-2:/share /mnt/share -o rw
This mounts the shared folder "/share" of your second machine (which I arbitrarily call "rh9-2") on your primary machine as /mnt/share. If you're familiar with Windows folder sharing, it's something like this:
Code:
C:\> net use m: \\rh9-2\share
Run "man mount" to see more details about the "mount" command.
Here is a Linux-Gazette article which contains a mysql backup script using a php script. If you use something like this, make sure that the script is not world readable, since it contains passwords.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.