日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

DBackup环境部署linux,linux_BackupPC 安装部署

發布時間:2025/3/8 linux 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 DBackup环境部署linux,linux_BackupPC 安装部署 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

yum install

perl-Compress-Zlib perl-Archive-Zip perl-File-RsyncP perl-XML-RSS

httpd

yum

-y install perl-suidperl?mod_perl

rpm?-ivh

backuppc_community-3.2.0beta0-1.rhel5.noarch.rpm

1- 上面安裝會創建backuppc,apache用戶。

vi

/etc/httpd/conf/httpd.conf

修改‘User apache‘ 為 ‘User backuppc

User apache

Group apache

2-?編輯

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

# vi

/etc/httpd/conf.d/backuppc.conf?--允許連接的地址

修改‘Allow from 127.0.0.1‘?為 ‘Allow

from all‘

#

# DESCRIPTION

#

#?This file controls access and

configuration for the BackupPC CGI

#?interface.

#

# Distributed with BackupPC version 3.1.1, released 22 Dec

2008.

#

# This section tells apache which machines can access the

interface.

# You can change the allow line to allow access from your

local

# network, or comment out this region to allow access from

all

# machines.

#

order allow,deny

#deny from all

allow from all

#

# You can change the authorization method to LDAP or another

method

# besides htaccess here if you are so inclined.?Comment out the lines

# below or create an htpasswd file called BackupPC.users in the

same

# directory as this file.

#

AuthType Basic

AuthUserFile /etc/httpd/conf.d/BackupPC.usersAuthName

"BackupPC Community Edition Administrative Interface"

require valid-user

order deny,allow

deny from none

allow from all

Alias?/BackupPC/images?/usr/lib/backuppc/www/images

ScriptAlias?/BackupPC_Admin?/usr/lib/backuppc/www/html/BackupPC_Admin

ScriptAlias?/backuppc?/usr/lib/backuppc/www/html/BackupPC_Admin

3- Create password for cgi-bin backuppc

user

# htpasswd -c /etc/httpd/conf.d/BackupPC.users

backuppc

--生成登陸密碼文件。

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} = 'backuppc';

Save

5- Grant passwordless sudo for user backuppc to

run /bin/gtar and /bin/tar

# visudo

--讓backup用戶,可以執行一些命令

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

重啟服務使生效。

# /etc/init.d/http restart

# /etc/init.d/backuppc restart

Open your browser and point it to

'http://IP/backuppc' and you should see the backuppc web

interface

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的DBackup环境部署linux,linux_BackupPC 安装部署的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。