SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
backing up with rsync on linux clients
Author Message
Post backing up with rsync on linux clients 
How does the rsync backup on Linux clients validate the ssh connection? I can’t figure out how to get the password for the connection into the command line.
Also, has anyone tried backing up a Mac OSX box?
Phillip M. Bryant
ITT Industries, Advanced Engineering and Sciences
Network Administrator
Albuquerque, NM 87120
Ph 505-889-7016
Cell 505-385-8668
MCSE 2000, NT 4.0
MCP+I

Post backing up with rsync on linux clients 
On 03/08 05:15 , Bryant, Phillip -AES wrote:
How does the rsync backup on Linux clients validate the ssh
connection? I can't figure out how to get the password for the
connection into the command line.

You don't need a password. Just set up passwordless authentication using DSA
public keys.

basically, run:
ssh-keygen -t dsa

then take the ~/.ssh/id_dsa.pub file, put it on the remote machine in the
.ssh subdirectory of the home directory of the user you want to log in as;
and rename it to authorized_keys.
(so ~/.ssh/authorized_keys)

make sure that your /etc/ssh/sshd_config file allows public-key logins (so
you'll need "RSAAuthentication yes").

if you're going to log in as root (the default and simplest way.. tho there
are more secure methods); you'll also need to enable root logins in your
sshd_conf. (I guess most distros leave this on, tho around here we turn it
off for security reasons. you should log in as an ordinary user and then su
to root).

test this all out by trying to ssh (as the user that backuppc runs as) to
the remote box. it should just log you in. if you're having problems;
consult your system logs on the remote side, and do 'ssh -v user < at > host' to
get more debugging info.

Carl Soderstrom.
--
Systems Administrator
Real-Time Enterprises
www.real-time.com


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post backing up with rsync on linux clients 
Carl Wilhelm Soderstrom wrote:

You don't need a password. Just set up passwordless authentication using DSA
public keys.
...
if you're going to log in as root (the default and simplest way.. tho there
are more secure methods);
...
If you don't want to use passwordless authentication, you can use
ssh-agent. Look at :
- Keychain http://www.gentoo.org/proj/en/keychain.xml and
http://www-106.ibm.com/developerworks/linux/library/l-keyc.html
- http://www.akadia.com/services/ssh_agent.html
- http://www.wlug.org.nz/SSHKeys

Then you tell BackupPC to use a little script like

/home/backuppc/ssh-auto :
#!/bin/sh
. /home/backuppc/.ssh-agent-info
/usr/bin/ssh -q "$ < at > "

instead of ssh. (Just change the "SshPath" parameter from config.pl)



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post backing up with rsync on linux clients 
I'm getting good backups of my PowerBook running OS X 10.3.2. I'm using=20=

the following per-PC configuration file:

$Conf{XferMethod} =3D 'rsync';
$Conf{RsyncShareName} =3D '/Users';
$Conf{BackupFilesExclude} =3D ['Applications', 'iTunes Music', 'Virtual=20=

PC List'];

The iTunes and VPC entries in the exclude statement reduce the backup=20
size by about 50%. I'm using rsync over ssh. This means you'll need to=20=

activate the the ssh server (Remote Login in the Sharing section of=20
System Preferences) and then setup the shared ssh keys as described in=20=

the previous responses as well as the documentation page which outlines=20=

the setup of ssh keys. The only problem I run into is that I tend to=20
have a lot of junk on my hard drive (right now there is about 20 GB of=20=

data on my drive for some DVDs that I'm making. I simply need to get a=20=

good place to organize my data that I don't want backed up on the=20
backup server.

Steve

On Mar 8, 2004, at 4:15 PM, Bryant, Phillip -AES wrote:
How does the rsync backup on Linux clients validate the ssh=20
connection? I can=92t figure out how to get the password for the=20
connection into the command line.

Also, has anyone tried backing up a Mac OSX box?



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post backing up with rsync on linux clients 
I too am backing up OS X clients w/out a problem now. I switched to tar =20=

but I'll go check out rsync again. However I had some key excludes I =20
needed to add in addition to what you've got to make things work:
$Conf{BackupFilesExclude} =3D =20
['/Network','/private/var/automount','/private/var/run','Caches','/=20
Trash','/dev','/Developer','/Users/Tina/Music','/Applications'];
-Lorrin

On Mar 14, 2004, at 10:35 AM, Steve Waltner wrote:

I'm getting good backups of my PowerBook running OS X 10.3.2. I'm =20
using the following per-PC configuration file:

$Conf{XferMethod} =3D 'rsync';
$Conf{RsyncShareName} =3D '/Users';
$Conf{BackupFilesExclude} =3D ['Applications', 'iTunes Music', =
'Virtual =20
PC List'];

The iTunes and VPC entries in the exclude statement reduce the backup =20=

size by about 50%. I'm using rsync over ssh. This means you'll need to =
=20
activate the the ssh server (Remote Login in the Sharing section of =20=

System Preferences) and then setup the shared ssh keys as described in =
=20
the previous responses as well as the documentation page which =20
outlines the setup of ssh keys. The only problem I run into is that I =20=

tend to have a lot of junk on my hard drive (right now there is about =20=

20 GB of data on my drive for some DVDs that I'm making. I simply need =
=20
to get a good place to organize my data that I don't want backed up on =
=20
the backup server.

Steve

On Mar 8, 2004, at 4:15 PM, Bryant, Phillip -AES wrote:
How does the rsync backup on Linux clients validate the ssh =20
connection? I can=92t figure out how to get the password for the =20
connection into the command line.

Also, has anyone tried backing up a Mac OSX box?



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB