You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no check if a NETFS 'tar' backup is empty.
What gets included in a NETFS 'tar' backup
gets specified in $TMP_DIR/backup-include.txt by
backup/NETFS/default/400_create_include_exclude_files.sh
via var/lib/rear/recovery/mountpoint_device that was made by
layout/save/default/340_generate_mountpoint_device.sh
based on the active 'fs' entries disklayout.conf
In certain cases it can happen that backup-include.txt
does not contain '/' or is even empty, e.g. see
starting at #3189 (comment)
and the subsequent comments therein down to #3189 (comment)
So I am thinking about a generic check for an empty NETFS backup
(regardless of multipath or whatever).
My point is that I assume at least '/' must be included
in any backup because it is the basic functionality
that "rear mkbackup" makes a backup of the files
of the basic system so at least '/' must be
backed up (with '--one-file-system').
So in case of a NETFS backup at least '/'
should normally be in backup-include.txt
and - as far as I can imagine - at least an
empty backup-include.txt is always an error.
But I think it would be better in general to have '/'
first in backup-include.txt to get the files and directories
of the the basic system first stored in backup.tar.gz
so that in particular the directories of the the basic system
get restored first during "rear recover" so that those
directories are already there when later other files
get restored into the basic system directories.
Perhaps the ordering may not actually matter but at least
it looks "unexpected" to store and restore '/' last, cf. #3177 (comment)
The text was updated successfully, but these errors were encountered:
Overhauled 400_create_include_exclude_files.sh
Now do first backup the mounted filesystems
to backup '/' first so the basic system files get stored
first in the backup and then backup what is specified in BACKUP_PROG_INCLUDE
see #3177 (comment)
and #3217 (comment)
Report suspicious cases as LogPrintError to have the user at least informed.
Remove duplicates but keep the ordering.
to avoid possibly unwanted and unexpected subtle consequences
see #3175 (comment)
Verify that at least '/' is in backup-include.txt
see #3217
Redirect stdout into files exactly at the command where needed
instead of more global redirections,
cf. "horrible coding style"
in #3175 (comment)
Overhauled backup/NETFS/default/400_create_include_exclude_files.sh
* Now do first backup the mounted filesystems to backup '/' first
so the basic system files get stored first in the backup and
then backup what is specified in BACKUP_PROG_INCLUDE
see #3177 (comment)
and #3217 (comment)
* Report suspicious cases as LogPrintError to have the user at least informed.
* Remove duplicates in backup-[in/ex]clude.txt but keep the ordering
to avoid possibly unwanted and unexpected subtle consequences
see #3175 (comment)
* Verify that at least '/' is in backup-include.txt
see #3217
* Redirect stdout into files exactly at the command where needed
instead of more global redirections, cf. "horrible coding style"
in #3175 (comment)
Update backup/NETFS/default/500_make_backup.sh
* In backup/NETFS/default/500_make_backup.sh
unique_unsorted is no longer needed because
backup-include.txt is already without duplicates
because unique_unsorted is now called in
backup/NETFS/default/400_create_include_exclude_files.sh
Currently there is no check if a NETFS 'tar' backup is empty.
What gets included in a NETFS 'tar' backup
gets specified in $TMP_DIR/backup-include.txt by
backup/NETFS/default/400_create_include_exclude_files.sh
via var/lib/rear/recovery/mountpoint_device that was made by
layout/save/default/340_generate_mountpoint_device.sh
based on the active 'fs' entries disklayout.conf
In certain cases it can happen that backup-include.txt
does not contain '/' or is even empty, e.g. see
starting at
#3189 (comment)
and the subsequent comments therein down to
#3189 (comment)
So I am thinking about a generic check for an empty NETFS backup
(regardless of multipath or whatever).
My point is that I assume at least '/' must be included
in any backup because it is the basic functionality
that "rear mkbackup" makes a backup of the files
of the basic system so at least '/' must be
backed up (with '--one-file-system').
So in case of a NETFS backup at least '/'
should normally be in backup-include.txt
and - as far as I can imagine - at least an
empty backup-include.txt is always an error.
Cf.
#3189 (comment)
By the way:
It seems '/' is last in backup-include.txt
see
#3189 (comment)
(excerpt):
But I think it would be better in general to have '/'
first in backup-include.txt to get the files and directories
of the the basic system first stored in backup.tar.gz
so that in particular the directories of the the basic system
get restored first during "rear recover" so that those
directories are already there when later other files
get restored into the basic system directories.
Perhaps the ordering may not actually matter but at least
it looks "unexpected" to store and restore '/' last, cf.
#3177 (comment)
The text was updated successfully, but these errors were encountered: