MLUG: Re: [MLUG] backup of home dir..
Re: [MLUG] backup of home dir..
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rsync is a good way to do it.  The only thing is the password issue. 
But you can get around that as follows.  On the computer you want to run
rsync, in your account, you type
ssh-keygen
When it asks for a pass-phrase, leave it blank.  This will create a file
called .ssh/identity.pub

Then go to the computer you want to ssh to.  Edit the file
.ssh/authorized_keys, and append to it whatever was in .ssh/identity.pub
on the other computer.

Now, you should be able to ssh from the first computer to the second
without typing a password.  (This may not work under certain
circumstances.)

Then you use the crontab command to create a cron job that runs rsync at
whatever time you are interested.

Read the man pages about crontab and rsync and ssh, and it will tell you
all about this - but I am sure that we will help if you get stuck.

Oh, maybe rsync won't work.  You would have to run rsync from bengal and
it is possible that you will not be allowed to create a crontab file.

Also, if you don't like that if someone can break into your bengal
account that they can then break into your other account - you could set
up anonymous rsync on your machine, and use tcp_wrappers to keep
everyone else out.

"Lloyd, Jamie" wrote:
> 
> What would be the most easiest way of backing up a specified directory from
> my personal Linux box
> to my account on bengal?  RSYNC ??  or what?  Perl?  Python script?
> 
> I need to be able to copy contents  from dir of one machine to dir of
> another machine every night
> at a specified time.
> 
> Thanks for the help.
> 
> Jamie
> 
> --
> To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
> 
> Archives are available at http://mlug.missouri.edu/list-archives/

-- 
Stephen Montgomery-Smith
EMAIL:PROTECTED
http://www.math.missouri.edu/~stephen
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/