Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter
On 7/24/2021 6:36 PM, backu...@kosowsky.org wrote: I do the same with soft links rather than bind mounts so that I don't have to mess with my fstab. I think I initially tried that and rpm/yum did something wierd at the next upgrade, like converting the links to the directory in the package.

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread backuppc
Kenneth Porter wrote at about 13:51:30 -0700 on Saturday, July 24, 2021: > Tip: > > Mount the drive's root to /mnt/BackupPC, create subfolders /backuppc/etc > and /backuppc/BackupPC, then do a bind mount of those folders to > /etc/BackupPC and /var/lib/BackupPC. That way you'll keep the

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread backuppc
Gavin Henry wrote at about 19:43:56 +0100 on Saturday, July 24, 2021: > Hi all, > > On my home desktop my backups are going to a 2TB usb drive. All good. It's > filling up, so I bought a 4TB usb one and have rsynced all data on the same > type of filesystem too (rsync -av --delete) but when

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Gavin Henry
On Sat, 24 Jul 2021, 21:52 Kenneth Porter, wrote: > On 7/24/2021 1:34 PM, Gavin Henry wrote: > > Remind me, where is it inheriting the perms from? The folders under > > the mount are all correct. > > ext4 stores owner and group id numbers, so you need to do a "chown -R > backuppc.backuppc

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter
On 7/24/2021 1:34 PM, Gavin Henry wrote: Remind me, where is it inheriting the perms from? The folders under the mount are all correct. ext4 stores owner and group id numbers, so you need to do a "chown -R backuppc.backuppc /var/lib/BackupPC" when it's mounted to set the uid and gid. Alas,

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Gavin Henry
That's fixed it and all matches up now: sudo ls -lhd /var/lib/BackupPC/ drwxr-x---. 7 backuppc root 4.0K Jan 25 22:23 /var/lib/BackupPC/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Gavin Henry
Sorted. Permissions as always. Thanks for your second pair of eyes Kenneth! I'm re-running the rsync like so for selinux too (due to the dot at the end of the directory perms): rsync -av -X --delete --dry-run backuppc/ /var/lib/BackupPC/ ls -lhd /var/lib/BackupPC drwxr-x---. 7 backuppc root

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Gavin Henry
> How are you mounting it? Unit file? /etc/fstab? /etc/fstab (just the usb devices have changed) /dev/sdd1 /var/lib/BackupPC ext4defaults0 0 #/dev/sde1 /var/lib/BackupPC ext4defaults0 0 > Permissions look ok on the drive and

Re: [BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Kenneth Porter
On 7/24/2021 11:43 AM, Gavin Henry wrote: On my home desktop my backups are going to a 2TB usb drive. All good. It's filling up, so I bought a 4TB usb one and have rsynced all data on the same type of filesystem too (rsync -av --delete) but when I mount it and restart BackupPC, nothing shows.

[BackupPC-users] Rsync and swapping the hard drive mounted at /var/lib/BackupPC - backups vanish

2021-07-24 Thread Gavin Henry
Hi all, On my home desktop my backups are going to a 2TB usb drive. All good. It's filling up, so I bought a 4TB usb one and have rsynced all data on the same type of filesystem too (rsync -av --delete) but when I mount it and restart BackupPC, nothing shows. Put the old drive back and

Re: [BackupPC-users] Moving to 4.4.0, sudo on FreeBSD

2021-07-24 Thread Brad Alexander
No Sir, No restrictions. On Sat, Jul 24, 2021 at 12:59 AM Adam Goryachev via BackupPC-users < backuppc-users@lists.sourceforge.net> wrote: > Sounds to me that you might have restricted your source IP in the *bsd > .ssh/authorized_keys file. Maybe double check on those restrictions. > > Regards,