[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[K12OSN] Huck's backuppc howto(long post)

This method was used by me to get backuppc working(my first time)
I will likely be building out a server specifically for this task in the near future,
but with Les's constant plugs for the software I had to try it and it worked!
(not without the headaches which hopefully you'll be able to avoid by this guide)

Installation of BackupPC on Debian 30r1
and using *rsync* as the method of backup


Boot up off the debian cd...(only need #1 to do a network install)


     Follow the installation requirements to the point where it asks if
     you want to run tasksel...(hit yes here)


     Install the 1^st two options for the Xwindows Environment and
     Desktop do NOT answer yes to the web server.


Finish with install.(don't forget to create a “normal user”)


Now...I had to edit /etc/apt/apt.conf and add this line:

/APT::Cache-Limit 10000000;/


     then I needed to make my apt source use 'unstable' editing

on the first line you should have something like this:

deb http://ftp.us.debian.org/debian stable main non-free contrib

change the '/stable/' to '/unstable/'


/*apt-get update*/


/*apt-get dist-upgrade*/


now to install the nifty perl modules using CPAN:

/*perl -MCPAN -e -shell*/

install Compress::Zlib, Archive::Zip, File::RsyncP <file:///RsyncP>


now to install apache2 using apt-get

/*apt-get install apache2*/


then install backuppc using apt-get

/*apt-get install backuppc*/


     here I rebooted to get the graphical login(I'm sure someone with
     more guru-ness has a better way...but this worked for me)


     login with the 'normal user' you created on installation and
     launch mozilla and attempt to go to http://localhost/backuppc and
     see if you get the lovely

web-ministration page(you should)


now to add a host to the /etc/backuppc/hosts file.

Do as the comments in the file tell you(very straight forward)


     now you'll have to edit /etc/passwd and /etc/passwd- files so that
     the user 'backuppc'

     gets a login...at the end of the files a line starting with
     backuppc:x:...and ending with /bin/false just change the '/false/'
     to '/bash/'...and save the files...


now you can */su - backuppc/*


     /*ssh-keygen -t dsa */<hit enter 3 times> Your public key has been
     saved in <path>)...pay attention to this path...you'll need it for
     the command below.


     ssh-copy-id -i <the path from above> root the <mailto:root the>
     name of the machine you put in the 'hosts' file


     now...you have the passwordless ssh ready...you have the hosts
     file ready...now you need to edit the /etc/backuppc/config.pl file
     to tell it what you want backed-up and how.

     the link above is a good resource...under the Linux/Unix section
     and rsync sub-section you can see the relevant settings you need
     to change in config.pl...


     after all that is set...you should be able to login via the
     http://localhost/backuppc and choose the host you'd like to backup
     and it aughta work!(unless I forgot something =)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]