Re: [BackupPC-users] rsync via ssh/rrsync

2024-05-23 Thread Christian Völker via BackupPC-users

Well, I guess you'll need to make sure ssh works fine.
To do so, go to your backuppc server an switch into the user context of 
backuppc by "su - backuppc". From there issue "ssh user@hostname" and 
accept the public key of the target client.
Once done, it should run without any problems. As long as you have rsync 
installed on your target and it is configured to be found in the default 
path.


/Christian


Am 23.05.24 um 08:23 schrieb Gandalf Corvotempesta:

hi guys
im using with great success backuppc backing up clients with rsyncd

for one host i have to move from rsyncd to rsync through ssh (and 
rrsync on ssh command) but im hitting tons of different errors


can someone stare a working config for rsync? other that changing the 
share name to the path (ie from "everything" as share name to "/") and 
changing "rsyncd" to "rsync", everything else is the same?



___
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] rsync'ing BackupPC Pool?

2024-02-20 Thread Christian Völker via BackupPC-users

Hi,

I remember the "good old time" when it was a really bad idea to rsync a 
BackupPC pool to an off-site location. This was because of the high 
usage of hardlinks in Pool v3 version. At least a bad idea on the size 
of my pool (1.5TB) even with mostly static content.


How is this with the up-to-date v4 pool? Can I do a simple rsync 
meanwhile within a reasonable amount of time?


Or are there any other ideas of syncing the pool off-site?

Thanks a lot!

/KNEBB




___
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] How to check pool?

2024-02-18 Thread Christian Völker via BackupPC-users

Hi all,

I have a large v4 pool (not cpool) (1.6TB) running on top of btrfs.

Is there any chance to perform a pool check from BackupPC to verify all 
data in the pool is still ok?


I am getting some checksum errors from btrfs and I want to know if the 
backed up data is still fine.


Thanks!

/KNEBB





___
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] restoring pool

2024-01-26 Thread Christian Völker via BackupPC-users
I can second dthat. For my routine I have a script which rsyncs my 
/etc/backuppc folder (including the apache.conf and the host 
configurations) to my /var/lib/backuppc folder (which is on an external 
drive).

/CV


Am 26.01.24 um 23:31 schrieb Kenneth Porter:
In the future, I recommend putting the config on the external drive 
and mounting it to /etc/BackupPC.


I'd also recommend copying/tarring /etc/httpd or /etc/nginx (depending 
on which web server you use) to the external drive. That lets you 
bring up BackupPC quickly on a replacement server after a disaster.





___
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] restoring pool

2024-01-26 Thread Christian Völker via BackupPC-users
Good point. 
I suggest to mount as Read-only. Should work. 
Grüsse 
Christian Völker 

> Am 26.01.2024 um 21:29 schrieb backu...@kosowsky.org:
> 
> I would be careful as running BackupPC could cause certain old backups
> to expire that you may not want to expire.
> Plus, if you don't have all the hosts set properly, it could delete
> pool files that are needed...
> 
> I would be VERY careful to:
> 1. Make sure I have my full config restored -- including desired
>   expiry times
> 2. That all my desired backup hosts are intact
> 3. That I know what I am doing before starting the daemon and risking
>   auto-deletion
> 
> Regardless, definitely make a copy/snapshot before proceeding... so
> you can undo...
> 
> Jeff
> 
> 
> Christian Völker via BackupPC-users wrote at about 10:41:33 +0100 on Friday, 
> January 26, 2024:
>> Hi,
>> 
>> does your HDD contain the full structure of a pool (usually the
>> structure below /var/lib/BackupPC)? If so I'd recommend to add all the
>> hosts which are visible as directory in pc/-folder. Stop BackupPC, mount
>> your hdd to /var/lib/BackupPC and start BackupPC.
>> 
>> It should recon the structure and match with the hosts configuration.
>> 
>> /CV
>> 
>> 
>>> Am 26.01.24 um 09:35 schrieb daggs via BackupPC-users:
>>> Greetings.
>>> 
>>> I have a pool of backups in a external hdd, I've seems to have misplaced 
>>> the config for them, is there a way to reconfigure backuppc so they can be 
>>> used again?
>>> 
>>> Thanks,
>>> 
>>> Dagg
>>> 
>>> 
>>> ___
>>> 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] restoring pool

2024-01-26 Thread Christian Völker via BackupPC-users

Hi,

does your HDD contain the full structure of a pool (usually the 
structure below /var/lib/BackupPC)? If so I'd recommend to add all the 
hosts which are visible as directory in pc/-folder. Stop BackupPC, mount 
your hdd to /var/lib/BackupPC and start BackupPC.


It should recon the structure and match with the hosts configuration.

/CV


Am 26.01.24 um 09:35 schrieb daggs via BackupPC-users:

Greetings.

I have a pool of backups in a external hdd, I've seems to have misplaced the 
config for them, is there a way to reconfigure backuppc so they can be used 
again?

Thanks,

Dagg


___
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] rsync'ing Docker's overlay-fs despite "--one-file-system"?

2024-01-24 Thread Christian Völker via BackupPC-users

Hi,

I am backing up a Debian 12 client host where I an application uses 
Docker and its overlay filesystem:


root@host:~# df -h
Dateisystem   Größe Benutzt Verf. Verw% Eingehängt auf
udev   1,9G   0  1,9G    0% /dev
tmpfs  392M    1,3M  391M    1% /run
/dev/mapper/hoas--vg-root   82G 18G   61G   23% /
tmpfs  2,0G   0  2,0G    0% /dev/shm
tmpfs  5,0M   0  5,0M    0% /run/lock
tmpfs  4,0M   0  4,0M    0% /sys/fs/cgroup
/dev/vda1  455M 95M  336M   22% /boot
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/c0fca4e38563165ce1678e4dff6427d0766a892fe269a655a21a9b08064d9d54/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/f132bd655da124f4c9a73d4dbc568ad2c87c8a032a87d1f6664537cd87042639/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/cb43fbd29e50cdcc82c831ced5e8b43f6bd624be4507f2db063883a35fbfca5c/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/cd9ff8530d44d2e6701f04ee0b5c9ed422182fec66e15cad99c20ea04126466d/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/f2f1220522a1aae976b5fead17000947cf3b2318e2eb066493b2d4aeda135b03/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/0d996fc93c6890cfae0378516bf931a929c02e93764e1ed7ee585051bcc7e0d0/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/26f007e3defc1496d3f28569e0c72dffa060a2c9cd2ca5688c514c3b2714cfac/merged

tmpfs  392M   0  392M    0% /run/user/0
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/2225be72fd4f2aa2923f42f6e7f6cd3864b1ca09054118972644d2c0aec06939/merged
overlay 82G 18G   61G   23% 
/var/lib/docker/overlay2/0d640041cecf5194e622cc1327d51371e55d46abd732a3d6978871fd00635d6c/merged



Obviously the Docker filesystems are dynamically and I do not want them 
to be backed up. I expected the "--one-file-system" parameter for rsync 
will take care of it.


But when browsing the backups of this host I see not only the mount 
directories but as well directories and files below the mount point.


So why is rsync backing up those files even though I have the 
"--one-file-system" parameter set?


I am trying now to work with excludes but shouldn't it work anyways?

Thanks& Greetings

/KNEBB


___
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 Christian Völker via BackupPC-users

Thanks again!

Again, I do not know why this changed. Removed the entry on the host and 
let the default settings settle in.


Thanks!

/KNEBB


Am 26.11.23 um 13:51 schrieb 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-26 Thread Christian Völker via BackupPC-users

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
___
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-15 Thread Christian Völker via BackupPC-users

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?



On 2023-11-14 11:09, Christian Völker via BackupPC-users 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'
];
$Conf{BackupFilesExclude} = {
   '/Users/username/.Trash' => [
     ''
   ],
   '/Users/username/Library/Accounts' => [
     ''
   ],
   '/Users/username/Library/Application Support' => [
     ''
   ],
   '/Users/username/Library/Assistant' => [
     ''
   ],
   '/Users/username/Library/Autosave Information' => [
     ''
   ],
   '/Users/username/Library/Biome' => [
     ''
   ],
   '/Users/username/Library/Caches' => [
     ''
   ],
   '/Users/username/Library/Containers' => [
     ''
   ],
   '/Users/username/Library/Cookies' => [
     ''
   ],
   '/Users/username/Library/CoreFollowUps' => [
     ''
   ],
   '/Users/username/Library/Group Containers' => [
     ''
   ],
   '/Users/username/Library/HomeKit' => [
     ''
   ]
};
$Conf{RsyncArgs} = [
   '--super',
   '--recursive',
   '--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',
   '-z',
   '-v'
];


Now I took a look at BackupPC and was going to the last backup 
(through "Browse backups"). I see the last succesful backup from today.


But when I compare the files in the backup with the ones existing on 
my MacOS there is a hughe difference!
There are so many additional file in the backup which I already 
deleted weeks, if not months ago!

This is the list of the current backups until the last full one:
669 
<http://backuppc41.knebb.de/backuppc/index.cgi?action=browse=cvoelker=669> 
	incr 	yes 	1 	2023-11-13 23:17 	72.8 	0.9 	





668 
<http://backuppc41.knebb.de/backuppc/index.cgi?action=browse=cvoelker=668> 
	incr 	no 	1 	2023-11-12 20:06 	205.0 	2.0 	





667 
<http://backuppc41.knebb.de/backuppc/index.cgi?action=browse=cvoelker=667> 
	incr 	no 	1 	2023-11-10 23:03 	90.0 	3.9 	





666 
<http://backuppc41.knebb.de/backuppc/index.cgi?action=browse=cvoelker=666> 
	full 	yes 	0 	2023-11-08 23:49 	710.0 	5.8




Checking my local directory I do not see many of the files (As I have 
them deleted months ago!).


Why do I have files in my backupc which do not exist on the backed up 
client?


Thanks for ideas!

/KNEBB







___
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] Outdated Files in Backup?

2023-11-14 Thread Christian Völker via BackupPC-users

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'

];

$Conf{BackupFilesExclude} = {

  '/Users/username/.Trash' => [

    ''

  ],

  '/Users/username/Library/Accounts' => [

    ''

  ],

  '/Users/username/Library/Application Support' => [

    ''

  ],

  '/Users/username/Library/Assistant' => [

    ''

  ],

  '/Users/username/Library/Autosave Information' => [

    ''

  ],

  '/Users/username/Library/Biome' => [

    ''

  ],

  '/Users/username/Library/Caches' => [

    ''

  ],

  '/Users/username/Library/Containers' => [

    ''

  ],

  '/Users/username/Library/Cookies' => [

    ''

  ],

  '/Users/username/Library/CoreFollowUps' => [

    ''

  ],

  '/Users/username/Library/Group Containers' => [

    ''

  ],

  '/Users/username/Library/HomeKit' => [

    ''

  ]

};

$Conf{RsyncArgs} = [

  '--super',

  '--recursive',

  '--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',

  '-z',

  '-v'

];



Now I took a look at BackupPC and was going to the last backup (through 
"Browse backups"). I see the last succesful backup from today.


But when I compare the files in the backup with the ones existing on my 
MacOS there is a hughe difference!
There are so many additional file in the backup which I already deleted 
weeks, if not months ago!

This is the list of the current backups until the last full one:
669 
 
	incr 	yes 	1 	2023-11-13 23:17 	72.8 	0.9 	





668 
 
	incr 	no 	1 	2023-11-12 20:06 	205.0 	2.0 	





667 
 
	incr 	no 	1 	2023-11-10 23:03 	90.0 	3.9 	





666 
 
	full 	yes 	0 	2023-11-08 23:49 	710.0 	5.8




Checking my local directory I do not see many of the files (As I have 
them deleted months ago!).


Why do I have files in my backupc which do not exist on the backed up 
client?


Thanks for ideas!

/KNEBB




___
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] Identifying rsync Error

2023-09-04 Thread Christian Völker via BackupPC-users


Nevermind.

I figured out I am having a VPn isssue which drops the VPN connection 
every now and then. So BackupPC start the backup but in the middle of it 
the connection drops which causes the error.


I am going to troubleshoot VPN now.

Sorry for inconvinience!

/KNEBB

Am 04.09.23 um 08:29 schrieb Christian Völker via BackupPC-users:

Hi all,

I use BackupPC since years and it is such a great thing! I am used to 
some well known issues but currently I have one where I can not 
identify the reason.


