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.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
I've done something similar on Solaris that is transferable. I choose not to allow rsh, rlogin, etc. or telnet. Everything has to be done using ssh. So, in my backup script, I may have a command like:
Code:
su - backup -c "ssh ${TAPESERVER} \"mt -f ${TAPDEV} status\"" 2>&1 | tee -a ${STATFILE};
Then I can examine the output of the remote mt command by looking at the contents of ${STATFILE}.
Note that the dump is inside a subprocess so that I can capture the status code, and its output is piped to the su to the user backup which ssh's to the other server. There, the data coming in through the pipe is sent through dd to the tape drive. This is for a DDS/3 tape drive. The script and the dumps run as root. The ssh to the other server is as the user backup. In order for this to work, I set up certificates for the user backup to automatically login to the other server. Root is not allowed to login from another server.
The same technique would work with mtx. You would be using the mt and the mtx on the server where the autoloader is.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
Unfortunately, I seriously doubt it does. There is no reference or syntax in the man pages for mtx for doing so. That was why I offered an alternative. Typically, backup software has a storage process running on the machine that has the tape library, and it is that process that receives communications and data from other machines on the network. By by running a remote command via ssh on the other machine, my backup scripts achieve the same thing.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
I should point out that at some point the burden of developing/maintaining scripts and keeping up with your needs in terms of capabilities will become too much. Then you will want to adopt a real backup program. I reached that point about 2 years ago and adopted Amanda. I now have a tape library that uses AIT5 and I don't have to change tapes anymore. It just runs, and all my servers get backed up every day. Budget considerations for a library can, of course, be an issue. There is still one department that is running my scripts, and each of their servers (except one) has its own DDS/3 tape drive. The Jr. Admin in that department has to run around changing tapes several days a week, and the capacity is still inadequate to completely cover their servers. I developed the scripts over a period of a couple of years and spent a fair bit of time on them. The same script runs on all the servers with a config file. The server without a tape drive recognizes that the tapeserver is another machine and uses ssh to get to the remote machine. Lots of tweaking, logging, and error checking. Nevertheless, it ended up being less overall effort and far more gratification setting up Amanda.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.