Re: [BackupPC-users] FEATURE REQUEST: $Conf{BackupFilesFilter}

2022-01-04 Thread backuppc
Ignore my comment about commuting - I think --include and --exclude
may actually commute, not true for more complicated filters though.

"" wrote at about 15:44:40 -0500 on Tuesday, January 4, 2022:
 > Creating a $Conf{BackupFilesFilter} hash analogous to
 > $Conf{BackupFilesExclude} and $Conf{BackupFilesOnly} would allow for
 > more general --filter= rules for the popular rsync transport method.
 > 
 > The general --filter= methodoolgy is very powerful and allows for much
 > more granular and powerful include/exclude rules than the simple
 > concatenation of all the --include elements followed by all the
 > --exclude elements (and to respond to the code in Rsync.pm, they don't
 > always commute).
 > 
 > For example, I would like to *exclude* '/var/cache/*/*' but *include*
 > '/var/cache/apt'.
 > Without a filter, one would need to add a separate share just to
 > capture '/var/cache/apt'
 > 
 > The feature addition should be pretty trivial as you would just need to add a
 > stanza like the following to Rsync.pm after the foreach loop for
 > BackupFilesExlude:
 > 
 > if ( defined($conf->{BackupFilesFilter}{$t->{shareName}}) ) {
 > foreach my $file2 ( @{$conf->{BackupFilesFilter}{$t->{shareName}}} ) {
 > #
 > # just append additional filter lists onto the end
 > #
 > my $file = $file2;
 > $file = encode($conf->{ClientCharset}, $file)
 > if ( $conf->{ClientCharset} ne "" );
 > push(@fileList, "--filter=$file");
 > 
 > Corresponding minor changes to the following files would be required:
 > - Config.pl
 > - EditConf.pm
 > - Meta.pm
 > - Text.pm
 > - Protocols.pm
 > - Lib.pm


___
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] FEATURE REQUEST: $Conf{BackupFilesFilter}

2022-01-04 Thread
Creating a $Conf{BackupFilesFilter} hash analogous to
$Conf{BackupFilesExclude} and $Conf{BackupFilesOnly} would allow for
more general --filter= rules for the popular rsync transport method.

The general --filter= methodoolgy is very powerful and allows for much
more granular and powerful include/exclude rules than the simple
concatenation of all the --include elements followed by all the
--exclude elements (and to respond to the code in Rsync.pm, they don't
always commute).

For example, I would like to *exclude* '/var/cache/*/*' but *include*
'/var/cache/apt'.
Without a filter, one would need to add a separate share just to
capture '/var/cache/apt'

The feature addition should be pretty trivial as you would just need to add a
stanza like the following to Rsync.pm after the foreach loop for
BackupFilesExlude:

if ( defined($conf->{BackupFilesFilter}{$t->{shareName}}) ) {
foreach my $file2 ( @{$conf->{BackupFilesFilter}{$t->{shareName}}} ) {
#
# just append additional filter lists onto the end
#
my $file = $file2;
$file = encode($conf->{ClientCharset}, $file)
if ( $conf->{ClientCharset} ne "" );
push(@fileList, "--filter=$file");

Corresponding minor changes to the following files would be required:
- Config.pl
- EditConf.pm
- Meta.pm
- Text.pm
- Protocols.pm
- Lib.pm


___
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] Raspberry Pi 4 stops at /run

2022-01-04 Thread backuppc
Diving a little deeper, Not clear why you are backing up /run at all
as it is on a separate tempfs.
Assuming you are backing up '/' (root) and using the default
--one-file-system flag then you should never be touching /run

backu...@kosowsky.org wrote at about 10:24:03 -0500 on Tuesday, January 4, 2022:
 > I backup my RPI4 every night without incident.
 > I do exclude some of the runtime files -- not because they cause
 > errors but because it's a waste of space.
 > 
 > George King wrote at about 14:41:37 + on Tuesday, January 4, 2022:
 >  > I don't think its anything intrinsic to the RPi 4.  I have RPi 4 with 
 >  > Raspbian Buster running a Nextcloud server backing up onto Backuppc 
 >  > normally, but I'm only backing up the data files.
 >  > 
 >  > On 04/01/2022 03:53, backu...@kosowsky.org wrote:
 >  > > Gregory P. Ennis wrote at about 21:02:14 -0600 on Monday, January 3, 
 > 2022:
 >  > >   > I also am trying to backup a RaspberryPi4 that keeps hanging an 
 > stopping at the
 >  > >   > directory /run .  BackupPC does not error out and I have not found 
 > any log
 >  > >   > entries of concern.  It just pauses at /run and stays at that point 
 > until I
 >  > >   > either reboot or restart backuppc.
 >  > >
 >  > > Why are you backing up /run?
 >  > > The entries are volatile and are cleared on reboot so you should
 >  > > exclude them.
 >  > >
 >  > >   > BackupPC does allows me to stop the process but it does not stop 
 > the process.
 >  > >   > the Stop/Dequeue Backup tab is depressed when it is clicked but
 >  > >   > nothing happens
 >  > >
 >  > > Sometimes it can take a while to stop/dequeue if the transport method
 >  > > (e.g. rsync) is stuck.
 >  > >
 >  > >
 >  > > ___
 >  > > 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 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 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 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] Raspberry Pi 4 stops at /run

2022-01-04 Thread backuppc
Actually, looking through my config file for RP4, I see that I am
backing up everything on the root filesystem -- including volatile
directories like /run.
(this is a config mistake in that I forgot to customize my config file
for RP4)

So definitely not a backuppc problem.

backu...@kosowsky.org wrote at about 10:24:03 -0500 on Tuesday, January 4, 2022:
 > I backup my RPI4 every night without incident.
 > I do exclude some of the runtime files -- not because they cause
 > errors but because it's a waste of space.
 > 
 > George King wrote at about 14:41:37 + on Tuesday, January 4, 2022:
 >  > I don't think its anything intrinsic to the RPi 4.  I have RPi 4 with 
 >  > Raspbian Buster running a Nextcloud server backing up onto Backuppc 
 >  > normally, but I'm only backing up the data files.
 >  > 
 >  > On 04/01/2022 03:53, backu...@kosowsky.org wrote:
 >  > > Gregory P. Ennis wrote at about 21:02:14 -0600 on Monday, January 3, 
 > 2022:
 >  > >   > I also am trying to backup a RaspberryPi4 that keeps hanging an 
 > stopping at the
 >  > >   > directory /run .  BackupPC does not error out and I have not found 
 > any log
 >  > >   > entries of concern.  It just pauses at /run and stays at that point 
 > until I
 >  > >   > either reboot or restart backuppc.
 >  > >
 >  > > Why are you backing up /run?
 >  > > The entries are volatile and are cleared on reboot so you should
 >  > > exclude them.
 >  > >
 >  > >   > BackupPC does allows me to stop the process but it does not stop 
 > the process.
 >  > >   > the Stop/Dequeue Backup tab is depressed when it is clicked but
 >  > >   > nothing happens
 >  > >
 >  > > Sometimes it can take a while to stop/dequeue if the transport method
 >  > > (e.g. rsync) is stuck.
 >  > >
 >  > >
 >  > > ___
 >  > > 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 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 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 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] Raspberry Pi 4 stops at /run

