Re: [BackupPC-users] Backing up the BackupPC server using rsync

2023-12-22 Thread jbk

On 12/22/23 10:26, Tom Moore wrote:
That was one of my other mistakes.  My working config for 
this is:

$Conf{RsyncClientPath} = "sudo /usr/bin/rsync";
$Conf{RsyncSshArgs} = [];

along with the line in the /etc/sudoers file to grant 
backuppc permission for rsync.  It looks like both ways 
will work.


Yes. Both ways work. Sometimes there is a mental block, at 
least on my part, that these are just a string of entries in 
a certain sequence on the command line and if you look at 
the log output you can put it together. So keeping the '-e' 
rsync_bpc was trying to expand the following empty string 
which failed. When I migrated from v3 this was a stumbling 
block for me and I did get help here on the mailing list 
that corresponds to my earlier answer.


--
Jim KR

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


Re: [BackupPC-users] Backing up the BackupPC server using rsync

2023-12-22 Thread jbk

On 12/21/23 11:15, Tom Moore wrote:
I have files on the server that is running BackupPC that I 
would like to back up.  I see from the sourceforge faq 
that this is possible, and there is a good example for 
using tar:

https://backuppc.sourceforge.net/faq/localhost.html

The files that I want to backup are under the /raid 
folder, except that I want to exclude the files in 
/raid/share/tmp:

$Conf{BackupFilesOnly} = '/raid';
$Conf{BackupFilesExclude} = '/raid/share/tmp';
I was able to get the BackupPC tar transfer method working 
on the localhost.  So far so good.


I would like to set this up for the rsync transfer method 
since there are a lot of files to back up and rsync is 
supposed to be more efficient in a number of ways.  I made 
the following changes to the host config file:

$Conf{XferMethod} = "rsync";
$Conf{RsyncClientPath} = "sudo /usr/bin/rsync";
$Conf{RsyncSshArgs} = ['-e', ''];

I have also added a line to the sudoers file
backuppc ALL = NOPASSWD: /usr/bin/rsync

When I try to run a backup it fails and I end up with the 
following error message in the log file:
Running: /usr/bin/rsync_bpc --bpc-top-dir 
/var/lib/BackupPC/ --bpc-host-name phoenix 
--bpc-share-name /raid --bpc-bkup-num 1 --bpc-bkup-comp 3 
--bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1 
--bpc-bkup-inode0 9040190 --bpc-log-level 1 
--bpc-attrib-new -e  --rsync-path=sudo\ /usr/bin/rsync 
--super --recursive --protect-args --numeric-ids --perms 
--owner --group -D --times --links --hard-links --delete 
--delete-excluded --one-file-system --partial 
--log-format=log:\ %o\ %i\ %B\ %8U,%8G\ %9l\ %f%L --stats 
--iconv=utf8,UTF-8 --timeout=72000 --include=/raid 
--exclude=/\* --exclude=/raid/share/tmp phoenix:/raid/ /

incr backup started for directory /raid
Xfer PIDs are now 24843
This is the rsync child about to exec /usr/bin/rsync_bpc
rsync_bpc: Failed to exec phoenix: No such file or 
directory (2)


Any ideas about what is going wrong here?  The localhost 
is named phoenix, and 'ping phoenix' works, as does 
'nslookup phoenix'.

I have this:
$Conf{RsyncSshArgs} = [
  '-e',
  '/usr/bin/sudo -p'
];
For backing up the local host.

--
Jim KR

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


[BackupPC-users] Compressed Pool Size VS Disk Usage

2023-12-03 Thread jbk

Compressed Pool Size VS Disk Usage

I have 5 clients backed up with the compressed pool size 
showing 50G for 175,000 files. The disk usage "df -h" is 
around 80G. I do expect overhead and do have quite a bit of 
spare capacity so this is not an issue. I just want to 
confirm that 20 to 30 GiB is in the ballpark for stored 
attribute data and logs. Most of the stored data is user 
homes, system configs (etc, boot) and application data.

Does the overhead vary depending on stored data type?

Just curious.

--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Outdated Files in Backup?

2023-11-26 Thread jbk

On 11/26/23 05:30, Christian Völker wrote:
Hi,  > > thanks for pointins this out. I do not remember having 
set this > manually on all hosts. It was set globally 
anyways so I removed these > entries from all clients. > > 
And I have only a username for this single host (as it is 
MacOS and > does not know "root" as the others do). > > 
Meanwhile I have removed the host an created it from 
scratch. Started > a backupc and now everything seems to 
work fine. I do not know how > this has happened. > > 
Thanks! > > /KNEBB > > > Am 24.11.23 um 17:05 schrieb jbk: 
>> On 11/14/23 14:09, Christian Völker wrote: >>> Hi, >>> 
>>> I have BackupPC 4.x running on a Debian system. Works 
like a >>> champ since years now. >>> >>> One of my clients 
is an Apple Mac with current up-to-date MacOS. >>> rsync is 
installed: >>> >>> username@macos Documents % rsync 
--version rsync version 2.6.9 >>> protocol version 29 
Copyright (C) 1996-2006 by Andrew Tridgell, >>> Wayne 
Davison, and others. So far it works fine. It does the >>> 
backupsand all is good. I am backing up the Users-Folder as 
>>> "$RsyncShareName": "/Users/username" and excluded some 
unneeded >>> directories. >>> >>> See macos.pl: 
$Conf{BackupPCNightlyPeriod} = 1; >>> $Conf{RsyncShareName} 
= [ '/Users/username' ]; >>> $Conf{RsyncSshArgs} = [ '-e', 
'$sshPath -l username' ]; >>> >> In reviewing again your 
settings I see that you have the nightly >> period 
configured as a per host value to do a full traverse as I >> 
do, but for my system this is configured on the server and 
not by >> client. I also see that your: '$sshPath -l 
username' lists >> username. For my setup that username is 
backuppc for all clients. >> Do you have different usernames 
configured for each client? >> >> One thing I've noticed in 
the nightly process is that even with the >> setting to 
traverse the whole pool in one night it seems that I'll >> 
get a big prune (4-5) G's late in the weekly cycle. >> >> -- 
Jim KR > The other thing that I noticed is that your rsync 
args is missing the option:


--protect-args

This may be important to BackupPC's operation. It is 
recommended that you not change the rsync arguments from 
their default in the supplied config.pl


I was guilty of modifying the defaults and it took me three 
months to clear the backups of deleted data across four 
backup disks.


--
Jim KR

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


Re: [BackupPC-users] Outdated Files in Backup?

2023-11-24 Thread jbk

On 11/14/23 14:09, Christian Völker wrote:

Hi,

I have BackupPC 4.x running on a Debian system. Works like 
a champ since years now.


One of my clients is an Apple Mac with current up-to-date 
MacOS. rsync is installed:


username@macos Documents % rsync --version
rsync  version 2.6.9  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
So far it works fine. It does the backupsand all is good. 
I am backing up the Users-Folder as "$RsyncShareName": 
"/Users/username" and excluded some unneeded directories.


See macos.pl:
$Conf{BackupPCNightlyPeriod} = 1;
$Conf{RsyncShareName} = [
   '/Users/username'
];
$Conf{RsyncSshArgs} = [
   '-e',
   '$sshPath -l username'
];

In reviewing again your settings I see that you have the 
nightly period configured as a per host value to do a full 
traverse as I do, but for my system this is configured on 
the server and not by client. I also see that your:


'$sshPath -l username'

lists username. For my setup that username is backuppc for 
all clients. Do you have different usernames configured for 
each client?


One thing I've noticed in the nightly process is that even 
with the setting to traverse the whole pool in one night it 
seems that I'll get a big prune (4-5) G's late in the weekly 
cycle.


--
Jim KR

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


Re: [BackupPC-users] Outdated Files in Backup?

2023-11-24 Thread jbk

On 11/15/23 05:26, Christian Völker wrote:

Hi,

yes, the latest full backup shows files which have been 
deleted months ago. At the time of backing up the client 
they did not exist on the client!


For testing I did a new "full" backup.
It has the same old files in it :\

So I created a new host (by IP instead of name), copied 
the "macosclient.pl" to "$IP.pl", reloaded backuppc and 
staarted a new backup on the IP-based host. This backup 
now only has the files which really do exists on the client.



Looks like there is something broken in the inventory of 
the backups of this host.


Any better idea instead of simply removeing all backups 
from this host and start a new series?


/KNEBB

Am 14.11.23 um 20:34 schrieb Norman J. Goldstein:
Are you saying that your full backup, 666, contains files 
that *were* not in your local directory at the time of 
the backup?



Here is my speculation.

Your BackupPC_nightly is configured to traverse only a 
portion of the pool each night for all of the machines 
backed up and is not proceeding far enough to identify the 0 
link count for the now deleted file.
For full backups BackupPC does a comparison of files already 
in the pool to those physically on the client and if a file 
already exists in the pool, instead of downloading the 
entire file again it increments the file count associated 
with this machine and moves on. For files that nolonger 
exist on the client machine it decrements the file count to 
zero but does not immediately delete it from the client pool 
count. The next time BackupPC_nightly runs, assuming it 
traverses the whole pool, it removes the files that have a 
zero count associated with that client.
In the documentation this is covered in the section headed 
"BackupPC Design". I had to read this section several times 
to understand how BackupPC_nightly works and also the 
config.pl related to nightly. My pool is I think very small 
so I have the nightly configured to traverse the entire pool 
each time it runs at the beginning of the backup schedule 
each day.


If I've got this wrong then I think those who do know will 
now clarify my miss conception.



--
Jim KR

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


Re: [BackupPC-users] restore a backup from command line

2023-10-31 Thread jbk

On 10/30/23 12:45, Ghislain Adnet wrote:

hi,

 i was wondering if there was any way to restore from the 
command line. I need to restore all /home/ daily to 
another server



 I was trying to use


/usr/share/backuppc/bin/BackupPC_restore


 but there is no docs and it fails for me as i try various 
things like


[~]: sudo -u backuppc 
/usr/share/backuppc/bin/BackupPC_restore 127.0.0.1 
myclientserver.com  /etc/vim/vimrc
/usr/share/backuppc/bin/BackupPC_restore: bad reqFileName 
(arg #3): /etc/vim/vimrc


usage: /usr/share/backuppc/bin/BackupPC_restore [-p] [-v] 
[-m]   



any idea if this is possible ?
--
cordialement,
Ghislain ADNET.
AQUEOS.
Evidently "BackupPC_restore" is to be used only through the 
CGI. Follow the link to documentation from within the CGI 
and once there look for the title "Command-line restore 
options" where you will find the recommended commands and a 
some examples usages.


--
Jim KR

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


Re: [BackupPC-users] Deleting backups does not free up disk space

2023-10-27 Thread jbk

On 10/26/23 10:37, wh...@posteo.net wrote:


The main issue is, that I expected the delete button in 
the host overview page to delete that specific backup, 
which contains data it was not supposed to back up.
I know there is deduplication, that's why I deleted the 
recent backups of _all_ hosts, in case the newly 
introduced data was used in another host as well.

Did you restart the daemon after making your changes?
systemctl restart backuppc

If you did not then the edits to the host config would not 
be known to backuppc till the next wakeup scheduled in the 
main config.


Also how thorough the deletion is could be a function of the 
nightly script as configured in the main config. I would 
search the term "nightly" in the main config and read the 
commentary for each of the options and their effects on how 
much of the pool is traversed with each nightly run.


--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Backup Share Content

2023-07-30 Thread jbk

On 7/29/23 21:11, backu...@kosowsky.org wrote:

To be clear, you don't really need to add '--delete' as it is one of
the *default* parameters and the comments in config.pl  even warns you not to 
do so.
Rather, please don't delete parameters that you don't understand or
intend :)


