Re: [BackupPC-users] BackupPC 4.1.1 released

2017-04-03 Thread Doug Lytle
>>> [ https://github.com/backuppc/backuppc/releases/tag/4.1.1 | BackupPC 4.1.1 
>>> ] has been released on Github. 
>>> BackupPC 4.1.1 is a bug fix release. There are several minor bug fixes 
>>> listed below. 


I upgraded from 4.1.0 to 4.1.1 and didn't think to check on it until now (3 
days later) to find out that none of the clients that are located via WINS 
could be found, I get:


jk1441  supp...@ourdomain.com   2   426.2   0.000.061   437.2   
426.2   idle0   no ping (no ping response)

I moved back to 4.1.0 and I am now getting backups.

Doug

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-03 Thread Richard Shaw
I think I figured it out...

I'm not sure if I should automate this in the packaging or not but you just
need to add apache to the backuppc group...

usermod -a -G backuppc apache

You may have to reboot for it to take effect since you can't "login" as
apache...

Thanks,
Richard
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-03 Thread Adam Goryachev



On 3/4/17 21:47, Bob of Donelson Trophy wrote:


On 2017-04-03 05:17, Richard Shaw wrote:

It should not be necessary to run apache as the backuppc user. When I 
have some time I may have to setup a CentOS 7 box up from scratch. 
I'm not sure at this point what I've tweaked but I'm not having the 
same problem.


To Adam,

I checked the apache error_log and found "(13)Permission denied: 
[client 192.168.242.29:43348] AH01620: Could not open password file: 
/etc/BackupPC/apache.users". Hum-m-m-m??



Perfect, there is your "smoking gun".
So, do the following:
ps aux|grep apache
See what user apache is running as (you also need the group, probably 
just get that from the apache config files).


Now do the following commands:
ls -ld /etc/BackupPC
ls -ld /etc/BackupPC/apache.users

Lets assume apache is running with the user apache
Lets assume the /etc/BackupPC directory is owned by backuppc, and is 
secured so that it is not world readable (a pretty good idea since it is 
likely to contain passwords in the various config files).
Lets assume the /etc/BackupPC/apache.users file is owned by backuppc as 
well.


You would need to do the following commands to "fix" it (ie, allow 
apache to read the passwd file).

chgrp apache /etc/BackupPC
chmod g+rx /etc/BackupPC (edit config probably won't work, but it should 
fix your current problem).


You might also need the following:
chgrp apache /etc/BackupPC/apache.users
chmod g+r /etc/BackupPC/apache.users

The other option is to simply do this:
mv /etc/BackupPC/apache.users /etc/apache2/backuppc.users
chown apache /etc/apache2/backuppc.users
Update the apache config file to point to the new location.

Then, restart apache and you should be fine.

Regards,
Adam
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-03 Thread Bob of Donelson Trophy
On 2017-04-03 05:17, Richard Shaw wrote:

> It should not be necessary to run apache as the backuppc user. When I have 
> some time I may have to setup a CentOS 7 box up from scratch. I'm not sure at 
> this point what I've tweaked but I'm not having the same problem. 
> 
> Thanks, 
> Richard 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot 
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/

To Adam, 

I checked the apache error_log and found "(13)Permission denied: [client
192.168.242.29:43348] AH01620: Could not open password file:
/etc/BackupPC/apache.users". Hum-m-m-m?? 

To Tim, 

I changed the user and group to "backuppc" and noticed this. The first
login asked for the user and password. The second and every logion after
that automatically logged in, no request for user and password. Odd . .
. so I reset the user and group back to apache. 

I also noticed that when I modify the /etc/httpd/conf.d/BackupPC.conf to
allow "Require all granted" it always logs in with asking for user and
password. 

