Le 26/08/2021 à 18:16, backu...@kosowsky.org a écrit :
thveillon wrote at about 22:32:14 +0200 on Tuesday, August 24, 2021:
> Le 24/08/2021 à 15:57, Pascal Legrand a écrit :
> Also if you are using rsync as your method, the '--one-file-system'
> default option can cause some pain. If you have anything mounted under
> the root of you backup, you will have to choose between having that
> mount point backed up as a separate root (with '--one-file-system'), or
> under the mount point (without '--one-file-system').
I find '--one-file-system' to be critical as it prevents unintended
backups of:
- Temporary file systems (e.g., /proc, /dev, /tmp)
- Mountable file systems (e.g. dvd/cd, USB sticks)
Of course, you could write 'excludes' but to me it is easier, safer,
and cleaner to *positively* specify the mounts you want rather than
exclude the ones you don't
I backup each non-root filestystem as a separate share.
This is also cleaner (at least philosophically) in aligning shares
with filesystems. That way if a filesystem is down or broken, it just
affects the backup for that share rather than erroring-out the entire
backup.
I could not agree more.
> Personally I never
> could make a "/home/user/mount" filesystem be backed up separately with
> '--one-file-system', I resorted to remove the option and get everything
> under the same root backup.
>
Shares are dead simple... all you need is:
$Conf{RsyncShareName} = ['/', '/home/user/mount1', '/home/user/mount2',
'/home/user/mount3'];
Well, this works for me, what doesn't is:
/home/mount$(UserHome)/mount1
where "$(UserHome)" is an encrypted home mounted with pam_mount, and
inside is another mount from a different drive, also encrypted and
mounted with pam_mount. The way it is mounted doesn't matter here I
think, it is the syntax to backup /home/$(UserHome) and
/home/$(UserHome)/mount1 as different shares that I couldn't get right.
But I am hijacking the OP thread, so please do not answer me here, I
originally posted in "Conf{RsyncShareName} Sub-directory of a share as a
separate share doesn't work ?" on this list.
This is at least as easy as the alternative of trying to do something
like:
$Conf{BackupFilesExclude} = {
'/' => [ '/proc/*', '/sys/*', '/dev/*', '/snap/*', '/run/*',
'/selinux/*', '/home/*/.gvfs/'],
}
Plus figuring out who knows what other loop/fuse/tmpfs/udev etc. filesystems you
may have mounted somewhere on root.
_______________________________________________
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/