Just to reiterate it was my own mistakes that caused the issue

"for some ancient reason I had per client overrides of the 
rsyncArgs that were the cause of my issues."


I don't know why I had these overrides in the client 
configs. They must have been there since 2008 when I first 
set up this complex backup environment then. I did a lot of 
searches for example set ups back then to get ssh working, 
disks recognized correctly etc... and I may have followed an 
un-official guide that led me to the config overrides I 
have. In all those years I never had a situation where I 
needed to restore a whole share of data till recently. 
BackupPC has run reliably in its misconfiguration for all of 
that time. Now having run a series of backups with the 
deletion of my overrides all is as expected for the share 
content that I've now taken a closer look at.
I'm sorry that in my panic my statements appeared to blame 
the program.


--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Backup Share Content

2023-07-29 Thread jbk

On 7/29/23 14:00, backu...@mailfri.com wrote:

jbk wrote:


I'm wondering if I need to add a "delete" argument to the
rsync line but am not sure of the consequences.

Yes, you do need to add --delete. See e.g. here for the default rsync
parameters:
https://github.com/backuppc/backuppc/blob/master/conf/config.pl#L1288

BR,
Fabian


Well for some ancient reason I had per client overrides of 
the rsyncArgs that were the cause of my issues. Just removed 
those overrides and ran new backups on all to confirm the 
corrections achieved the intended outcome and so far it is good.

So thanks Fabian.

--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Backup Share Content

2023-07-29 Thread jbk

BackupPC-4.4.0-9.el9.x86_64

I see now this is a bigger problem than I thought initially. 
I thought that each backup # was a restore point to the 
state of the share at the time of that backup but instead it 
is an accumulation of all backups w/o reflecting any of the 
deletions of files now non existent on the source machine. I 
had never browsed the backups to see if they were what I 
expected for one to one state of the current source. I've 
always used the default rsync args and now I think I need to 
modify them but I guess I'm really nave as to how backuppc 
is working.
Some historical background. I've been using BackupPC for at 
least 15 years and migrated my backups from version 3. to 
version 4 a year and a half ago when I installed Rocky8 but 
I'm now running Rocky9 on the server. My logs, error and 
otherwise are not showing any backup issues.


Here are a few lines from a recent backup of one of my 
machines xferlogs to illustrate the current rsync arguments 
in use. The full list of includes/excludes has been 
truncated. Note that the pasted lines don't wrap, at least 
not for me in my email client.


#

XferLOG file /var/lib/BackupPC//pc/xjbk7/XferLOG.64.z created 2023-07-25 
15:45:31
Backup prep: type = full, case = 3, inPlace = 1, doDuplicate = 1, newBkupNum = 
64, newBkupIdx = 3, lastBkupNum = , lastBkupIdx =  (FillCycle = 0, noFillCnt = 
0)
Executing /usr/share/BackupPC/bin/BackupPC_backupDuplicate -m -h xjbk7
Xfer PIDs are now 540945
Copying backup #63 to #64
Xfer PIDs are now 540946,540945
BackupPC_refCountUpdate: host xjbk7 got 0 errors (took 2 secs)
Xfer PIDs are now 540945
BackupPC_backupDuplicate: got 0 errors and 0 file open errors
Finished BackupPC_backupDuplicate (running time: 7 sec)
Running: /usr/bin/rsync_bpc --bpc-top-dir /var/lib/BackupPC/ --bpc-host-name 
xjbk7 --bpc-share-name / --bpc-bkup-num 64 --bpc-bkup-comp 3 --bpc-bkup-prevnum 
-1 --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 121320 --bpc-log-level 1 
--bpc-attrib-new -e /usr/bin/ssh\ -l\ backuppc\ \  --rsync-path=/usr/bin/sudo\ 
/usr/bin/rsync --numeric-ids --perms --owner --group -D --links --hard-links 
--times --block-size=2048 --recursive --one-file-system --checksum 
--timeout=72000 --include=/boot

#

I'm wondering if I need to add a "delete" argument to the 
rsync line but am not sure of the consequences.


What I want is that for say backup #32 that a restore of 
that backup would be just the current state of the files on 
that machine at the time of backup and backup #31 would be a 
reflection of the share state at the time of that prior backup.


jbk

On 7/26/23 20:36, jbk wrote:
On one of my machine shares I did some file consolidation 
that involved creating a new top level directory and 
moving files from adjacent top level directories into sub 
directories under the newly created directory I then 
deleted those other empty top level directories.
Backuppc ran a couple days later a incremental backup, and 
in this backup there was the new directory with sub 
directories and files I had moved as well as the old and 
no longer existing top level directories and files. I 
waited till the next nightly ran and then checked again 
and the deleted directories and files were still present.
So I haven't lost data but if I had a disk failure the 
restore would recreate deleted data on the new destination 
share. So the question is how do I delete old share data 
structures in my backups or how should I approach such 
changes so I don't end up with over populated restores.

--
Jim KR



--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


[BackupPC-users] Backup Share Content

2023-07-26 Thread jbk
On one of my machine shares I did some file consolidation 
that involved creating a new top level directory and moving 
files from adjacent top level directories into sub 
directories under the newly created directory I then deleted 
those other empty top level directories.
Backuppc ran a couple days later a incremental backup, and 
in this backup there was the new directory with sub 
directories and files I had moved as well as the old and no 
longer existing top level directories and files. I waited 
till the next nightly ran and then checked again and the 
deleted directories and files were still present.
So I haven't lost data but if I had a disk failure the 
restore would recreate deleted data on the new destination 
share. So the question is how do I delete old share data 
structures in my backups or how should I approach such 
changes so I don't end up with over populated restores.


--
Jim KR
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Files in backup with wrong uid/gid

2023-03-12 Thread jbk

On 3/9/23 07:57, David Heap wrote:


Hi,

I’m seeing an issue where the uid/gid of two files inside 
the backup are incorrectly root instead of the correct 
owner (openldap in this case).


Files on the server:

-rw--- 1 openldap openldap 10485759 Apr  8  2022 
log.04


-rw--- 1 openldap openldap 10485759 Sep 21 14:16 
log.05


-rw--- 1 openldap openldap 10485759 |Feb 22 10:50 
|log.06


-rw--- 1 openldap openldap 8192 Apr 19  2022 memberUid.bdb


Files in the backup (output of BackupPC_ls):

-rw---   105/107   10485759 2022-04-08 08:38:34  
/srv/ldap//log.04 
(d363e1e6aa3efc35e027e45f2279aa3f)
-rw---   0/0   10485759 2022-09-21 14:16:55  
/srv/ldap//log.05 
(c4f72b8befc18f3ba2dce596572529cf)
-rw---   0/0   10485759 2023-02-22 10:50:42  
/srv/ldap//log.06 
(c42c092af72eb67324424c609be769ba)
-rw---   105/107   8192 2022-04-19 14:03:41  
/srv/ldap//memberUid.bdb 
(73a58e4133305486ea3db35b05431534)


All the other files in the folder have the correct 
owner/group. The file ownership isn’t changing on the 
server at the time of backup.


I’ve tried removing these files from all the backups and 
running a full nightly to (hopefully) clean out something 
that’s cached wrong in the pool, but they came back again 
the next night with the same issue. Any ideas?



Yes, those are links to the same size thus same content as 
the file at the top. The only way to check if things are 
correct is to do a test restore to different location and 
check the ownership of those restored files. There are 
"attrib" files located elsewhere that keep track of the 
ownership and source of the file information. When you 
manually delete files from the pool you corrupt the backuppc 
data base which could lead to future inaccuracies in backups 
and restores.


You should read the "How it works" in the backuppc 
documentation.


Deduplication is one of the main premises of backuppc.
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Just done 3 to 4 migration - couple of UI related problems

2023-01-17 Thread jbk

On 1/16/23 13:27, Laurence Hurst wrote:

Hi,

Yes, I know I'm very late to the v4 party...

Just upgraded my version 3 to 4 (3 days into the process) 
and all seems to be working again but I cannot find 2 
things I used regularly in the v3 UI in the v4 one:


1. I cannot find the XferLogs in the UI, which I could in v3?
2. I also don't seem to have any storage graphs in the UI - 
these were working in v3, so I'm not sure what I've done to 
lose/break these?


3. I cannot edit the configurations through the v4 UI, 
which I could through v3 - again, I'm not sure what I've 
broken here?




Are you using mod_perl?
It seems from your statements the GUI interface is not 
complete but does load. Can you confirm that is the case?
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] File Size Summary shows too large value for host

2022-12-10 Thread jbk

On 11/24/22 08:34, Stefan IT wrote:

Hello all,

I have a strange problem with my BackupPC 4.4.0 installation.
With two hosts to be backed up, the "File Size/Count Reuse Summary" shows a too large value 
for "Totals -> Size/MiB".
The system to be backed up is about 77 GiB ("du -sh /" shows 77G). 
Nevertheless, BackupPC shows 106110 MiB.
Where can this difference in size come from? In an old installation, with 
BackupPC 3.3.2, the size is displayed correctly.

How can I investigate this error? What information is needed to investigate 
further?

Thanks to all!



Stefan,
Can you post the exact contents of the backup summary from a 
specific backup xferlog. For example I've posted the summary 
of backup # 59 from my xferlog following here:


>

Xfer PIDs are now
full backup 59 complete, 100171 files, 7590653598 bytes, 0 xferErrs (0 bad 
files, 0 bad shares, 0 other)
BackupExpire: cntFull = 4, cntIncr = 2, firstFull = 0, firstIncr = 2, 
oldestIncr = 54.812465278, oldestFull = 85.274849537037
Removing unfilled backup 56
Xfer PIDs are now 492118
<

That way we get a fuller picture in a format that is familiar to us all.

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


Re: [BackupPC-users] full backup

2022-11-29 Thread jbk

On 11/28/22 09:02, Paulo Ricardo Bruck wrote:


Hi all

New adventures using backuppc4.0 80)

I was using backuppcV3 to do a 3 full backup and its was 
working like a charm 8)


Now , reading the doc of backuppc4 it changes the view of 
backup.

https://backuppc.github.io/backuppc/BackupPC.html#BackupPC-4.0

Using Ubuntu-22.04 + backuppc-4.4.0-5ubuntu2.

It is possible to do a 3 full backup and see only the 
content of them without merging ?


My conf:
$Conf{BackupPCNightlyPeriod} = 1;
$Conf{FullAgeMax} = 10;
$Conf{FullKeepCnt} = [
  3
];
$Conf{FullKeepCntMin} = 3;
$Conf{FullPeriod} = '0.97';
$Conf{IncrKeepCnt} = 0;
$Conf{IncrKeepCntMin} = 0;
$Conf{IncrPeriod} = ;
$Conf{RsyncShareName} = [
  'media'
];

How do I test?
a)
I create at /media 3 directories 1, 2 and 3.
Full backup
And checking GUI I could see all 3 directories. Fine it is 
working 8)


b) remove directories 1,2  and 3 and create  directories 
3,4 and 5.

