Web Hosting Talk







View Full Version : Plesk Backup Question..


LCHwebHost
10-09-2003, 11:56 PM
Hi,
Does anyone know how I can do the following.

I want to run a backup on one server, but instead of storing the file locally on that server I want to have it saved directly to my backup server. Ok so these are the command I use

The backup Command:
/usr/local/psa/bin/psadump -F -f - --tar-ignore-failed-read --nostop > /backup/plesk1

The transfer command (this transfers a local file to another server)

scp -r /home2/plesk1 root@11.111.111.1:/backup/

Could I do it using those 2 commands? Or is there another command I could use that would do that? Any help would be appericated - thanks guys!

LCHwebHost
10-10-2003, 12:29 AM
Ok this command works:

ssh root@hostname /usr/local/psa/bin/psadump -F -f - --tar-ignore-failed-read --nostop > /home2/plesk1

But is there a way I can save the password so I can have it automaticly run in and I can put this in a cron?

John[H4Y]
10-10-2003, 02:04 AM
Yes you can use public/private keys.

Here is a link to a page explaining it. If it confuses you, try searching google for "ssh without password". You will see a lot of articles:

http://moin.godoy.homeip.net:81/moin/moin.cgi/SSH_20access_20without_20password#head-23de7e84ba939e509172ed5c7fdbda2244c63905

LCHwebHost
10-10-2003, 03:12 AM
Thanks, however if I use that any user with SSH access would be able to access one of the other servers root SSH without a password right?