2022-01-04 Thread backuppc
I backup my RPI4 every night without incident.
I do exclude some of the runtime files -- not because they cause
errors but because it's a waste of space.

George King wrote at about 14:41:37 + on Tuesday, January 4, 2022:
 > I don't think its anything intrinsic to the RPi 4.  I have RPi 4 with 
 > Raspbian Buster running a Nextcloud server backing up onto Backuppc 
 > normally, but I'm only backing up the data files.
 > 
 > On 04/01/2022 03:53, backu...@kosowsky.org wrote:
 > > Gregory P. Ennis wrote at about 21:02:14 -0600 on Monday, January 3, 2022:
 > >   > I also am trying to backup a RaspberryPi4 that keeps hanging an 
 > > stopping at the
 > >   > directory /run .  BackupPC does not error out and I have not found any 
 > > log
 > >   > entries of concern.  It just pauses at /run and stays at that point 
 > > until I
 > >   > either reboot or restart backuppc.
 > >
 > > Why are you backing up /run?
 > > The entries are volatile and are cleared on reboot so you should
 > > exclude them.
 > >
 > >   > BackupPC does allows me to stop the process but it does not stop the 
 > > process.
 > >   > the Stop/Dequeue Backup tab is depressed when it is clicked but
 > >   > nothing happens
 > >
 > > Sometimes it can take a while to stop/dequeue if the transport method
 > > (e.g. rsync) is stuck.
 > >
 > >
 > > ___
 > > 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 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 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] Raspberry Pi 4 stops at /run

2022-01-04 Thread George King
I don't think its anything intrinsic to the RPi 4.  I have RPi 4 with 
Raspbian Buster running a Nextcloud server backing up onto Backuppc 
normally, but I'm only backing up the data files.


On 04/01/2022 03:53, backu...@kosowsky.org wrote:

Gregory P. Ennis wrote at about 21:02:14 -0600 on Monday, January 3, 2022:
  > I also am trying to backup a RaspberryPi4 that keeps hanging an stopping at 
the
  > directory /run .  BackupPC does not error out and I have not found any log
  > entries of concern.  It just pauses at /run and stays at that point until I
  > either reboot or restart backuppc.

Why are you backing up /run?
The entries are volatile and are cleared on reboot so you should
exclude them.

  > BackupPC does allows me to stop the process but it does not stop the 
process.
  > the Stop/Dequeue Backup tab is depressed when it is clicked but
  > nothing happens

Sometimes it can take a while to stop/dequeue if the transport method
(e.g. rsync) is stuck.


___
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 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] Raspberry Pi 4 stops at /run

2022-01-04 Thread G.W. Haywood via BackupPC-users

Hi there,

On Tue, 4 Jan 2022, Jeff Kosowsky wrote:

Gregory P. Ennis wrote at about 21:02:14 -0600 on Monday, January 3, 2022:
> ...
> I also am trying to backup a RaspberryPi4 that keeps hanging an stopping at 
the
> directory /run .  BackupPC does not error out and I have not found any log
> entries of concern.  It just pauses at /run and stays at that point until I
> either reboot or restart backuppc. 


Why are you backing up /run?
The entries are volatile and are cleared on reboot so you should
exclude them.
...


It's probably also worth mentioning that under Linux, BSD, and other
Unix-type systems in general there are a few other directories which
should not be backed up - nor, indeed, even accessed unnecessarily.

For example raw hardware devices, including mass storage devices, are
exposed in the filesystem.  To mess with them carelessly is perilous.

--

73,
Ged.



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