full backup
and checking GUII I see directories 1,2,3 4 and 5... Not 
what I want.


c) remove directories 3,4 and 5. and create directories 
6,7 and 8.

full backup
and checking GUI I see directories 1,2,3,4,5,6,7 and 
8Not what I want I would like seeing 
only directories 6,7 and 8..


any help?

Best regards

Since the design is to fill with the previous backup and it 
appears you are doing these tests in quick succession w/o a 
day between so that "nightly" can run your results are as 
expected. Check back tomorrow and see if then the deleted 
directories/files have been removed from their respective 
backups. If you click delete backup # in the GUI it is then 
cued to be deleted when nightly runs at its scheduled time 
overnight.
Since deleting a backup file requires unlinking it is not a 
straight forward delete.


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


Re: [BackupPC-users] Setuid problem

2022-11-05 Thread jbk
I think your problem is exactly this step as the error you 
are getting says:


/I've configured BackupPC on the new server with all the 
same requested settings as was on the old server and had 
even predefined the user and group backuppc to match the 
same UIDs as on the old server to ensure compatibility with 
the existing USB data drive. I've compared configure.pl on 
both machines and have noticed no significant differences./

//
/
/
//
/I am running into the setuid problem, eg. when running it I 
receive the following message: "Error: Wrong user: my userid 
is 33, instead of 117(backuppc)" where userid 33 = www-data.


/During system install other system daemons have been 
assigned the same UID's as you have assigned the backuppc 
user and httpd and their owned files. I've gone through this 
process and it is a good afternoons worth of painstaking 
hunting down the daemons in etc/passwd and changing their 
and their owned files UID's first prior to installing 
backuppc and httpd (apache). It's painful but you get to 
learn some other tools to search out and make changes. 
Fortunately I don't have to do it more often than every ten 
years.





On 11/4/22 14:54, Dave Bachmann wrote:
My old server is dying, I've purchased a new machine to 
replace it, and am having difficulties getting BackupPC 
working properly.


The old server has been running various LTS versions of 
Ubuntu and BackupPC for at least 10 years and both it and 
the new server are now running Ubuntu 22.04.1 with perl 
5.34.0.


I've configured BackupPC on the new server with all the 
same requested settings as was on the old server and had 
even predefined the user and group backuppc to match the 
same UIDs as on the old server to ensure compatibility 
with the existing USB data drive. I've compared 
configure.pl on both machines and have noticed no 
significant differences.


I am running into the setuid problem, eg. when running it 
I receive the following message: "Error: Wrong user: my 
userid is 33, instead of 117(backuppc)" where userid 33 = 
www-data.


/etc/systemd/system/backuppc.service has both user and 
group set to backuppc. BackupPC_Admin has the following 
attributes:
    -r-sr-xr-x 1 backuppc backuppc 3971 2022-11-03 10:38 
BackupPC_Admin.


I've reviewed the section "The CGI script doesn't run; how 
do I fix it?", but I still don't quite understand how to 
fix it. The testsetuid script returns root when run by 
root and my name when I run it as myself; it does not 
execute when run by user backuppc.


Any thoughts and suggestions gratefully accepted as I 
continue to lose my remaining hair.


TIA,
Dave


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


[BackupPC-users] Fwd: Mail to User@host

2022-08-08 Thread jbk
I am now receiving mail sent by the backuppc daemon with 
config.pl settings as per below. The only other edit 
previous to this was in the sendmail.cf file on the server 
to tell it to masquerade as "mydomain".
But, I thought I had made that change prior to the last 
failed deliveries. It may be that a server reboot after a 
kernel update was the trigger that got things working.


jbk


 Forwarded Message 
Subject:Mail to User@host
Date:   Mon, 1 Aug 2022 16:36:32 -0400
From:   jbk 
To: backuppc-user 



I am having trouble getting the backuppc daemon to send a 
warning to me, the admin user, of no recent backups of 
hosts. I have configured sendmail on the host pc that I want 
the message sent to listen for all messages which is 
working. The following is a summary of my backup server 
configuration and status of those efforts.


Email configuration for backuppc in config.pl

###
# Email reminders, status and messages
# (can be overridden in the per-PC config.pl)
###

$Conf{EMailFromUserName} = 'backuppc@mydomain';

$Conf{EMailAdminUserName} = 'jbk@t4s.mydomain';

$Conf{EMailUserDestDomain} = '@t4s.mydomain';

###

When I test message delivery with backuppc thus:

---
bash-4.4$ /usr/share/BackupPC/bin/BackupPC_sendEmail -u 
jbk@t4s.mydomain
Sending test email using /usr/sbin/sendmail -t -f 
backuppc@mydomain

---

The user jbk at host t4s receives the test message.

But when backuppc runs as a daemon the mail delivery fails 
because the sender relay falls back to 
backuppc@localhost.localdomain


Since localhost.localdomain does not exist in the config.pl 
it is being applied from the server environment.

What do I need to edit to get this to work properly?

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


[BackupPC-users] Mail to User@host

2022-08-01 Thread jbk
I am having trouble getting the backuppc daemon to send a 
warning to me, the admin user, of no recent backups of 
hosts. I have configured sendmail on the host pc that I want 
the message sent to listen for all messages which is 
working. The following is a summary of my backup server 
configuration and status of those efforts.


Email configuration for backuppc in config.pl

###
# Email reminders, status and messages
# (can be overridden in the per-PC config.pl)
###

$Conf{EMailFromUserName} = 'backuppc@mydomain';

$Conf{EMailAdminUserName} = 'jbk@t4s.mydomain';

$Conf{EMailUserDestDomain} = '@t4s.mydomain';

###

When I test message delivery with backuppc thus:

---
bash-4.4$ /usr/share/BackupPC/bin/BackupPC_sendEmail -u 
jbk@t4s.mydomain
Sending test email using /usr/sbin/sendmail -t -f 
backuppc@mydomain

---

The user jbk at host t4s receives the test message.

But when backuppc runs as a daemon the mail delivery fails 
because the sender relay falls back to 
backuppc@localhost.localdomain


Since localhost.localdomain does not exist in the config.pl 
it is being applied from the server environment.

What do I need to edit to get this to work properly?


--
Jim Kelly-Rand
j...@kjkelra.com
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


Re: [BackupPC-users] Rotating multiple drives on one mount point

2022-03-26 Thread jbk

On 3/26/22 08:03, Kenneth Porter wrote:
I'm adding a second external drive to my rotation so I can 
keep one off-site in case of disaster.


How do people handle this? What do your systemd 
mount/automount unit files look like? Do you use a single 
drive label so a single systemd unit works to mount any 
backup drive to the same mount point?




I use a common drive label for the four disks I rotate. I 
recommend auto mount so that if your machine should restart 
for any reason the disk will remount protecting the local 
drive from running out of space. I manually stop and start 
the backuppc.service and then have a couple scripts, one to 
umount the drive and another to remount. I set this up a 
long time ago under version 3 and I think it is more 
complicated than is necessary now in version 4. At the time 
it was recommended in a guide I was using not to directly 
mount an external drive to /var/lib/backuppc but instead to 
mount the external drive elsewhere on the system and then 
bind mount that location to /var/lib/backuppc. So my fstab 
entry looks like this for that condition:


/LABEL=/backupdisk /data/backup  auto    
defaults    0 0
/data/backup/BackupPC  /var/lib/BackupPC   non 
bind  0 0


/This is the script ( bupcdiskinit ) to mount the disk:

/#!/bin/bash
# USB backup disk initialization file

mount /data/backup

if [ ! -d /data/backup/BackupPC ];then

    mkdir /data/backup/BackupPC

    cd /data/backup/BackupPC

    mkdir cpool pool pc

    cd ..

    chown -R backuppc.backuppc BackupPC

    cd /

else

    echo "BackupPC exists"

fi

wait=1

mount /var/lib/BackupPC

# end of script

##

/This script (umbudisk ) unmounts:

/#!/bin/bash
# USB backup disk unmount

umount /var/lib/BackupPC
umount /data/backup



# end of script

/

I'm sure that you can simplify this by removing the double 
mount.





--
Jim Kelly-Rand
j...@kjkelra.com

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


Re: [BackupPC-users] Backuppc malcompsoed command Was: issue with RsyncClientCmd being ignored

2022-01-15 Thread jbk

On the client in /etc/sudoers did you find this line

Defaults   requiretty

and change to:

# Defaults   requiretty

In some distros the "Defaults" are not present so you will 
have to add the line. Sudo won't run through ssh unless you 
do that.


Use visudo to make the edits.

--
Jim Kelly-Rand
j...@kjkelra.com


On 1/15/22 01:20, robin hammond wrote:


Update,


I'm told to not mess with RsyncClientCmd - it's 
"depricated" (no source) whatever.


So I changed this instead:

$Conf{RsyncSshArgs} = [

    '-e' , '$sshPath -i 
/home/backuppc/.ssh/backupc_cg5_id_ed25519 root@$host ',

]

fine, now it works, almost.


That said invocation of rsync ends up looking like this :

/usr/local/bin/rsync_bpc \
'--bpc-top-dir' \
'/vol0/www/backuppc/data/' \
'--bpc-host-name' \
'hegemone.databit7.com' \
'--bpc-share-name' \
'/home/administrator' \
'--bpc-bkup-num' \
'0' \
'--bpc-bkup-comp' \
'3' \
'--bpc-bkup-prevnum' \
-1 \
'--bpc-bkup-prevcomp' \
-1 \
'--bpc-bkup-inode0' \
5 \
'--bpc-log-level' \
1 \
'--bpc-attrib-new' \
 '-e'\
 '/usr/bin/ssh -i 
/home/backuppc/.ssh/backupc_cg5_id_ed25519 
r...@phantom.databit7.com' \

 '--rsync-path=/usr/bin/rsync'\
 '--super'\
 '--recursive'\
 '--protect-args'\
 '--numeric-ids'\
 '--perms'\
 '--perms'\
 '--owner'\
 '--group'\
 '-D'\
 '--times'\
 '--links'\
 '--hard-links'\
 '--delete'\
 '--delete-excluded'\
 '--one-file-system'\
 '--partial'\
 '--log-format=log: %o %i %B %8U%8G %9l %f%L'\
 '--stats'\
 '--checksum'\
 '--timeout=72000'\
 '--include=/home'\
 '--include=/home/administrator'\
 '--exclude=/*'\
 '--exclude=/home/*'\
 'phantom.databit7.com:/home/administrator/'\
 '/'


but rsync fails to function with the error

bash: phanton.databit7.com: command not found

rsync_bpc: connection unexpectedly closed (0 bytes 
received so far) [Receiver]


Done: 0 errors, 0 filesExist, 0 sizeExist, 0 
sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 
sizeNew, 0 sizeNewComp, 5 inode


rsync error: error in rsync protocol data stream (code 12) 
at io.c(226) [Receiver=3.1.3.0]



This is hostname is added to the rsync args in a manner 
that causes phantom to try to execute it's own hostname 
after the sshd on login:



/BackupPC/lib/BackupPC/Xfer/Rsync.pm

    push(@$rsyncArgs, 
"$t->{hostIP}:$shareNameSlash", "/");




On 14/01/2022 07.22, robin hammond wrote:



Greatings all, long time backuppc user, but I'm 
struggling to roll out a more secure ssh system on my new 
install.


On a new install of backupPC 4.4.0. I setup a host as 
follows:



host dhcp    user    moreUsers # <--- do not edit 
this line

phantom.databit7.com   0   databit7


The host is configured as such

$Conf{XferMethod}='rsync';
$Conf{BackupFilesOnly} =  [ '/home/administrator' ];
$Conf{'RsyncShareName'}  = [ "/home/administrator" ] ;
$Conf{BackupsDisable}   = 0 ;
$Conf{rsyncPath} = "/opt/rsyncWrapper";
$Conf{'RsyncClientCmd'} = '$sshPath -i 
/home/backuppc/.ssh/backupc_id_ed25519  -l rewt $host 
$rsyncPath $argList+';


BackupPC has been restarted since the last edit. The 
rsyncPath is abided by, but the RsyncClientCmd command 
has little bearing on the command that gets run. The log 
generated is as follows:


XferLOG file 
/vol0/www/backuppc/data/pc/phantom.databit7.com/XferLOG.0.z 
created 2022-01-14 12:04:57 Backup prep: type = full, 
case = 1, inPlace = 1, doDuplicate = 0, newBkupNum = 0, 
newBkupIdx = 0, lastBkupNum = , lastBkupIdx = (FillCycle 
= 0, noFillCnt = ) Running: /opt/rsyncWrapper 
--bpc-top-dir /vol0/www/backuppc/data/ --bpc-host-name 
phantom.databit7.com --bpc-share-name /home/administrator 
--bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum -1 
--bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 
--bpc-log-level 1 --bpc-attrib-new -e /usr/bin/ssh\ -l\ 
*root* --rsync-path=/usr/bin/rsync --super --recursive 
--protect-args --numeric-ids --perms --owner --group -D 
--times --links --hard-links --delete --delete-excluded 
--one-file-system --partial --log-format=log:\ %o\ %i\ 
%B\ %8U,%8G\ %9l\ %f%L --stats --checksum --timeout=72000 
--include=/home --include=/home/administrator 
--exclude=/\* --exclude=/home/\* 
phantom.databit7.com:/home/administrator/ / full backup 
started for directory /home/administrator Xfer PIDs are 
now 3917442 This is the rsync child about to exec 
/opt/rsyncWrapper Host key verification failed. 
rsync_bpc: connection unexpectedly closed (0 bytes 
received so far) [Receiver] Done: 0 errors, 0 filesExist, 
0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal, 
0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode rsync 
error: unexplained error (code 255) at io.c(226) 
[Receiver=3.1.3.0] Xfer PIDs are now Got fatal error 
during xfer (No files dumped for share 
/home/administrator) Backup aborted (No files dumped for 
share /home/administrator) BackupFailCleanup: nFilesTotal 
= 0, type = full, BackupCase = 1, inPlace = 1, 
lastBkupNum 

Re: [BackupPC-users] 504 gateway timeout

2021-11-21 Thread jbk
I've never used NFS. There are commandline tools in 
"/usr/share/BackupPC/bin/"


/|/usr/share/BackupPC/bin/BackupPC_serverMesg status info |/|is one but the ouput is hard to read. You would run this as 
the backuppc user. |/||/


Of course I am assuming this is the path 4.4 is installed.

Jimk

On 11/20/21 14:10, Claude Gelinas wrote:

Thank you for your help JimK

I'll try to clear install location and fix thing during the weekend.
Do you know if BKP 4.4 work with NFS4 or still need old NFS?

Thank you

Claude

Le Fri, 19 Nov 2021 09:37:21 -0500
jbk  a écrit:


I think I'm at a loss as to how to help as I can only base
it in comparison with my own install of BackupPC 4.4 which
is distributed by Redhat 8 | Rocky 8. Only BackupPC version
3.3 is offered in RH 7 | Centos 7. So, is it fair to assume
that you downloaded 4.4 direct from the BackupPC site and
built and installed it per the wikI? The install directories
for the CGI scripts are completely different in that case.
Per the wiki instructions BackupPC_Admin was installed in
/var/www/cgi-bin/ for version 4.4. The problem is also that
your /etc/httpd/conf.d/BackupPC.conf is still based on
version 3.3 locations for these scripts.

Jimk


On 11/18/21 23:32, Claude Gelinas wrote:

Hi,

look like /usr/libexec/BackupPC does not exist I need to reverts
ScriptAlias to

ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin

I also found and old BackupPC_Admin in /var/www/cgi-bin. I've
deleted it and create a symlink
to /usr/share/BackupPC/sbin/BackupPC_Admin

I can now login but still get 504 gateway timeout error

Claude


Le Thu, 18 Nov 2021 23:06:08 -0500
Claude Gelinas   a écrit:


Hi,

with the last changes I cannot login into the Guy
In the httpd log I have this:
client denied by server configuration: /usr/libexec/BackupPC,
referer:http://localhost/BackupPC?action=status

Claude

Le Thu, 18 Nov 2021 09:26:10 -0500
jbk   a écrit:


Claude,

I'm replying to the list and you direct to shorten the turn
around time for my comments and your response.

I have version:
# httpd -v
Server version: Apache/2.4.37 (rocky)

    and an earlier version of 2.4 on my prior OS Scientific
Linux 7.

On my system httpd.conf has owner/group/permissions:
     -rw-r--r-- 1 backuppc apache 11928 Sep 10 10:39 httpd.conf

See my further comments below starting with httpd.conf

On 11/17/21 22:20, Claude Gelinas wrote:

Hi,

in my /etc/httpd/conf/httpd.conf I have the following:

User backuppc
Group backuppc

I've tried

User apache
Group apache

but backuppc guy was not happy

with

I have the User and Group per below

User backuppc
Group apache

There are two other lines I've edited in httpd.conf

DocumentRoot "/usr/share/BackupPC/html"

and

     Options -Indexes +FollowSymLinks

please notice the "-" and "+" symbols as this differs from
what I had for BackupPC 3.3


I'm still getting 504 error.

Onto BackupPC.conf
I overlooked the Alias section and there are some additional
edits to be made there.

I've changed /etc/httpd/conf.d/BackupPC.conf like this:


# 

# BackupPC requires valid authentication in order for the web
interfaceto
# function properly.  One can view the web interface
withoutauthentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"



# Apache 2.4
 
   Require valid-user
   
#Require local
   Require all granted
   
 




 # Apache 2.2
#  AllowOverride All
 order allow,deny
 deny from all
 allow from 127.0.0.1 192.168.xx.xx
 require valid-user



The ScriptAlias lines need to point to a different location:
ScriptAlias /BackupPC
/usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc
/usr/libexec/BackupPC/BackupPC_Admin


Alias /BackupPC/images   /usr/share/BackupPC/html/
ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin

Delete the following Alias definition as it is causing one
of the errors you noted below:

Alias   /BackupPC/html/  /usr/share/BackupPC/html/

I have no other comments so I hope this gets the GUI going
for you.

JimK


the dir /etc/BackupPC is like this:
-rw-r--r--. 1 backuppc apache  47 16 jan  2017 apache.users
-rw-r--r--. 1 backuppc backuppc45  4 avr  2015 backuppc.users
-rw-r-. 1 backuppc apache   79912 14 nov 16:28 config.pl
-rw-r-. 1 backuppc apache   80952 20 déc  2009 config.pl~
-rw-r-. 1 backuppc apache   79231 16 déc  2018 config.pl.old
-rw-r-. 1 backuppc apache   85115  4 jan  2015
config.pl.pre-3.3.0 -rw-r-. 1 backuppc apache   79231 14 nov
16:28 config.pl.pre-4.4.0 -rw-r-. 1 backuppc apache   84981
29 jui  2011 config.pl.rpmnew -rw-r--r--. 1 backuppc apache
79936 14 nov 16:28 config.pl.sample -rw-r-. 1 backuppc apa

Re: [BackupPC-users] 504 gateway timeout

2021-11-19 Thread jbk
I think I'm at a loss as to how to help as I can only base 
it in comparison with my own install of BackupPC 4.4 which 
is distributed by Redhat 8 | Rocky 8. Only BackupPC version 
3.3 is offered in RH 7 | Centos 7. So, is it fair to assume 
that you downloaded 4.4 direct from the BackupPC site and 
built and installed it per the wikI? The install directories 
for the CGI scripts are completely different in that case. 
Per the wiki instructions BackupPC_Admin was installed in 
/var/www/cgi-bin/ for version 4.4. The problem is also that 
your /etc/httpd/conf.d/BackupPC.conf is still based on 
version 3.3 locations for these scripts.


Jimk


On 11/18/21 23:32, Claude Gelinas wrote:

Hi,

look like /usr/libexec/BackupPC does not exist I need to reverts
ScriptAlias to

ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin

I also found and old BackupPC_Admin in /var/www/cgi-bin. I've deleted
it and create a symlink to /usr/share/BackupPC/sbin/BackupPC_Admin

I can now login but still get 504 gateway timeout error

Claude


Le Thu, 18 Nov 2021 23:06:08 -0500
Claude Gelinas  a écrit:


Hi,

with the last changes I cannot login into the Guy
In the httpd log I have this:
client denied by server configuration: /usr/libexec/BackupPC,
referer:http://localhost/BackupPC?action=status

Claude

Le Thu, 18 Nov 2021 09:26:10 -0500
jbk  a écrit:


Claude,

I'm replying to the list and you direct to shorten the turn
around time for my comments and your response.

I have version:
# httpd -v
Server version: Apache/2.4.37 (rocky)

   and an earlier version of 2.4 on my prior OS Scientific
Linux 7.

On my system httpd.conf has owner/group/permissions:
    -rw-r--r-- 1 backuppc apache 11928 Sep 10 10:39 httpd.conf

See my further comments below starting with httpd.conf

On 11/17/21 22:20, Claude Gelinas wrote:

Hi,

in my /etc/httpd/conf/httpd.conf I have the following:

User backuppc
Group backuppc

I've tried

User apache
Group apache

but backuppc guy was not happy

with

I have the User and Group per below

User backuppc
Group apache

There are two other lines I've edited in httpd.conf

DocumentRoot "/usr/share/BackupPC/html"

and

    Options -Indexes +FollowSymLinks

please notice the "-" and "+" symbols as this differs from
what I had for BackupPC 3.3


I'm still getting 504 error.

Onto BackupPC.conf
I overlooked the Alias section and there are some additional
edits to be made there.

I've changed /etc/httpd/conf.d/BackupPC.conf like this:


# 

# BackupPC requires valid authentication in order for the web
interfaceto
# function properly.  One can view the web interface
withoutauthentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"



# Apache 2.4

  Require valid-user
  
#Require local
  Require all granted
  





# Apache 2.2
#  AllowOverride All
order allow,deny
deny from all
allow from 127.0.0.1 192.168.xx.xx
require valid-user



The ScriptAlias lines need to point to a different location:
ScriptAlias /BackupPC
/usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc
/usr/libexec/BackupPC/BackupPC_Admin


Alias /BackupPC/images   /usr/share/BackupPC/html/
ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin

Delete the following Alias definition as it is causing one
of the errors you noted below:

Alias   /BackupPC/html/  /usr/share/BackupPC/html/

I have no other comments so I hope this gets the GUI going
for you.

JimK


