Firefox 16, a treat for developers http://t.co/cnd27CzT
Install BackupPC server in Centos|Rhel|Fedora
BackupPC is an entirely disk-based backup and recovery system. It offers a number of advantages, some of which are available only with BackupPC,
Backuppc Support any client OS and has a Web interface to allows user control of and access to backups
How BackupPC Works
The BackupPC model has one user per client. This fits the usage pattern of the type of environment it was specifically designed for: backing up several users’ PCs (hence the name). This should typically be the user who owns the data on the machine. In the case of a large file server, it should be an administrator. BackupPC emails the owner if it cannot back up the client after a configurable time, and the owner can control restores using the web interface. The following list describes how BackupPC works.
Now we will show you how install Backup pc on Centos/Rhel/Fedora, the current installation is done on a machine with CentOS 5.2 installed, but it work also for fedora and RHEL.
Open your terminal, and under root type :
yum install perl-Compress-Zlib perl-Archive-Zip perl-File-RsyncP perl-XML-RSS httpd
rpm -Uvh http://dev.centos.org/centos/5/testing/i386/RPMS/backuppc-3.1.0-1.el5.centos.i386.rpm
1- Add user backuppc to your machine, User backuppc will be created upon installation. Change apache user to backuppc.
vi /etc/httpd/conf/httpd.conf
Change ‘User apache‘ to ‘User backuppc
Save
2- Edit file /etc/httpd/conf.d/backuppc.conf
# vi /etc/httpd/conf.d/backuppc.conf
change ‘Allow from 127.0.0.1‘ to ‘Allow from all‘
Save
3- Create password for cgi-bin admin user
# htpasswd -c /var/lib/backuppc/passwd/htpasswd admin
4- Edit backuppc config file
# vi /etc/BackupPC/config.pl
Find and change accordingly
$Conf{ServerHost} = 'localhost';
$Conf{SplitPath} = '/usr/bin/split';
$Conf{CatPath} = '/bin/cat';
$Conf{GzipPath} = '/bin/gzip';
$Conf{Bzip2Path} = '/usr/bin/bzip2';
$Conf{BackupPCUser} = 'backuppc';
$Conf{TopDir} = '/var/lib/backuppc';
$Conf{ConfDir} = '/etc/BackupPC';
$Conf{LogDir} = '/var/log/BackupPC';
$Conf{InstallDir} = '/usr';
$Conf{CgiDir} = '/usr/share/backuppc/cgi-bin';
$Conf{ServerInitdPath} = '/etc/init.d/backuppc';
$Conf{ServerInitdStartCmd} = '$sshPath -q -x -l root $serverHost$serverInitdPath start';
$Conf{SshPath} = '/usr/bin/ssh';
$Conf{NmbLookupPath} = '/usr/bin/nmblookup';
$Conf{PingPath} = '/bin/ping';
$Conf{CgiAdminUsers} = 'admin';Save
5- Grant passwordless sudo for user backuppc to run /bin/gtar and /bin/tar
# visudo
Add these entries :
Defaults !lecture # to disable lecture
backuppc ALL=NOPASSWD:/bin/gtar,/bin/tar # enable user backuppc to run /bin/tar and /bin/gtar without authentication.
Comment this entry
#Defaults requiretty
Save and exit
Restart apache and backuppc service
# /etc/init.d/http restart# /etc/init.d/backuppc restart
Open your browser and point it to ‘http://backuppc_server_ip/backuppc‘ and you should see the backuppc web interface
After this, you have to do almost all the configuration through the web interface. To test, you can run localhost backup first. You have to create the host, fill up all the setting and you are ready to go. Record the host and ip in /etc/hosts.
II Client setup
1 – Create new user
# useradd backupuser# passwd backupuser2- Grant passwordless sudo for user backupuser
# visudoAdd these entriesDefaults !lecture # to disable lecture
backupuser ALL=NOPASSWD:/bin/gtar,/bin/tar # enable user backuppc to run /bin/tar and /bin/gtar without authentication.
Comment this entry
#Defaults requiretty
Save3- From the server using backuppc user, create ssh public key
# su -s /bin/bash backuppc$ mkdir .ssh$ chown backuppc.backuppc .ssh$ chmod 700 .ssh$ ssh-keygen -t rsa$ ssh-copy-id -i .ssh/id_rsa.pub backupuser@client4 – To make sure that the 3rd step is a success, try to ssh to backupuser@client using backuppc user from the server. If no password is asked, then you are ready.
# su -s /bin/bash backuppc$ ssh backupuser@clientYou can start entering the client to the list of host and start backing up :)
If something didnt work , please post it in the forum
If you need support to install Backup pc on Ubuntu, just post your request in the comment bellow.
{loadposition user9}
Related Articles By Tags :
{loadposition user1}
For questions please refer to our Q/A forum at : http://ask.unixmen.com
-
-
-
-
-
-
http://enteryoursiteURL...
-
http://enteryoursiteURL...
-
-
-
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Install and Configure Samba share in Ubuntu 13.04 Raring Ringtail , 12.10, 12.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comment(s) |
How to use Remote Desktop in Ubuntu : Sometimes, we need to access our computer from other locations when we’re not at home and such. This...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Recent Posts
- How to find Default Gateway in Linux
- Setup Backup server using rsnapshot on RHEL / CentOS / Ubuntu / Debian
- How to disable/change default PDF viewer in Mozilla Firefox
- Dictionaries in Python
- How to Install uTorrent Client on Ubuntu/Debian/Linux Mint
- Lists in Python
- Argument Handling in Python
- Setup your own Wikipedia like website using MediaWiki
- Administer your Server using Ajenti Server Manager
- “Brand New” Unixmen Forum is Now Live!
Recent Comments




















Ladi Oyekanmi
| #
Could you please assist in step by step on how to install nagios on solaris
Adhraa
| #
Greate tutorial :)
pigmej
| #
Just one thing:
What about pep8 in your python code ? How can you give ‘tutorials’ on quite popular website, of such a bad quality ?
Amit Rai
| #
I just renamed shared.xml and it logged in and created a new shared.xml.
DB Griffin
| #
Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!
If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.
Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!