I've been investigating using rsync to backup my Astlinux box on a regular
schedule from a remote client.  I have it working from my Apple Mac with no
changes to the Astlinux box. The command I use to accomplish this is...
rsync -avz -e "ssh -p<my-port#>"
<user>@<my-Astlinux-ip-addr>:/oldroot/mnt/asturw
 /Users/david/Documents/Astlinux

working nicely, except that I want to automate it which won't work as long
as it asks for my ssh password.

BTW... user could be "root" which is what I am using for test purposes. And
the only reason I need -p<my-port#> is because I have moved ssh away from
port 22.

As for password, I found through the wonders of google that I can create an
ssh security key, and then send the public key to the astlinux box. I did
this... placed the public key in to /root/.ssh/authorized_keys and then
modified the above command to...

rsync -avz -e "ssh -p<my-port#> -i <my-private-key-file>"
<user>@<my-Astlinux-ip-addr>:/oldroot/mnt/asturw
 /Users/david/Documents/Astlinux

And now it runs rsync without prompting for password. Nice.

OK, now for the question... I can't see where this authorized_keys file is
getting saved onto my Unionfs partition. Therefore I am wondering whether it
will survive a reboot (I've not tried it, because I'm testing on the box
that I am connected to the internet through).

Can you tell me if root's home directory is saved to Unionfs.  If not, then
if I create another user (how would I do that?) will its home directory get
saved to Unionfs.  And/or if that won't work is there a config file
somewhere that I can tell ssh to look somewhere other than /<user>/.ssh/ for
the keys?

Thanks
David
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to