the dir /etc/BackupPC is like this:
-rw-r--r--. 1 backuppc apache  47 16 jan  2017 apache.users
-rw-r--r--. 1 backuppc backuppc45  4 avr  2015 backuppc.users
-rw-r-. 1 backuppc apache   79912 14 nov 16:28 config.pl
-rw-r-. 1 backuppc apache   80952 20 déc  2009 config.pl~
-rw-r-. 1 backuppc apache   79231 16 déc  2018 config.pl.old
-rw-r-. 1 backuppc apache   85115  4 jan  2015
config.pl.pre-3.3.0 -rw-r-. 1 backuppc apache   79231 14 nov
16:28 config.pl.pre-4.4.0 -rw-r-. 1 backuppc apache   84981 29
jui  2011 config.pl.rpmnew -rw-r--r--. 1 backuppc apache   79936
14 nov 16:28 config.pl.sample -rw-r-. 1 backuppc apache
2570  4 sep  2019 hosts -rw-r--r--. 1 backuppc apache2209 25
sep  2009 hosts~ -rw-r-. 1 backuppc apache2552 16 déc
2018 hosts.old -rw-r--r--. 1 backuppc apache2214 29 jui  2011
hosts.rpmnew -rw-r--r--. 1 backuppc apache2214 14 nov 16:28
hosts.sample -rw-r-. 1 backuppc backuppc 0 17 nov 22:00
LOCK drwxr-xr-x. 2 backuppc apache4096 19 avr  2021 pc

dir /etc/httpd/conf.d is like this:
-rw-r--r--. 1 root root 736  8 jun  2020 apcupsd.conf
-rw-r--r--. 1 root root2926 10 nov 09:26 autoindex.conf
-rw-r--r--. 1 backuppc apache  1076 

Re: [BackupPC-users] 504 gateway timeout

2021-11-18 Thread jbk
The Alias directive in /etc/httpd/conf.d/BackupPC.conf at line 40 will
probably never match because it overlaps an earlier ScriptAlias.

line 37 to 40 are:
Alias /BackupPC/images   /usr/share/BackupPC/html/
ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
Alias   /BackupPC/html/  /usr/share/BackupPC/html/

Claude

Le Wed, 17 Nov 2021 09:31:18 -0500
jbk  a écrit:



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


Re: [BackupPC-users] 504 gateway timeout

2021-11-17 Thread jbk

On 11/16/21 22:10, Claude Gelinas wrote:

Hi,

My setup for backuppc is like this since many years
backuppc 3.3.0
user backuppc
group backuppc
and it was working perfectly since many years with /var/lib/BackupPC/
mounted via nfs on a Freenas server.

Claude,
I also had a working version 3.3 system that I upgraded to 
4.4. The GUI would not work in 4.4 until I made the specific 
edits to


"/etc/httpd/conf.d/BackupPC.conf" as I posted previously. Also, the apache user has to have group 
permissions for all the .pl and .conf files I have indicated in "/etc/httpd/conf.d", 
"/etc/BackupPC , /etc/BackupPC/pc/" and top level folder ie. /etc/BackupPC. Please confirm this for 
me or anyone else on the mailing list who might step in to help. See below for my line item edit 
recommendations for your /etc/httpd/conf.d/BackupPC.conf.

JimK



My problem started with the update of the freenas server. I've updated
backuppc to version 4.4.0 but this didn't solve my problem:
504 gateway timeout

I'm still able to make backup of all my PC but the Backuppc guy didn't
work for machine states or any host viewing. This prevent me to make
restore if ever I have a problem with one PC.
Apache/httpd can't read files that it doesn't have group 
permission to see per above comment.




my /etc/httpd/conf.d/BackupPC.conf is as follow:

Insert the following line at the top of this conf file:


# BackupPC requires valid authentication in order for the web interface
# to function properly.  One can view the web interface without
# authentication though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"


# Apache 2.4
   
Require valid-user


comment out or delete the line "Require local"

Require local


  
Require all granted


  




   # Apache 2.2

comment out or delete the line "AllowOverride All"

   AllowOverride All



   order allow,deny
   deny from all

insert the following two lines:

allow from 127.0.0.1 192.168.xx.xx

require valid-user



Per version 4.4 the line  is now 



Alias /BackupPC/images   /usr/share/BackupPC/html/
ScriptAlias   /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
Alias   /BackupPC/html/  /usr/share/BackupPC/html/

Delete everything below it is in conflict with above.





# Apache 2.4

   

 Require all granted
 
 Require valid-user
 
   




   # Apache 2.2

order allow,deny
deny from all
allow from 127.0.0.1 192.168.xx.xx
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"
require valid-user



Could it be because it is set for apache 2.2 instead of apache 2.4 ?

Thank you
-

Le Mon, 15 Nov 2021 09:09:20 -0500
jbk  a écrit:


On 11/14/21 17:22, Claude Gelinas wrote:

I've updated BKP to 4.4.0 but I still get the same 504 gateway error
when I try to access the host summary in the GUY. Same if I try to
see backup from any host. Other items in the left side menu are
working.

The owner/group shown below are correct

/var/lib/Backuppc is NFS mounted from my freenas and I can see there
all pc and backup. File permission/ owner are as follow

drwxr-x---. 146 backuppc backuppc 146 14 nov 17:16 cpool
drwx--.   2 backuppc backuppc   2  1 déc  2007 lost+found
drwxr-x---.  20 backuppc backuppc  20 14 nov 16:32 pc
drwxr-x---.   2 backuppc backuppc   2 22 jan  2012 pool
drwxr-x---.   2 backuppc backuppc   2 14 nov 03:11 trash

Look like backup are still done but I can't see host summary or any
pc backup

Backuppc state on the guy say:
   Le PID du serveur est 32620, sur l'hôte localhost, version 4.4.0,
   démarré le 14/11 16:32. Ce rapport a été généré le 14/11 17:07.
   La configuration a été chargée pour la dernière fois à 14/11
16:32. La prochaine file d'attente sera remplie à 14/11 18:00.

Any idea of what is wrong ?

It appears that apache/httpd is not set up correctly. On my
system the httpd user is apache and a listing of
/etc/BackupPC/ shows that the config.pl files need to have
apache as the group
/# ll /etc/BackupPC/
total 388
-rw-r--r-- 1 backuppc apache  84 Sep  9 12:58 apache.users
drwxr-x--- 2 backuppc backuppc  4096 Nov 25  2011 bin
-rw-r--r-- 1 backuppc apache   86823 Sep 11 17:59 config.pl
-rw-r--r-- 1 backuppc apache   86823 Sep 11 17:57 config.pl.old
-rw-r--r-- 1 backuppc apache   88110 Sep  8 17:51
config.pl.testr8
-rw-r--r-- 1 backuppc apache   88378 Jun 22  2020
config.pl.testr8~
drwxr-xr-x 2 root root  4096 Sep  9 09:34 distorig
-rw-r--r-- 1 backuppc apache    2279 Sep 11 17:59 hosts
-rw-r--r-- 1 backuppc apache    2246 Sep  9 09:46 hosts~
-rw-r--r-- 1 backuppc apache    2263 Sep 11 17:57 hosts.old
-rw-r--r-- 1 root root  2246 Sep  9 09:46 hosts.test
-rw-r--r-- 1 root root  224

Re: [BackupPC-users] 504 gateway timeout

2021-11-15 Thread jbk

On 11/14/21 17:22, Claude Gelinas wrote:

I've updated BKP to 4.4.0 but I still get the same 504 gateway error
when I try to access the host summary in the GUY. Same if I try to see
backup from any host. Other items in the left side menu are working.

/var/lib/Backuppc is NFS mounted from my freenas and I can see there
all pc and backup. File permission/ owner are as follow

drwxr-x---. 146 backuppc backuppc 146 14 nov 17:16 cpool
drwx--.   2 backuppc backuppc   2  1 déc  2007 lost+found
drwxr-x---.  20 backuppc backuppc  20 14 nov 16:32 pc
drwxr-x---.   2 backuppc backuppc   2 22 jan  2012 pool
drwxr-x---.   2 backuppc backuppc   2 14 nov 03:11 trash

Look like backup are still done but I can't see host summary or any pc
backup

Backuppc state on the guy say:
  Le PID du serveur est 32620, sur l'hôte localhost, version 4.4.0,
  démarré le 14/11 16:32. Ce rapport a été généré le 14/11 17:07.
  La configuration a été chargée pour la dernière fois à 14/11 16:32.
  La prochaine file d'attente sera remplie à 14/11 18:00.

Any idea of what is wrong ?
It appears that apache/httpd is not set up correctly. On my 
system the httpd user is apache and a listing of 
/etc/BackupPC/ shows that the config.pl files need to have 
apache as the group

/# ll /etc/BackupPC/
total 388
-rw-r--r-- 1 backuppc apache  84 Sep  9 12:58 apache.users
drwxr-x--- 2 backuppc backuppc  4096 Nov 25  2011 bin
-rw-r--r-- 1 backuppc apache   86823 Sep 11 17:59 config.pl
-rw-r--r-- 1 backuppc apache   86823 Sep 11 17:57 config.pl.old
-rw-r--r-- 1 backuppc apache   88110 Sep  8 17:51 
config.pl.testr8
-rw-r--r-- 1 backuppc apache   88378 Jun 22  2020 
config.pl.testr8~

drwxr-xr-x 2 root root  4096 Sep  9 09:34 distorig
-rw-r--r-- 1 backuppc apache    2279 Sep 11 17:59 hosts
-rw-r--r-- 1 backuppc apache    2246 Sep  9 09:46 hosts~
-rw-r--r-- 1 backuppc apache    2263 Sep 11 17:57 hosts.old
-rw-r--r-- 1 root root  2246 Sep  9 09:46 hosts.test
-rw-r--r-- 1 root root  2247 Sep  9 09:40 hosts.test~
-rw-r- 1 backuppc backuppc 0 Nov 15 03:00 LOCK
drwxr-xr-x 3 backuppc apache    4096 Sep 11 18:00 pc

/Also in /etc/httpd/conf.d

/# ll /etc/httpd/conf.d
total 32
-rw-r--r-- 1 root root   2926 Oct 12 22:30 autoindex.conf
-rw-r--r-- 1 backuppc apache  979 Sep 10 10:21 BackupPC.conf
-rw-r--r-- 1 backuppc apache  954 Sep  9 14:04 BackupPC.conf~
-rw-r--r-- 1 backuppc apache 1713 Jul 14 05:36 perl.conf
-rw-r--r-- 1 root root    400 Oct 12 22:30 README
-rw-r--r-- 1 root root   1252 Oct 12 22:28 userdir.conf
-rw-r--r-- 1 root root    574 Oct 12 22:28 welcome.conf
-rw-r--r-- 1 root root    574 Jun 11 11:33 
welcome.conf.disable


/This is the contents of /etc/httpd/conf.d/BackupPC.conf

/# BackupPC requires valid authentication in order for the 
web interface to
# function properly.  One can view the web interface without 
authentication

# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#

AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"


  # Apache 2.4
  
    Require valid-user
    
#  Require local
    Require all granted
    
  


  # Apache 2.2
  order deny,allow
  deny from all
  allow from 127.0.0.1 localhost 10.251.227
  allow from ::1
  require valid-user





Alias   /BackupPC/images    
/usr/share/BackupPC/html/

ScriptAlias /BackupPC /usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc /usr/libexec/BackupPC/BackupPC_Admin
~

/This is on a Rockylinux machine.
/
/

