Saturday, November 20, 2010

Rsync Done, LPIC and Minecraft

Friday I began looking at the IBM docs that Matt was talking about. I couldn't get to read them earlier since I was working on that backup system. I didn't get to read much but it is really short and if Matt could pass with it then I think I could...

So at the moment I'm reading those docs and I'm waiting on Devin to get the server ready so I can deploy that rsync script. I talked to him on Friday and he said he would give me an e-mail when it's ready.

I also played around with Fedora a bit... I have a computer at home that I use as a server that is running Fedora for the LPIC. I had to "make" a program and I had some missing dependencies(How am I supposed to know what you want?). I installed 2 different things (using yum!) and one after another I found another dependency so I just did a "groupinstall" in yum and I hope I finally nailed it. In a real environment I would do that but I was a bit "flustered" with Fedora (WHAT'S THAT? YOU WANNA INSTALL SOMETHUN? GOTTA USE ROOT! NO SUDO FOR YOU!) so I didn't want to deal with it. I also learned some things about being an admin on a game server (witch hunts) but that something else...

Wednesday, November 17, 2010

Script Ready (Essentially)

Monday and Tuesday I worked on getting key based authentication ssh. I had to generate a private and public key on the source machine using ssh-keygen. You have to copy the pubkey from the source to the target and in the sshd config enable key based authentication (In Ubuntu it seems to be on by default). Once that is done you can ssh in from the account that created the key into the account that holds the pubkey.

So Wednesday Matt helped me with rsync. The two echo commands are from another script I found on the internets. As you can see the the script runs the rsync command and makes a log of what happened and appends the date to it. I included comments with what the parameters do since there are so many.

#!/bin/bash

echo $’\n\n’ >> rsync.log
rsync -avzogtph /home/sysadmin/stuff/ sysadmin@192.168.125.101:/home/sysadmin/backup/
echo “Completed at: `/bin/date`” >> $LOGFILE

#-a archive mode
#-v verbose
#-z compress
#-o preserve owner (super-user only)
#-g preserve group
#-t modification times
#-p preserve permissions
#-h human readable

I will talk to Devin about getting it set up.