[BackupPC-users] 'hard-link' usage for BackupPC4 vs rsync ... independent?

2020-10-02 Thread PGNet Dev
BackupPC 4.0 release notes, @ https://backuppc.github.io/backuppc/BackupPC.html, state new-version changes include "No use of hardlinks (except temporarily to do atomic renames). Reference counting is handled at the application level in a batch manner (hardlinks will still remain for any legac

Re: [BackupPC-users] 'hard-link' usage for BackupPC4 vs rsync ... independent?

2020-10-02 Thread Craig Barratt via BackupPC-users
Yes, you are correct. The '--hard-links' argument tells rsync to transfer hardlinks from the client. On the server side, hardlinks are not used to store the hardlink information that rsync sends from the client. On restore, the opposite happens - the server side reconstructs the hardlink informa

Re: [BackupPC-users] 'hard-link' usage for BackupPC4 vs rsync ... independent?

2020-10-02 Thread PGNet Dev
On 10/2/20 1:33 PM, Craig Barratt wrote: > Yes, you are correct.  The '--hard-links' argument tells rsync to transfer > hardlinks from the client. > > On the server side, hardlinks are not used to store the hardlink information > that rsync sends from the client.  On restore, the opposite happen

[BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread PGNet Dev
Within the scope of a single backup I've a mix of live data sources. For a live data source, e.g. /src/data1, that resides on a dedicated LV, mount | grep vmail /dev/mapper/VG0-LV_DATA1 on /src/data1 type ext4 (rw,relatime,dax=never) I'd like to snapshot the volume prior

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread Craig Barratt via BackupPC-users
Snapshotting is a great idea but it's not built in, since the underlying commands and approaches vary so much between different OSes and filesystems. Several users have developed scripts that do snapshots, which are especially beneficial on windoze given the prevalence of enforced file locking. I

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread PGNet Dev
On 10/2/20 3:35 PM, Craig Barratt wrote: > Snapshotting is a great idea but it's not built in, since the underlying > commands and approaches vary so much between different OSes and filesystems. noted. though, LVMs _are_ fairly widespread. support's available on linux*, of course; and, netbsd &

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread PGNet Dev
On 10/2/20 4:26 PM, PGNet Dev wrote: > I don't see that in the release docs; I assume it's in recent/master. (Will > take a peek here in a bit ...) well, if I'd look at the *current* release docs, THAT might help ... ___ BackupPC-users mailing list Ba

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread PGNet Dev
Craig, digging around a bit, it appears, $Conf{DumpPreUserCmd} $Conf{DumpPostUserCmd} $Conf{DumpPreShareCmd} $Conf{DumpPostShareCmd} are declared as single value string types, ./lib/BackupPC/Config/Meta.pm DumpPreUserCmd => {type =>

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread Craig Barratt via BackupPC-users
Sure, setting aside windoze, LVMs are widespread and consistent today, but BackupPC has been around for quite a while. So my comment was probably more historical. Craig On Fri, Oct 2, 2020 at 4:27 PM PGNet Dev wrote: > On 10/2/20 3:35 PM, Craig Barratt wrote: > > Snapshotting is a great idea b

Re: [BackupPC-users] rsync + lvm snapshot in BackupPC v4+? integrated, or DIY via 'DumpPreUserCmd' ?

2020-10-02 Thread Craig Barratt via BackupPC-users
Sure, there are a lot of ways to do it. The various Dump{Pre|Post}ShareCmds can take arguments that are passed to whatever the first argument specifies as the command. While it doesn't execute it with a shell (to avoid various security issues), it does allow arguments (simple breaking at white sp