--
Jim Kelly-Rand
j...@kjkelra.com

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


Re: [BackupPC-users] Can't access older backups after upgrade

2021-11-04 Thread jbk

On 11/2/21 05:08, Anthony Chavez wrote:

On 10/19/21 7:06 PM, Anthony Chavez wrote:


On 10/9/21 3:02 PM, Anthony Chavez wrote:

Hi all,

So I have had to make a slight change to my BackupPC 
setup and while I am able to access new backups in the 
web interface, I am now unable to access my older backups.


My old setup was under a FreeNAS Jail, using the FreeBSD 
pkg of BackupPC with a nullfs mount from the jail to a 
ZFS dataset housing the backups themselves. It worked 
great for months.


When upgrading from FreeNAS 11 to TrueNAS 12, my jail 
refused to upgrade so the option was to either create a 
new jail or install Linux in a VM and mount the backups 
directory over NFSv3. I chose the latter (ArchLinux) and 
because Docker is becoming a thing in my LAN, 
adferrand/backuppc.


The error message for older backups I am seeing in the 
web interface is "Error: Directory 
/data/backuppc/pc/$host/$baknum is empty".


It appears to me that backuppc is no longer owner of the 
older backups because you changed distro's and the uid/gid 
has changed for the backuppc user. Your going to have to run 
chown backkuppc.backuppc on all the older folders & files to 
allow backuppc to see them. This takes a long time to 
complete, at least it did for me.


Jimkr

When trying to access an older backup, BackupPC_ls comes 
back with, for example: "bpc_attrib_dirRead: can't open 
/data/backuppc/cpool/72/ca/72ca0cc1bf7a179f8c3cdabc187e3887". 



Permissions check out (uid 126/backuppc, gid 
126/backuppc, umask 027) so the only thing I can think 
of is that I need to re-index or re-build the pool 
somehow, but I am not familiar enough with BackupPC 
command line utilities to know what to do at this point.


Any help would be much appreciated.


Could anyone help with this please? It's making no sense 
to me:


$ ls -ahln /data/backuppc/pc/$host/$baknum
total 65K
drwxr-x---    8 126  126   10 Aug 29 16:22 .
drwxr-x---  110 126  126  233 Oct 19 15:12 ..
-rwxr-x---    1 126  126    0 Aug 29 16:22 
attrib_5e6a2266a222d07587f687f9df5ac097
-rwxr-x---    1 126  126  695 Aug 29 16:00 
backupInfo
drwxr-x---    3 126  126    4 Aug 29 16:01 
f%2fetc
drwxr-x---    3 126  126    4 Aug 29 16:14 
f%2fhome
drwxr-x---    3 126  126    3 Aug 29 16:18 
f%2fsrv
drwxr-x---    4 126  126    4 Aug 29 16:20 
f%2fvar
drwxr-x---    2 126  126    3 Aug 29 16:22 
f%2fvar%2flib
drwxr-x---    2 126  126   95 Oct  7 14:13 
refCnt
$ /usr/local/BackupPC/bin/BackupPC_ls -h $host -n $baknum 
-s /etc /

/:
bpc_attrib_dirRead: can't open 
/data/backuppc/cpool/72/ca/72ca0cc1bf7a179f8c3cdabc187e3887
bpc_attrib_dirRead: can't open 
/data/backuppc/cpool/68/40/6940aeccff660743da3041191216d260


Is there nobody that can help me with this? Are my backups 
lost?


I am open to paying for one-on-one assistance with this. I 
would very much like to salvage this situation, if at all 
possible.






--
Jim Kelly-Rand
j...@kjkelra.com

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


Re: [BackupPC-users] BackupPC V4 Permission Denied on Client

2021-09-12 Thread jbk

On 9/9/21 9:51 PM, Kenneth Porter wrote:
--On Thursday, September 09, 2021 4:29 PM -0400 jbk 
 wrote:



The portion in bold below was not executed.


Like most mailing lists, this one is plain text only and 
stripped out the HTML part with the bolding. So it's not 
clear what part of the command wasn't executed.




By the time the digest came out I had figured out the issue. 
But to followup on loose ends I can recap my findings. 
First, the client command variable quoted below found in V3 
is deprecated in V4.


"$Conf{RsyncClientCmd} = '$sshPath -l backuppc *$host nice 
-n 19 /usr/bin/sudo* $rsyncPath $argList+';"
so none of that line was executed, but because there are 
separate lines defining the ssh command, path and rsync 
command and path and host V4 was connecting to the client 
without the "nice -n 19 /usr/bin/sudo" portion, thus not 
able to access any of the file data. Once I realized this I 
knew it was just a matter of rearranging the arguments to 
fit the new format which I succeeded in doing except for 
"nice -n 19".


A similar issue was how to backup the localhost and I found 
the solution by searching this list which was to substitute 
the call for ssh with one for sudo.


$Conf{RsyncSshArgs} = [
  '-e',
  '/usr/bin/sudo -p'
];

V4 is now up and running and has done round of full backups 
on clients and host with no errors of note yet. I'll have to 
do a test restore soon to verify.


--
Jim Kelly-Rand
j...@kjkelra.com

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


[BackupPC-users] BackupPC V4 Permission Denied on Client

2021-09-09 Thread jbk
I've been using BackupPC V3 for 12 years now and have set up 
V4 on a new install of Rocky linux 8.4. I'm running test 
backups of a client via ssh and I'm getting partial backups 
with the backup failing after a few seconds.


I figured out the issue once I read the xfer log more 
carefully. The new CGI interface does not read the V3 config 
files the same way in V4 and is ignoring a portion of the 
client command. The portion in bold below was not executed.


The config.pl and client.pl are based on the V3 versions.

Client command:
$Conf{RsyncClientCmd} = '$sshPath -l backuppc *$host nice -n 
19 /usr/bin/sudo* $rsyncPath $argList+';


I will have to edit the client PC script in the CGI to fix it.

The CGI is configured based on mod_perl.

--
Jim Kelly-Rand
j...@kjkelra.com

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


[BackupPC-users] BackupPC V4 Permission Denied on Client

2021-09-09 Thread jbk
I've been using BackupPC V3 for 12 years now and have set up 
V4 on a new install of Rocky linux 8.4. I'm running test 
backups of a client via ssh and I'm getting partial backups 
with the backup failing after a few seconds.


Here is some log output:

full backup started for directory /
Xfer PIDs are now 4218
This is the rsync child about to exec /usr/bin/rsync_bpc
rsync: [sender] opendir "/boot/grub2" failed: Permission denied (13)
rsync: [sender] opendir "/boot/loader/entries" failed: Permission denied (13)
rsync: [sender] opendir "/etc/audit" failed: Permission denied (13)


The config.pl and client.pl are based on the V3 versions.

Client command:
$Conf{RsyncClientCmd} = '$sshPath -l backuppc $host nice -n 
19 /usr/bin/sudo $rsyncPath $argList+';


If I become backuppc on the client and then run " 
/usr/bin/sudo /usr/bin/rsync -ax /root /data/tmp/ " the root 
owned files are copied w/o problem.



--
Jim Kelly-Rand
j...@kjkelra.com

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


Re: [BackupPC-users] Runaway backppc on Ubuntu 20.04LTS

2020-11-27 Thread jbk
On 11/27/20 3:55 PM, 
backuppc-users-requ...@lists.sourceforge.net wrote:

Runaway backppc on Ubuntu 20.04LTS



I happened across this post today while compiling system 
information for my own post here for the same problem. I'm 
running Scientific-Linux 7.9.


They and upstream are still on File-RsyncP 74. I removed the 
older version and downloaded the source from Meta::Cpan and 
followed the instructions in the linked github post.


Thanks.

--
Jim Kelly-Rand
j...@kjkelra.com

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


Re: [BackupPC-users] SMB Backups Fail Since Fedora 32->33 Upgrade

2020-11-21 Thread jbk
On 11/21/20 2:09 PM, 
backuppc-users-requ...@lists.sourceforge.net wrote:

SMB Backups Fail Since Fedora 32->33 Upgrade


Wild guesses here as I don't use the newer version of backuppc.

First thing is I can't access bug 1900232 to see the output 
even when I login.


If you have a backup of your Fedora server prior to the 
upgrade then I would compare directory:


/var/lib/samba/lock/

with the older one to see if there is a difference in it's 
contents.


Understanding what the file gencache.tdb does may also help 
the diagnosis.


--
Jim Kelly-Rand
j...@kjkelra.com

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


[BackupPC-users] Browse client backups w/o triggering backups

2015-03-01 Thread jbk
I am currently hosting backuppc on a server running 
Scientific Linux 6.1.


When I want to browse a disk that is not the current series 
of backups to find a file to restore using the CGI interface 
I always run the risk of a backup running on one of the 
clients and destroying the historical record.
Is there a way to start the backuppc daemon and disable 
backups globally?


Also, on a side note the wiki seems to have disappeared, I 
get a 404 error when I click the link on the email digest I 
receive.



--
Jim KR
j...@kjkelra.com

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] Browse client backups w/o triggering backups

2015-03-01 Thread jbk
I am currently hosting backuppc on a server running 
Scientific Linux 6.1.


When I want to browse a disk that is not the current series 
of backups to find a file to restore using the CGI interface 
I always run the risk of a backup running on one of the 
clients and destroying the historical record.
Is there a way to start the backuppc daemon and disable 
backups globally?


Just to followup I did try remounting the disk read only but 
backuppc complains it can't make a hard link and dies.


--
Jim KR
j...@kjkelra.com

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] Pam authentication - Fedora 20

2014-01-15 Thread jbk
On 01/12/2014 01:12 PM, jbk wrote:
 I need some help re-establishing backups to my laptop that
 has been updated to Fedora 20 from Fedora 14.

 I've been using BackupPC for 5 years now with minor issues
 usually after upgrades to the latest distro releases. All,
 clients and server, are Redhat linux based distro's. I have
 set up the server to ssh as backuppc to backuppc on the
 client as described on the BackupPC website.

 The error message I get is:
 sshd[2161]: fatal: Access denied for user backuppc by PAM
 account configuration [preauth]

 What I have done to reconfigure backuppc:

 Copy client host rsa.pub key to the servers backuppc
 knownhosts file
 On the client I have restored the authorized_keys and
 knownhosts files with the correct permissions and ownerhips.



I have solved the ssh access issue by re-initiating the 
client password of backuppc. I fixed the file list not 
received error by fixing the hostname in the client config 
file which I had copied from a different host setup.

All appears to be well now.

Jim Kelly-Rand

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
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] Pam authentication - Fedora 20

2014-01-12 Thread jbk
I need some help re-establishing backups to my laptop that 
has been updated to Fedora 20 from Fedora 14.

I've been using BackupPC for 5 years now with minor issues 
usually after upgrades to the latest distro releases. All, 
clients and server, are Redhat linux based distro's. I have 
set up the server to ssh as backuppc to backuppc on the 
client as described on the BackupPC website.

The error message I get is:
sshd[2161]: fatal: Access denied for user backuppc by PAM 
account configuration [preauth]

What I have done to reconfigure backuppc:

Copy client host rsa.pub key to the servers backuppc 
knownhosts file
On the client I have restored the authorized_keys and 
knownhosts files with the correct permissions and ownerhips.


-- 
Jim KR
j...@kjkelra.com


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
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] Errors on Backup

