"CentOS" deploys open source Enterprise Linux Backup tool-BACKUPPC

Source: Internet
Author: User
Tags backuppc

BACKUPPC installation of the main installation package required: Http://pan.baidu.com/s/1bnCGCY7 (BACKUPPC version is 3.2.1)

(This version of BACKUPPC is supported in Chinese, BACKUPPC can be set in its web page after it is configured.)

1. Add BACKUPPC Group and user

Groupadd BACKUPPC

Useradd-g BACKUPPC BACKUPPC

2. Installation of httpd, Mod_perl and BACKUPPC

Yum Install httpd Mod_perl

(The following installed BACKUPPC and perl* are in the previous download package)

RPM-IVH backuppc-3.2.1-10.el6.i686.rpm

RPM-IVH perl-*

3. Set Page access rights

Vim/etc/httpd/conf.d/backuppc.conf

The contents of the amendment are as follows :

# htpasswd-c/etc/backuppc/apache.users yourusername

Order Allow,deny

Allow from all--changes the Deny from

#allow from 127.0.0.1 114.255.58.130

AuthType Basic

Authuserfile/etc/backuppc/apache.users

AuthName "BackupPC

Require Valid-user

</Directory>

alias/backuppc/images/usr/share/backuppc/html/

Scriptalias/backuppc/usr/share/backuppc/sbin/backuppc_admin

4. User/Group to change directory

Chown-r BACKUPPC:BACKUPPC/ETC/BACKUPPC

Chown-r BACKUPPC:BACKUPC/VAR/LIB/BACKUPPC

5. Edit the BACKUPPC master configuration file

$Conf {Cgiadminusers} = ' BackupPC '; --"Find $conf{cgiadminusers} after which add BACKUPPC

6. Establish user authentication files

Htpasswd-c/etc/backuppc/apache.users BackupPC

New password:1234

Re-type New password:1234

Adding Password for user BackupPC

7. Start Apache service and set run Level 3 self-boot

Service httpd Start

Chkconfig–level 3 httpd on

8. Set BACKUPPC user to run the specified command

Run: Visudo

Modify the following:

# #查到到 Defaults Requiretty, and comment it out

# #并加入以下两行信息.

Defaults!lecture

BACKUPPC All=nopasswd:/bin/gtar,/bin/tar

9. Windows Client Configuration

Install Cygwin-rsyncd-3.0.9.0_installer (available in download package)

After installation, modify the rsyncd.conf configuration file

#

[cdrive]--] is consistent with the information in the location

Path =/cygdrive/"drive letter to be backed up"/

Read Only = True

Transfer logging = no

#auth users = Backup

#secrets file = passwd

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/2F/72/wKiom1Of_CTgdgLkAAEmg0PLIvw060.jpg "title=" QQ picture 20131120171131-500x284.jpg "alt=" Wkiom1of_ctgdglkaaemg0plivw060.jpg "/>

Once the above configuration is complete, you can start backing up


Several frequently asked questions in the BACKUPPC use:


1. When you start a full backup, you cannot start the backup normally, and you will be prompted with the following error:

The Can ' t call method "GetStats" on a undefined value at/usr/share/backuppc/bin/backuppc_dump line 1160.

Workaround:

# Vim/usr/share/backuppc/bin/backuppc_dump

Find its 1159 rows with the following contents:

if ($type eq "full") change it to: if ($type eq "full" && defined ($xfer))


2. When mounting other disks to the BackupPC backup directory (/VAR/LIB/BACKUPPC), the BackupPC service fails to start, prompting the following error:

Can ' t create a test hardlink between a file in/var/lib/backuppc/pc And/var/lib/backuppc/cpool

Workaround:

1) After mounting, create a new 4 folder in the BACKUPPC directory: Cpool, PC, pool, trash

Method of Creation: Mkdir/var/lib/backuppc//pc/var/lib/backuppc//cpool/var/lib/backuppc//pool/var/lib/backuppc//trash

(Note: What I wrote above is not wrong, a lot of one/is not saved, otherwise there will be other errors (later in the PC data backup, will not be able to browse their backup data information, as well as the log generated when the backup). )

2) Set the permissions of the 4 folders it created to Backuppc:chown-r BACKUPPC:BACKUPPC cpool pc Pool Trash


This article is from the "Nowsun" blog, make sure to keep this source http://nowsun.blog.51cto.com/522159/1427347

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.