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

2017-04-02 Thread Adam Goryachev
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



-- 
Adam Goryachev Website Managers www.websitemanagers.com.au

--
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/


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

2017-04-02 Thread Bob of Donelson Trophy
My apologies to Richard. 

I had sent this email directly to him rather than the list (so everyone
can learn, too.) 

My bad, "reply" instead of "reply all". 

 Original Message  

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

DATE:
2017-04-01 18:40

FROM:
Bob of Donelson Trophy 

TO:
Richard Shaw 

REPLY-TO:
b...@donelsontrophy.net

On 2017-03-31 18:58, Richard Shaw wrote:

> On Fri, Mar 31, 2017 at 4:34 PM, Bob of Donelson Trophy 
>  wrote:
> 
>> I have modified the /etc/httpd/conf.d/BackupPC.conf as you suggested but, 
>> for my subnet. 
>> 
>> I did get BackupPC to ask for my web user name and password once but, now I 
>> am getting "Forbidden" and no login prompt (box.)
> 
> Try a different browser? Did it try to remember the password? 
> 
>> When I "cat" the /etc/BackupPC/apache.users file I see the only user listed 
>> is "backuppc:longstringoflettersandnumbers/" so I am assuming that the web 
>> user is "backuppc" correct?
> 
> Yes, it's the user you created with the hash of the password.  
> 
>> And "backuppc" should use the webpassword I created with "htpasswd -c 
>> /etc/BackupPC/apache.users backuppc". (I know updating passwd I remove the 
>> "-c" from the command.) 
>> 
>> Scratching my head (which is actually fingernails digging into scalp . . all 
>> the hair is gone.)
> 
> Not sure at this point, I just updated the COPR to 4.1.1 and fixed a few more 
> things (the documentation link works now) and no issues for me... 
> 
> Thanks, 
> RIchard

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?

-- 
___

Bob Wooden of Donelson Trophy

-- 
___

Bob Wooden of Donelson Trophy

615.885.2846
www.donelsontrophy.com [1]

"Everyone deserves an award!!"
 

Links:
--
[1] http://www.donelsontrophy.com--
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-02 Thread Craig Barratt
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# Type Filled Level Start Date Duration/mins Age/days Server Backup
> Path
> 15  incr no 1 3/20
> 20:06 14.0 12.7 /var/lib/backuppc/pc/legolas/15
> 17  incr no 1 3/22
> 20:05 15.3 10.7 /var/lib/backuppc/pc/legolas/17
> 19  incr no 1 3/24
> 20:04 12.6 8.7 /var/lib/backuppc/pc/legolas/19
> 21  incr no 1 3/27
> 20:05 13.3 5.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.9 1.2 /var/lib/backuppc/pc/legolas/25
> 26  full yes 0 4/2
> 13:00 62.6 0.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/


Re: [BackupPC-users] XferLOG.z is all trashed

2017-04-02 Thread Bzzzz
On Wed, 22 Mar 2017 23:57:56 -0500
Les Mikesell  wrote:


Hi Les, sorry for the delayed follow-up,

You were absolutely right: my (bad) habit to insert echoes in
root's .bashrc (to remind me I've some things to do on the machine
when I ssh it) was the reason it failed; commenting all echo lines
re-established a normal behavior, thanks ! :)

Jean-Yves

> The remote system is sending some output before starting rsync over
> the ssh login.There is probably something being started in
> /etc/profile, /etc/bashrc or root's .profile or .bashrc that is
> complaining about not having TERM set - which it won't with ssh trying
> to start a command remotely.

 
> On Wed, Mar 22, 2017 at 11:48 PM, B  wrote:
> >
> > Got remote protocol 1297237332
> > Fatal error (bad version): TERM environment variable not set.
> >
> > Sent exclude: /1.8EB_01
> > …
> >
> >
> > The bad listing issued is all trashed (many characters like little
> > boxes w/ points in, no text alignement, almost unreadable).
> >
> > I see the "Got remote protocol" is wrong, but can't figure why; I
> > do not understand either the "TERM envvar not set" as it is set!
> >
> > as the BPC user:
> > $ echo $TERM
> > xterm
> >
> > Does anybody have a clue about that ?
> 
> 


--
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/


[BackupPC-users] Full backups disappear

2017-04-02 Thread Claus Tøndering
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# 	Type 	Filled 	Level 	Start Date 	Duration/mins 	Age/days 
Server Backup Path
15  	incr 	no 	1 
3/20 20:06 	14.0 	12.7 	/var/lib/backuppc/pc/legolas/15
17  	incr 	no 	1 
3/22 20:05 	15.3 	10.7 	/var/lib/backuppc/pc/legolas/17
19  	incr 	no 	1 
3/24 20:04 	12.6 	8.7 	/var/lib/backuppc/pc/legolas/19
21  	incr 	no 	1 
3/27 20:05 	13.3 	5.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.9 	1.2 	/var/lib/backuppc/pc/legolas/25
26  	full 	yes 	0 
	4/2 13:00 	62.6 	0.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/