2011-11-26 Thread jbk
On 11/25/2011 12:09 PM, jbk wrote:
 On 11/23/2011 08:31 PM, jbk wrote:

 BackupPC-3.2.1-6.el6.x86_64
 I have recently moved my server from Fedora to Scientific 
 Linux 6.1 .
 I installed the backuppc binary from el6 and configured 
 the system to use Mod_perl. At first the test back ups 
 seemed to be working but when I try to do a full backup 
 based on the host configuration files backuppc will only 
 back up the root '/' file system. Partitions in fstab 
 that are mounted at specific mount points return empty 
 dumps.



 I've ignored these for now as I don't have a whole lot of 
 time to experiment.
Ignorance is bliss until you start backing up what you don't 
want. I now understand the hierarchy of the scripts below 
and have revised the format as follows:

$Conf{BackupFilesOnly} = {
  '*' =[
'/subdir1',
'/subdir2',
'/subdir3'
  ]
};

The above applies to all mount points.
The below applies to a specific mount point.

$Conf{BackupFilesOnly} = {
  'mountpoint' =[
'/subdir1',
'/subdir2',
'/subdir3'
  ]
};

This format carries over to the BackupFilesExclude.

I'm surprised that my old  _client.pl files worked given my 
prior assumptions, but except for one restore I've never 
really checked what was actually getting backed up for the 
last three years.



 So comparing my host.config.pl

 2008 version

 $Conf{BackupFilesOnly} = {
  '*' =[
'/subdir1',
'/subdir2',
'/subdir3'
  ]
 };

 2011 version

The below treated the sub directories as separate mount 
points. I'm not sure how it was working but I noticed that 
this format when applied to exclusions was not.


 $Conf{BackupFilesOnly} = {
  '/subdir1' = [
' '
 ],
  /subdir2' = [
' '
  ],
  '/subdir3' = [
' '
  ]
 };

 So for what ever reason the new format works though the 
 commentary in the config.pl says that old 2008 version 
 should work also. I always use the CGI to create the 
 configurations, I assume there is less chance for error 
 that way.
  till next
 Jim Kelly-Rand






--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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] Errors on Backup

2011-11-25 Thread jbk
On 11/23/2011 08:31 PM, jbk wrote:

