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.
I'm just after some advice with using NFS or SCP for a remote database backup using a cron job. I have a script running on my database server that backs up
the database and copies it to another server. From the other server I
then tar the backup to a tape drive connected to it. My first option is
to use an empty dsa key so I can scp without a password, Within the
script I can also ssh into the other server and run the tar command.
The second option is to have an NFS share on the other server and copy
the backup to that directory. However this means that I can't remotely
run a tar command, and I would need a cron job on both servers.
I would like to run everything in one script, but would it be better to use
NFS? Internal security isn't a big issue, and I can't connect the tape
drive directly to the database server.
As trickykid and scissors recommended, rsync over ssh is a good option. If you don't like using empty keys for authentication, then you can use ssh-agent to store the keys.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.