User Tools

Site Tools


centos_nginx_backuppc4.x

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

centos_nginx_backuppc4.x [2018/02/15 17:49]
k2patel [Configuration]
centos_nginx_backuppc4.x [2020/08/10 02:35]
Line 1: Line 1:
-====== CentOS / Fedora + Nginx + Backuppc ====== 
  
-This combination gave me no documentation online, Recently Backuppc is available as SCGI Script version.\\ 
-I did not had luck setting that up, as nginx lack documentation for scgi. 
- 
-So let's get started, If you are here you might already know there is no packaged version of Backuppc 4.x available. I've decided to take shortcut and repackaged latest version available from fedora 27. 
- 
-Once you install the package you should be good to go, configuration and all needed files are in place. 
- 
-<code bash | Needed Packages>​ 
-yum install -y BackupPC-4.1.5-1.el7.x86_64.rpm BackupPC-XS-0.57-1.el7.x86_64.rpm rsync-bpc-3.0.9.11-1.el7.x86_64.rpm nginx 
-</​code>​ 
-<color red> 
-Optional : CPAN Module only needed if you are planning to use scgi version. 
-</​color>​ 
-<code bash | Needed CPAN Module> 
-cpan install SCGI 
-</​code>​ 
- 
- 
-==== Configuration ==== 
- 
-In configuration i've only changed few of the options to make it work under browser. 
- 
-<code diff| /​etc/​BackupPC/​config.pl>​ 
-@@ -41,7 +41,7 @@ 
- # 
- # Host name on which the BackupPC server is running. 
- # 
--$Conf{ServerHost} = '​localhost';​ 
-+$Conf{ServerHost} = '​backup.k2patel.in';​ 
-  
- # 
- # TCP port number on which the BackupPC server listens for and accepts 
-@@ -257,7 +281,7 @@ 
- # Full path to the df command. ​ Security caution: normal users 
- # should not allowed to write to this file or directory. 
- # 
--$Conf{DfPath} = '/​bin/​df';​ 
-+$Conf{DfPath} = '/​usr/​bin/​df';​ 
-  
- # 
- # Command to run df.  The following variables are substituted at run-time: 
-@@ -274,15 +298,15 @@ 
- # 
- # Full path to various commands for archiving 
- # 
--$Conf{SplitPath} = '/​bin/​split';​ 
--$Conf{ParPath} ​  = "/​usr/​bin/​par2";​ 
-+$Conf{SplitPath} = '/​usr/​bin/​split';​ 
-+$Conf{ParPath} = '/​usr/​bin/​par2';​ 
-  
--$Conf{CatPath} ​  = '/​bin/​cat';​ 
--$Conf{GzipPath} ​ = '/​bin/​gzip';​ 
--$Conf{Bzip2Path} = '/​bin/​bzip2';​ 
-+$Conf{CatPath} = '/​usr/​bin/​cat';​ 
-+$Conf{GzipPath} = '/​usr/​bin/​gzip';​ 
-+$Conf{Bzip2Path} = '/​usr/​bin/​bzip2';​ 
-  
- # 
--# Maximum threshold for disk utilization on the /​var/​lib/​BackupPC/​ filesystem. 
-+# Maximum threshold for disk utilization on the __TOPDIR__ filesystem. 
- # If the output from $Conf{DfPath} reports a percentage larger than 
- # this number then no new regularly scheduled backups will be run. 
- # However, user requested backups (which are usually incremental and 
-@@ -349,12 +373,12 @@ 
- # a symbolic link to the new location, or mount the new BackupPC 
- # store at the existing $Conf{TopDir} setting. 
- # 
--$Conf{TopDir} ​     = '/​var/​lib/​BackupPC/';​ 
--$Conf{ConfDir} ​    = '/​etc/​BackupPC/';​ 
--$Conf{LogDir} ​     = '/​var/​log/​BackupPC';​ 
--$Conf{RunDir} ​     = '/​var/​run/​BackupPC';​ 
--$Conf{InstallDir} ​ = '/​usr/​share/​BackupPC';​ 
--$Conf{CgiDir} ​     = '/​usr/​libexec/​BackupPC';​ 
-+$Conf{TopDir} = '/​var/​lib/​libvirt/​images';​ 
-+$Conf{ConfDir} = '/​etc/​BackupPC/';​ 
-+$Conf{LogDir} = '/​var/​log/​BackupPC';​ 
-+$Conf{RunDir} = '/​var/​run/​BackupPC';​ 
-+$Conf{InstallDir} = '/​usr/​share/​BackupPC';​ 
-+$Conf{CgiDir} = '/​usr/​libexec/​BackupPC';​ 
-@@ -1984,8 +2001,8 @@ 
- # ​   $Conf{CgiAdminUsers} ​    = 'craig celia';​ 
- # ​   --> administrative users are only craig and celia'​. 
- # 
--$Conf{CgiAdminUserGroup} = '';​ 
--$Conf{CgiAdminUsers} ​    = '';​ 
-+$Conf{CgiAdminUserGroup} = '​admin';​ 
-+$Conf{CgiAdminUsers} = '​admin';​ 
-  
- # 
- # TCP port number of the SCGI server. ​ A negative value disables the 
-@@ -2016,7 +2033,7 @@ 
- # Full URL of the BackupPC_Admin CGI script, or the configured path 
- # for SCGI.  Used for links in email messages. 
- # 
--$Conf{CgiURL} = "​http://​localhost/​BackupPC";​ 
-+$Conf{CgiURL} = '​https://​backup.k2patel.in/​cgi-bin/​BackupPC_Admin';​ 
-  
- # 
- # Full path to the rrdtool command. ​ If available, graphs of pool usage 
-@@ -2151,7 +2171,7 @@ 
- # Example: 
- # ​    ​$Conf{CgiImageDirURL} = '/​BackupPC';​ 
- # 
--$Conf{CgiImageDirURL} = '/​BackupPC/​images';​ 
-+$Conf{CgiImageDirURL} = '/​BackupPC';​ 
-  
- # 
- # CSS stylesheet "​skin"​ for the CGI interface. ​ It is stored 
-</​code>​ 
centos_nginx_backuppc4.x.txt ยท Last modified: 2020/08/10 02:35 (external edit)