BackupPC-3.2.1-6.el6.x86_64
 I have recently moved my server from Fedora to Scientific 
 Linux 6.1 .
 I installed the backuppc binary from el6 and configured 
 the system to use Mod_perl. At first the test back ups 
 seemed to be working but when I try to do a full backup 
 based on the host configuration files backuppc will only 
 back up the root '/' file system. Partitions in fstab that 
 are mounted at specific mount points return empty dumps. 
 There are a number of error messages that have been 
 recorded. The first is when I start backuppc:

 # /etc/init.d/backuppc start
 Starting BackupPC: 
 [  OK  ]
 /etc/BackupPC//config.pl did not return a true value at - 
 line 1.
 Usage: grep [OPTION]... PATTERN [FILE]...
 Try `grep --help' for more information.

This error went away. I'm not sure why. I did a Meld Diff of 
my config.pl that was created in 2008 and the one that comes 
with the this latest version and noticed some parameter 
quoting changes like parameters that were numerical values 
were no longer captured in ' ' single quotes. I didn't make 
any changes to my config to reflect this.

 The following lines are the errors I get when backuppc 
 attempts to descend into mountpoints. This occurs on the 
 server as well as on network clients.

 full backup started for directory /data/bilbo (baseline 
 backup #163)
 Running: /usr/bin/sudo /usr/bin/rsync --server --sender\
  --numeric-ids --perms --owner --group -D --links\
 --hard-links --times --block-size=2048 --recursive\
 --one-file-system --exclude= --ignore-times . /data/bilbo/
 Xfer PIDs are now 29909
 Got remote protocol 30
 Negotiated protocol version 28
 Sent include: /bin
 Sent include: /boot
 Sent include: /data
 Sent include: /dev
 Sent include: /etc
 Sent include: /home
 Sent include: /lib
 Sent include: /lib64
 Sent include: /opt
 Sent include: /root
 Sent include: /sbin
 Sent include: /srv
 Sent include: /usr
 Sent include: /var
 Sent exclude: /*
 Sent exclude: cache
 Sent exclude: /data/bilbo/backup
 Sent exclude: /data/tmp
 Sent exclude: tmp
 Sent exclude: *.tmp
 Sent exclude: lost+found
 Sent exclude: /var/empty
 Sent exclude: /var/lock
 Sent exclude: /var/run
 Sent exclude: /var/spool
 Sent exclude: *.~
 Sent exclude: /sys
 Xfer PIDs are now 29909,29911
 [ skipped 1 lines ]
 Done: 0 files, 0 bytes
 Got fatal error during xfer (No files dumped for share /data)
 Backup aborted (No files dumped for share /data)
 Saving this as a partial backup, replacing the prior one 
 (got 110083 and 0 files versus 0)
 full backup started for directory /; updating partial #164

 #End of Output  #

 I've tried to search the archives for relevant issues and 
 haven't found a match to my problem.
 Just to reiterate the backups of the root file system are 
 successful it is erroring out on the mounted sub-partitions.


OK I've done some testing by re-creating my per host config 
file and have succeeded in backing up the sub-partitions. It 
seems that the syntax has changed for the RsyncShareName and 
BackupFilesOnly fields when using the CGI interface. I find 
this interface not to be easy to understand below the 
heading Include/Exclude. I assume for the shares listed 
under RsyncShareName that I want to create a list of 
subdirectories under BackupFilesOnly that correspond. There 
is the _New_Key_ field with the _Add_  button following, 
which is what I used to add the listing for each sub 
directory to include. But, for each new listing I create a 
whole new set of buttons appear along side. I've ignored 
these for now as I don't have a whole lot of time to experiment.

So comparing my host.config.pl

2008 version

$Conf{BackupFilesOnly} = {
  '*' =[
'/subdir1',
'/subdir2',
'/subdir3'
  ]
};

2011 version

$Conf{BackupFilesOnly} = {
  '/subdir1' = [
' '
 ],
  /subdir2' = [
' '
  ],
  '/subdir3' = [
' '
  ]
};

So for what ever reason the new format works though the 
commentary in the config.pl says that old 2008 version 
should work also. I always use the CGI to create the 
configurations, I assume there is less chance for error that 
way.
  till next
 Jim Kelly-Rand





--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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] Errors on Backup

2011-11-23 Thread jbk
I have recently moved my server from Fedora to Scientific 
Linux 6.1 .
I installed the backuppc binary from el6 and configured the 
system to use Mod_perl. At first the test back ups seemed to 
be working but when I try to do a full backup based on the 
host configuration files backuppc will only back up the root 
'/' file system. Partitions in fstab that are mounted at 
specific mount points return empty dumps. There are a number 
of error messages that have been recorded. The first is when 
I start backuppc:

# /etc/init.d/backuppc start
Starting BackupPC: 
[  OK  ]
/etc/BackupPC//config.pl did not return a true value at - 
line 1.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.

This must be do to the reading of the perl files in 
INSTALL_DIR/bin

The following lines are the errors I get when backuppc 
attempts to descend into mountpoints. This occurs on the 
server as well as on network clients.

full backup started for directory /data/bilbo (baseline backup #163)
Running: /usr/bin/sudo /usr/bin/rsync --server --sender\
  --numeric-ids --perms --owner --group -D --links\
--hard-links --times --block-size=2048 --recursive\
--one-file-system --exclude= --ignore-times . /data/bilbo/
Xfer PIDs are now 29909
Got remote protocol 30
Negotiated protocol version 28
Sent include: /bin
Sent include: /boot
Sent include: /data
Sent include: /dev
Sent include: /etc
Sent include: /home
Sent include: /lib
Sent include: /lib64
Sent include: /opt
Sent include: /root
Sent include: /sbin
Sent include: /srv
Sent include: /usr
Sent include: /var
Sent exclude: /*
Sent exclude: cache
Sent exclude: /data/bilbo/backup
Sent exclude: /data/tmp
Sent exclude: tmp
Sent exclude: *.tmp
Sent exclude: lost+found
Sent exclude: /var/empty
Sent exclude: /var/lock
Sent exclude: /var/run
Sent exclude: /var/spool
Sent exclude: *.~
Sent exclude: /sys
Xfer PIDs are now 29909,29911
[ skipped 1 lines ]
Done: 0 files, 0 bytes
Got fatal error during xfer (No files dumped for share /data)
Backup aborted (No files dumped for share /data)
Saving this as a partial backup, replacing the prior one (got 110083 and 0 
files versus 0)
full backup started for directory /; updating partial #164

#End of Output  #

I've tried to search the archives for relevant issues and 
haven't found a match to my problem.
Just to reiterate the backups of the root file system are 
successful it is erroring out on the mounted sub-partitions.

Any insight would be appreciated.

Jim Kelly-Rand


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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] Admin user denied access to the CGI

2010-02-27 Thread jbk
I am now able to access the CGI as before.
I discovered the issue was the default hosts file format was confusing 
apache.

I commented out the line beginning with:
::1
and now all is working as expected.

Jim K-R

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] Admin user denied access to the CGI

2010-02-24 Thread jbk
I get this error when I try to access the CGI in Fedora 12:

403
You don't have permission to access /BackupPC on this server.

I am currently running backuppc on Fedora 10 using the 
distro binaries
and I am able to access the CGI.

I have installed Fedora 12 and have installed backuppc 
there. I have
duplicated the configurations in etc/BackupPC and made sure 
that the
permissions, users and UID's are the same and no other UID's 
conflict.

Here is an excerpt from the httpd error log:
[Wed Feb 24 10:34:16 2010] [error] python_init: Python 
version mismatch,
expected '2.6', found '2.6.2'.
[Wed Feb 24 10:34:16 2010] [error] python_init: Python 
executable found
'/usr/bin/python'.
[Wed Feb 24 10:34:16 2010] [error] python_init: Python path 
being used
'/usr/lib64/python26.zip:/usr/lib64/python2.6/:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-tk:/usr/lib64/python2.6/lib-old:/usr/lib64/python2.6/lib-dynload'.
[Wed Feb 24 10:34:16 2010] [notice] mod_python: Creating 4 
session
mutexes based on 256 max processes and 0 max threads.
[Wed Feb 24 10:34:16 2010] [notice] mod_python: using 
mutex_directory /tmp
[Wed Feb 24 10:34:16 2010] [notice] Apache/2.2.14 (Unix) 
DAV/2 PHP/5.3.1
mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 
OpenSSL/1.0.0-fips-beta4
mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal 
operations
[Wed Feb 24 11:27:12 2010] [error] [client ::1] client 
denied by server
configuration: /usr/share/BackupPC/sbin/BackupPC_Admin


Backuppc is running in F 12 per the log file in 
/var/log/BackupPC so
this is just a CGI access issue. I migrated from F7 to F10 
without this
issue.




Jim KR




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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] syntax for smb exclude

2008-02-10 Thread jbk
Craig Barratt wrote:
 jbk writes:
 
 I have had to implement a work around under Fedora 7. It all
 surrounds getting 'BackupFilesExclude' to work using 'smb'
 as the 'Xfermethod'. The main issue is that variable
 substitution for the file list does not work.

 Xfer.log output for a full backup:
 
 Running: /usr/bin/smbclient $hostname\\C\$ -A
 /etc/BackupPC/ADMINISTRATOR -E -d 1 -c tarmode\ full -TcX -
 \$filelist
^^^
 
 The substitution keywords are case sensitive.  The correct
 keyword is $fileList.
 
 Craig
 


My mistake but that still does not explain why $fileList is
being backslash escaped.
Now it works, except that names (file or folder) can not
have spaces in them. So you have to list names with spaces
directly on the command line with the spaces escaped. I
could not figure out a way to do it in the $fileList.
Jim KR




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Recent update of BackupPC on F7 has caused Failure

2008-02-10 Thread jbk
I had BackupPC installed on Jan 20 this year. It has been 
running successfully, backing up the host and two clients 
for a week now. Yesterday the 9th it was updated and now 
does not run.
INSTALL HISTORY
# less /var/log/yum.* | grep BackupPC
Jan 20 14:58:46 Installed: BackupPC.noarch 3.0.0-3.fc7
Feb 09 17:51:53 Updated: BackupPC.noarch 3.1.0-1.fc7
Feb 09 22:50:17 Erased: BackupPC
Feb 09 22:52:09 Installed: BackupPC - 3.1.0-1.fc7.noarch

ERROR OUTPUT
# /etc/init.d/backuppc start
Starting BackupPC: 2008-02-10 10:25:56 Can't create a test 
hardlink between a file in /data/bilbo/backup/BackupPC/pc 
and /data/bilbo/backup/BackupPC/cpool.  Either these are 
different file systems, or this file system doesn't support 
hardlinks, or these directories don't exist, or there is a 
permissions problem, or the file system is out of inodes or 
full.  Use df, df -i, and ls -ld to check each of these 
possibilities. Quitting...
END OUTPUT

The device an external USB disk, formatted as ext3, is only 
10% full. I then did as suggested in the error output and 
found no issues with permissions or inodes. To confirm this 
I entered a shell as user backuppc and created a file under 
the folder /./BackupPC/pc/ and then hardlinked under 
//BackupPC/ on the external disk.

When I run:
bash-3.2$ /usr/share/BackupPC/bin/BackupPC_dump -v -f bagend
Can't connect to server (unix connect: Connection refused)

Where do I go from here?

Jim KR


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Recent update of BackupPC on F7 has caused Failure

2008-02-10 Thread jbk
Les Mikesell wrote:
 jbk wrote:

 If you have SELinux enabled, try turning it off.  If that fixes things 
 report the problem to the fedora packager.
 

I just filed a bug report for this package.
https://bugzilla.redhat.com/show_bug.cgi?id=432268

I wish I could back out to the previous version but they 
don't keep the older version as far as I can tell.

Jim KR


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] BackupPC storing multiple copies of files, and other problems

2008-02-10 Thread jbk
Les Mikesell wrote:
 Joe Bayes wrote:
 
 I've got a Fedora 8 system, running BackupPC 3.1.0-1 out of the
 rpm. I've run into several problems with BackupPC.

I believe this is a bug in Fedora packaging. I have the same 
problem after the latest update. I do not use selinux. Since 
I filed the bug today, another has posted a follow on 
describing the same symptoms. When I looked at the package 
file list and the install directory I could see a number of 
files were not installed. I removed and then reinstalled 
BackupPC and during the reinstall got a 'broken pipe' 
message, and still do not have a working backup.

Jim KR


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] BackupPC storing multiple copies of files, and other problems

2008-02-10 Thread jbk
Les Mikesell wrote:
 Joe Bayes wrote:
 Are your logs full of can't link errors?
 Yes! There are lots of these:

 2008-02-08 22:41:53 BackupPC_link got error -4 when calling 
 MakeFileLink(/home/BackupPC//pc/jane/12/fC$/fWINNT/fsystem32/fReinstallBackups/fPCI#VEN_10DEDEV_0110SUBSYS_REV_B2#4102AC5BC000F0/f/fDriverFiles/fnvwrshu.dll,
  4a830141464d56a423b1adf6c3462850, 1)


 It normally creates them in the install step which the disto-packaged 
 versions don't repeat.  If you need to move locations after a packaged 
 install it might work best to add symlinks to the original location 
 because the TopDir location becomes hardcoded in some places during the 
 install too.
 
 For the record, I've got plenty of inodes, 40+G of free diskspace
 (with just one BackupPC full backup), and selinux is in permissive
 mode. 

 Now that I've created pool in the proper place, I'm going to delete my
 backed-up data and try running two full backups again. I'll let you
 know how it turns out. 
 
 It should only use the pool directory if you have disabled compression. 
   Otherwise the compressed/pooled links should be under cpool.
 

Well, I should have read this more carefully. Now I have to 
go rescind my bug report. I just created the missing 
directories and started BackupPC. Three Inc. backups have 
run as expected.
It would be better if the default pool directories were 
setable with $topDir.

Jim KR

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] syntax for smb exclude

2008-02-03 Thread jbk
I have had to implement a work around under Fedora 7. It all
surrounds getting 'BackupFilesExclude' to work using 'smb'
as the 'Xfermethod'. The main issue is that variable
substitution for the file list does not work.

Xfer.log output for a full backup:

Running: /usr/bin/smbclient $hostname\\C\$ -A
/etc/BackupPC/ADMINISTRATOR -E -d 1 -c tarmode\ full -TcX -
\$filelist
full backup started for share C$
Xfer PIDs are now 18319,18318
Domain=[$HOSTNAME] OS=[Windows 5.0] Server=[Windows 2000
LAN Manager]
tarmode is now full, system, hidden, noreset, verbose
tar: dumped 19 files and directories
Total bytes written: 2752000
   create   644   0/0  24 CONFIG.SYS
   create   644   0/0   0 AUTOEXEC.001
   create   644   0/0   0 IO.SYS
   create   644   0/0   0 MSDOS.SYS
   create   644   0/03119 PCcheck.LOG
   create d 755   0/0   0 Recycled
   create   644   0/0  65 Recycled/desktop.ini
   create   644   0/0  20 Recycled/INFO2
   create   644   0/0   0 AUTOEXEC.BAT
   create   644   0/0  535248 ntfs.sys
   create   644   0/0 1640976 ntoskrnl.exe
   create   644   0/0  214432 ntldr
   create   644   0/0   34724 NTDETECT.COM
   create   644   0/0 192 boot.ini
   create   644   0/0  150528 arcldr.exe
   create   644   0/0  163840 arcsetup.exe
   create   644   0/01024 .rnd
   create   644   0/0 616 EasyShareInstall.log
   create d 755   0/0   0 filename with spaces
tarExtract: Done: 0 errors, 4 filesExist, 0 sizeExist, 0
sizeExistComp, 17 filesTotal, 2744808 sizeTotal
###
Notice that the $ sign preceding $filelist gets escaped
preventing the list from being read.

Below is the machine config file:
###
$Conf{SmbClientFullCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcX - $filelist';
$Conf{SmbClientIncrCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcNX $timeStampFile - Recycled Cache-GoogleEarth FileTrans
gnu/cygPackman tmp RECYCLER System\\ Volume\\ Information
Program\\ Files WINNT WUTEMP pagefile.sys hiberfil.sys';
$Conf{SmbClientRestoreCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-Tx -';
$Conf{SmbShareName} = [
   'C$'
];
$Conf{SmbShareUserName} = '/etc/BackupPC/ADMINISTRATOR';
$Conf{XferMethod} = 'smb';
$Conf{BackupFilesExclude} = {
   '*' = [
 'filename\ with\ spaces',
 'Recycled'
   ]
};

Please note that on the incremental backup line that I have
listed all the exclude files individually following '-'. If
I substitute that list on the full backup line in my tests,
  those files are excluded from the backup.
Now I don't know if this is a problem with the backuppc
script or whether it is a smbclient issue, I haven't tested
it on the command line. I know that in the past I was not
able to get variable substitution to work with smbclient for
the exclude list so that may point to the source of the issue.
I also don't know if regular expressions work for the file
lists or not on Fedora.

Jim Kelly-Rand


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] syntax for smb exclude

2008-02-03 Thread jbk
Sorry for the double post. It had to do with submitting the 
question before getting all confirmations so I got a send 
error on the first.

Jim K-R

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] syntax for smb exclude

2008-02-03 Thread jbk
I have had to implement a work around under Fedora 7. It all
surrounds getting 'BackupFilesExclude' to work using 'smb'
as the 'Xfermethod'. The main issue is that variable
substitution for the file list does not work.

Xfer.log output for a full backup:

Running: /usr/bin/smbclient $hostname\\C\$ -A
/etc/BackupPC/ADMINISTRATOR -E -d 1 -c tarmode\ full -TcX -
\$filelist
full backup started for share C$
Xfer PIDs are now 18319,18318
Domain=[$HOSTNAME] OS=[Windows 5.0] Server=[Windows 2000
LAN Manager]
tarmode is now full, system, hidden, noreset, verbose
tar: dumped 19 files and directories
Total bytes written: 2752000
   create   644   0/0  24 CONFIG.SYS
   create   644   0/0   0 AUTOEXEC.001
   create   644   0/0   0 IO.SYS
   create   644   0/0   0 MSDOS.SYS
   create   644   0/03119 PCcheck.LOG
   create d 755   0/0   0 Recycled
   create   644   0/0  65 Recycled/desktop.ini
   create   644   0/0  20 Recycled/INFO2
   create   644   0/0   0 AUTOEXEC.BAT
   create   644   0/0  535248 ntfs.sys
   create   644   0/0 1640976 ntoskrnl.exe
   create   644   0/0  214432 ntldr
   create   644   0/0   34724 NTDETECT.COM
   create   644   0/0 192 boot.ini
   create   644   0/0  150528 arcldr.exe
   create   644   0/0  163840 arcsetup.exe
   create   644   0/01024 .rnd
   create   644   0/0 616 EasyShareInstall.log
   create d 755   0/0   0 filename with spaces
tarExtract: Done: 0 errors, 4 filesExist, 0 sizeExist, 0
sizeExistComp, 17 filesTotal, 2744808 sizeTotal
###
Notice that the $ sign preceding $filelist gets escaped
preventing the list from being read.

Below is the machine config file:
###
$Conf{SmbClientFullCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcX - $filelist';
$Conf{SmbClientIncrCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcNX $timeStampFile - Recycled Cache-GoogleEarth FileTrans
gnu/cygPackman tmp RECYCLER System\\ Volume\\ Information
Program\\ Files WINNT WUTEMP pagefile.sys hiberfil.sys';
$Conf{SmbClientRestoreCmd} = '$smbClientPath
$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-Tx -';
$Conf{SmbShareName} = [
   'C$'
];
$Conf{SmbShareUserName} = '/etc/BackupPC/ADMINISTRATOR';
$Conf{XferMethod} = 'smb';
$Conf{BackupFilesExclude} = {
   '*' = [
 'filename\ with\ spaces',
 'Recycled'
   ]
};

Please note that on the incremental backup line that I have
listed all the exclude files individually following '-'. If
I substitute that list on the full backup line in my tests,
  those files are excluded from the backup.
Now I don't know if this is a problem with the backuppc
script or whether it is a smbclient issue, I haven't tested
it on the command line. I know that in the past I was not
able to get variable substitution to work with smbclient for
the exclude list so that may point to the source of the issue.
I also don't know if regular expressions work for the file
lists or not on Fedora.

Jim Kelly-Rand


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/