Welcome! » Log In » Create A New Profile

cron and rdiff-backup

Posted by Anonymous 
cron and rdiff-backup
April 12, 2004 01:41PM
I have rdiff-backup installed working backing up a from one machine to another. However I must do it manually. I want to cron this so it happens automatically. I think I have the scheduling part w/ cron figured out. How do I script rdiff so that it will login to the remote machine with out pausing to ask for a password.

paul
cron and rdiff-backup
April 12, 2004 03:19PM
On Mon, Apr 12, 2004 at 03:40:57PM -0600, Paul Steamboat wrote:
[quote]I have rdiff-backup installed working backing up a from one machine to another. However I must do it manually. I want to cron this so it happens automatically. I think I have the scheduling part w/ cron figured out. How do I script rdiff so that it will login to the remote machine with out pausing to ask for a password.
[/quote]
Read up on ssh keys, which will let you log in from one system to
another without logging in with a password. The readers digest version
goes something like this:
- run 'ssh-genkeys -t dsa', set up keys without passwords
- add your .ssh/id_dsa.pub contents to the .ssh/authorized_keys file on
the remote server
- you can now run 'ssh user < at > remotehost' and login without a password
- rdiff-backup won't prompt you anymore

alan

--
Alan <alan < at > ufies.org> - http://arcterex.net
--------------------------------------------------------------------
"There are only 3 real sports: bull-fighting, car racing and mountain
climbing. All the others are mere games." -- Hemingway
cron and rdiff-backup
April 12, 2004 03:21PM
Use the ssh keys to provide the password less login.

Paul Steamboat wrote:
[quote]I have rdiff-backup installed working backing up a from one machine to
another. However I must do it manually. I want to cron this so it
happens automatically. I think I have the scheduling part w/ cron
figured out. How do I script rdiff so that it will login to the remote
machine with out pausing to ask for a password.

paul

------------------------------------------------------------------------

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki[/quote]
cron and rdiff-backup
April 12, 2004 03:59PM
On Mon, 12 Apr 2004, Paul Steamboat wrote:

[quote]I have rdiff-backup installed working backing up a from one machine to
another. However I must do it manually. I want to cron this so it
happens automatically. I think I have the scheduling part w/ cron
figured out. How do I script rdiff so that it will login to the remote
machine with out pausing to ask for a password.
[/quote]
http://arctic.org/~dean/rdiff-backup/unattended.html

-dean
cron and rdiff-backup
April 13, 2004 08:44AM
I have all the great advice and the helpful websites and I am working on it.
I need to get some billable work done and will be back at it again this
afternoon.
One question, in the artic.org unattended.html they use "mirror" and
"primary" as the computer names, I am assuming that I need to substitute the
actual computer names or should I use the IPs?

thank again
paul

----- Original Message -----
From: "dean gaudet" <dean-list-rdiff-backup < at > arctic.org>
To: "Paul Steamboat" <wally < at > triphi.com>
Cc: "rdiff-backup-users" <rdiff-backup-users < at > nongnu.org>
Sent: Monday, April 12, 2004 4:46 PM
Subject: Re: [rdiff-backup-users] cron and rdiff-backup

[quote]On Mon, 12 Apr 2004, Paul Steamboat wrote:

[quote]I have rdiff-backup installed working backing up a from one machine to
another. However I must do it manually. I want to cron this so it
happens automatically. I think I have the scheduling part w/ cron
figured out. How do I script rdiff so that it will login to the remote
machine with out pausing to ask for a password.
[/quote]
http://arctic.org/~dean/rdiff-backup/unattended.html

-dean
[/quote]
cron and rdiff-backup
April 13, 2004 11:27AM
substitute actual names.

you can name things whatever you want in your .ssh/config "Host foo"
line... it doesn't have to exist -- it just becomes a macro for use in ssh
commands... that's why i place a "Host primary-backup" line in there,
primary-backup doesn't exist as a dns name, but primary does (and hence
the "hostname primary" line in the config example).

-dean

On Tue, 13 Apr 2004, Paul Ackerman wrote:

[quote]I have all the great advice and the helpful websites and I am working on it.
I need to get some billable work done and will be back at it again this
afternoon.
One question, in the artic.org unattended.html they use "mirror" and
"primary" as the computer names, I am assuming that I need to substitute the
actual computer names or should I use the IPs?

thank again
paul

----- Original Message -----
From: "dean gaudet" <dean-list-rdiff-backup < at > arctic.org>
To: "Paul Steamboat" <wally < at > triphi.com>
Cc: "rdiff-backup-users" <rdiff-backup-users < at > nongnu.org>
Sent: Monday, April 12, 2004 4:46 PM
Subject: Re: [rdiff-backup-users] cron and rdiff-backup

[quote]On Mon, 12 Apr 2004, Paul Steamboat wrote:

[quote]I have rdiff-backup installed working backing up a from one machine to
another. However I must do it manually. I want to cron this so it
happens automatically. I think I have the scheduling part w/ cron
figured out. How do I script rdiff so that it will login to the remote
machine with out pausing to ask for a password.
[/quote]
http://arctic.org/~dean/rdiff-backup/unattended.html

-dean

[/quote]

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
[/quote]
Sorry, only registered users may post in this forum.

Click here to login