The last thing I noticed is in both cases the navigation menu (on the
left side under "SERVER") contains only five entries. Status, Host
Summary, Documentation, Wiki, Github are listed entries. Compared to my
v3 box, missing are Edit Config, Edit Hosts, Admin Options, LOG File,
Old LOGs, Email Summary, Current Queues, and Sourceforge (which I think
is only there because it's v3.) 

This leads me to believe apache is "seeing" the incorrect permissions
for the backuppc user, for that matter, any user and is not allowing
admin access. Therefore it comes back to a permissions issue. 

Perhaps this info will help Richard or anyone else to guide me to an
operational v4?

-- 
___

Bob Wooden of Donelson Trophy--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-03 Thread Richard Shaw
It should not be necessary to run apache as the backuppc user. When I have
some time I may have to setup a CentOS 7 box up from scratch. I'm not sure
at this point what I've tweaked but I'm not having the same problem.

Thanks,
Richard
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Full backups disappear

2017-04-03 Thread Claus Tøndering

$Conf{FullKeepCnt} = 1;
$Conf{FullKeepCntMin} = 1;
$Conf{FullAgeMax}  = 90;

I'll try increasing $Conf{FullKeepCnt} to see if that helps.

/Claus

 Original Message 
*Subject: *Re: [BackupPC-users] Full backups disappear
*From: *Craig Barratt 
*To: *General list for user discussion, questions and support 


*Date: *02-04-2017 20:44
How many full backups are you keeping (ie, what are 
$Conf{FullKeepCnt}, $Conf{FullAgeMax} and $Conf{FullKeepCntMin} set to)?


With 4.x, it is no longer necessary to keep extra full backups around 
for the incrementals (since filled/non-filled and incremental/full are 
decoupled), so it's possible those settings were too small.


Craig

On Sun, Apr 2, 2017 at 5:21 AM, Claus Tøndering > wrote:


I have recently moved to BackupPC version 4, and strange things
now happen to my full backups.

I have set
$Conf{FullPeriod} = '60';
which I believe would indicate a full backup every 60 days.
However, instead I get a full backup every other day.

The "Backup Summary" on the admin page looks like this:

Backup# TypeFilled  Level   Start Date  Duration/mins   Age/days
Server Backup Path
15 incr
no  1   3/20 20:06  14.012.7/var/lib/backuppc/pc/legolas/15
17 incr
no  1   3/22 20:05  15.310.7/var/lib/backuppc/pc/legolas/17
19 incr
no  1   3/24 20:04  12.68.7 /var/lib/backuppc/pc/legolas/19
21 incr
no  1   3/27 20:05  13.35.8 /var/lib/backuppc/pc/legolas/21
22 
partial no  0   3/28 20:00  0.0 4.8 
/var/lib/backuppc/pc/legolas/22
25 incr
no  1   4/1 10:01   12.91.2 /var/lib/backuppc/pc/legolas/25
26 full
yes 0   4/2 13:00   62.60.1 
/var/lib/backuppc/pc/legolas/26



Except for a problem around backup 22/23 you see this pattern:
Backups 15, 17, 19, 21, 25 (all odd numbers) are incremental;
backups 16, 18, 20, 24 (all even numbers) are missing.

Backup 26 (an even number) is full. Tomorrow, the list will show
backup 27 being incremental and backup 26 will have disappeared.
The day after tomorrow a new full backup 28 will appear.

Is this the intended behaviour?

/Claus



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net

List: https://lists.sourceforge.net/lists/listinfo/backuppc-users

Wiki: http://backuppc.wiki.sourceforge.net

Project: http://backuppc.sourceforge.net/





--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-03 Thread Tim Herren
On 03.04.2017 01:25, Adam Goryachev wrote:
> On 03/04/17 06:50, Bob of Donelson Trophy wrote:
>> I have updated to your latest COPR and v4.1.1. Thank you for that.
>>
>> I have been researching signing into the web gui. Even before I 
>> upgraded to v4.1.1 I was having resistance to signing in with the 
>> backuppc user with the htpasswd I have set up.
>>
>> I mentioned in a previous email that the backuppc user appears in the 
>> /etc/BackupPC/apache.users file, as it should. But, When I sign into 
>> the [ipaddress]/BackupPC it gives an "Internal Server Error". If I 
>> modify the /etc/httpd/conf.d/BackupPC.conf file and add "Require all 
>> granted" and comment out the "Require valid-user" I can access the gui 
>> however, I cannot do much of anything. Understandable as BackupPC does 
>> not "know" the user I am accessing it with. When I invert this back to 
>> the correct configuration I am NOT presented with a user login but 
>> rather the "Internal Server Error".
>>
>> What file permissions rights should the /etc/Backup[PC/apache.users 
>> file have?
>>
>>  [root@localhost ~]# ls -alh /etc/BackupPC/
>> total 192K
>> drwxr-x---.  2 backuppc backuppc  112 Apr  1 06:55 .
>> drwxr-xr-x. 80 root root 8.0K Apr  1 07:42 ..
>> -rw-r--r--.  1 root root   47 Apr  1 18:14 apache.users
>> -rw-r--r--.  1 backuppc backuppc  83K Mar 31 13:22 config.pl
>> -rw-r--r--.  1 backuppc backuppc  83K Mar 31 13:22 config.pl.sample
>> -rw-r--r--.  1 backuppc backuppc 2.2K Mar 31 13:22 hosts
>> -rw-r--r--.  1 backuppc backuppc 2.2K Mar 31 13:22 hosts.sample
>> -rw-r-.  1 backuppc backuppc0 Apr  1 17:53 LOCK
>>
>> Does your /etc/BackupPC/ directory have these rights?
>>
>> I am not sure I am looking in the correct place but, I think I am 
>> dealing with a permissions issue.
>>
>> Thoughts?
>>
> 
> Yes, please look at your apache error log file, it will tell you what 
> the problem is.
> Basically, Apache is saying "I don't like this, and I don't know what 
> else to do, please get the sys admin to fix it". That's if it's a 
> permissions error on any of the related files (.htaccess, the password 
> file, or syntax errors, or options that are not permitted etc.
> 
> It is also possible to get an internal server error if the 
> script/program itself can't run, usually the output of the script (error 
> message) will be recorded in the apache error log, so again, that is 
> where you will find out what the problem is.
> 
> Regards,
> Adam
> 
Hi,

I had the same problem you had. All I got when browsing to
http://ipadress/BackupPC was a Error 500 - Internal Server Error.
I did the installation from the rpm on a clean install of minimal CentOS 7.

Your permissions in /etc/BackupPC/ look good to me, I have the same
permissions.
What solved it for me is that I changed the "User" and "Group" in
/etc/httpd/conf/httpd.conf from "apache" to "backuppc" followed by a
"systemctl restart httpd"

After that all worked fine.
I am not sure what would be the correct steps if you use apache on the
same Host for anything else besides BackupPC.

Regards,
Tim

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/