I have a couple of remote hosts (VPN'd) which I am backing up. A 
couple of days I had some issues with the DNS and there fore the ssh 
login complained about the wrong ssh keys. Which is fine because 
BackupPC really tried to back up the wrong host. The log file tells me 
this:

=
@@@
@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:ewAnfnr***sV0Y6c.
Please contact your system administrator.
Add correct host key in /var/lib/backuppc/.ssh/known_hosts to get rid of this 
message.
Offending ECDSA key in /var/lib/backuppc/.ssh/known_hosts:3
[ skipped 2 lines ]
Host key for remote1 has changed and you have requested strict checking.
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, 255532 inode
==

DNS issue has been fixed (for sure!) but since then the two remote 
hosts refuse to get backed up. I did:


  * su - backuppc
  * ssh root@remote1 #went fine with no complains about a wrong key
  * Removed the key through "ssh-keygen" followed by the above ssh
command. Went fine, save the key again.

However, I am still having issues with this host. This is the last 
logfile I am getting:


==

2023-09-04 08:01:32 full backup started for directory /
2023-09-04 08:18:01 Got fatal error during xfer (rsync error: unexplained error 
(code 255) at io.c(226) [generator=3.1.3.0])
2023-09-04 08:18:06 Backup aborted (rsync error: unexplained error (code 255) 
at io.c(226) [generator=3.1.3.0])
2023-09-04 08:18:06 Removing prior partial backup #643
2023-09-04 08:18:06 BackupPC_backupDelete: removing #643
2023-09-04 08:18:06 BackupPC_backupDelete: Merge into backup 599
2023-09-04 08:18:08 BackupPC_refCountUpdate: hostbackuppc42  
<http://backuppc41.knebb.de/backuppc/index.cgi?host=backuppc42>  got 0 errors 
(took 2 secs)
2023-09-04 08:18:08 Finished BackupPC_backupDelete, status = 0 (running time: 2 
sec)

==

My ${RsyncArgs} has added the "-v" parameter for this host. And besides of the 
DNS issue I really did not change anything on thei targets.

Anyone having ideas for further troubleshooting?

Thanks!

/KNEBB



___
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] Identifying rsync Error

2023-09-04 Thread Christian Völker via BackupPC-users

Hi all,

I use BackupPC since years and it is such a great thing! I am used to 
some well known issues but currently I have one where I can not identify 
the reason.


I have a couple of remote hosts (VPN'd) which I am backing up. A couple 
of days I had some issues with the DNS and there fore the ssh login 
complained about the wrong ssh keys. Which is fine because BackupPC 
really tried to back up the wrong host. The log file tells me this:

=

@@@
@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:ewAnfnr***sV0Y6c.
Please contact your system administrator.
Add correct host key in /var/lib/backuppc/.ssh/known_hosts to get rid of this 
message.
Offending ECDSA key in /var/lib/backuppc/.ssh/known_hosts:3
[ skipped 2 lines ]
Host key for remote1 has changed and you have requested strict checking.
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, 255532 inode

==

DNS issue has been fixed (for sure!) but since then the two remote hosts 
refuse to get backed up. I did:


 * su - backuppc
 * ssh root@remote1 #went fine with no complains about a wrong key
 * Removed the key through "ssh-keygen" followed by the above ssh
   command. Went fine, save the key again.

However, I am still having issues with this host. This is the last 
logfile I am getting:


==

2023-09-04 08:01:32 full backup started for directory /
2023-09-04 08:18:01 Got fatal error during xfer (rsync error: unexplained error 
(code 255) at io.c(226) [generator=3.1.3.0])
2023-09-04 08:18:06 Backup aborted (rsync error: unexplained error (code 255) 
at io.c(226) [generator=3.1.3.0])
2023-09-04 08:18:06 Removing prior partial backup #643
2023-09-04 08:18:06 BackupPC_backupDelete: removing #643
2023-09-04 08:18:06 BackupPC_backupDelete: Merge into backup 599
2023-09-04 08:18:08 BackupPC_refCountUpdate: hostbackuppc42  
  got 0 errors 
(took 2 secs)
2023-09-04 08:18:08 Finished BackupPC_backupDelete, status = 0 (running time: 2 
sec)

==

My ${RsyncArgs} has added the "-v" parameter for this host. And besides of the 
DNS issue I really did not change anything on thei targets.

Anyone having ideas for further troubleshooting?

Thanks!

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