#344 Issue closed
: When using TSM, every checklayout brings "Configuration files have changed"¶
Labels: support / question
sjoerrens opened issue at 2013-12-10 07:33:¶
Reason is that the file
/usr/share/rear/layout/compare/default/40_check_backup_special_files.sh
adds the /etc/adsm/TSM.PWD to the CHECK_CONFIG_FILES
But the TSM.PWD is not included in the CHECK_CONFIG_FILES when
creating the
files.md5sum file.
Solution is to change the
/usr/share/rear/layout/save/default/60_snapshot_files.sh
and add the TSM.PWD:
Save a hash of files that would warrant a new rescue image when changed.¶
if [ "$WORKFLOW" = "checklayout" ] ; then
return 0
fi
case $BACKUP in
TSM ) CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]}
/etc/adsm/TSM.PWD ) ;;
esac
config_files=()
for obj in "${CHECK_CONFIG_FILES[@]}" ; do
if [ -d "$obj" ] ; then
config_files=( "${config_files[@]}" $(find "$obj" -type f) )
elif [ -e "$obj" ] ; then
config_files=( "${config_files[@]}" "$obj")
fi
done
md5sum "${config_files[@]}" > $VAR_DIR/layout/config/files.md5sum
schlomo commented at 2013-12-10 07:43:¶
Good find! It should be possible to add a script to prep/BACKUP/TSM
(or
something like that) that extends the CHECK_CONFIG_FILES array with
TSM-related stuff.
On 10 December 2013 08:33, sjoerrens notifications@github.com wrote:
Reason is that the file
/usr/share/rear/layout/compare/default/40_check_backup_special_files.sh
adds the /etc/adsm/TSM.PWD to the CHECK_CONFIG_FILESBut the TSM.PWD is not included in the CHECK_CONFIG_FILES when creating
the
files.md5sum file.Solution is to change the
/usr/share/rear/layout/save/default/60_snapshot_files.sh
and add the TSM.PWD:Save a hash of files that would warrant a new rescue image when changed.¶
if [ "$WORKFLOW" = "checklayout" ] ; then
return 0
ficase $BACKUP in
TSM ) CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]} /etc/adsm/TSM.PWD ) ;;
esacconfig_files=()
for obj in "${CHECK_CONFIG_FILES[@]}" ; do
if [ -d "$obj" ] ; then
config_files=( "${config_files[@]}" $(find "$obj" -type f) )
elif [ -e "$obj" ] ; then
config_files=( "${config_files[@]}" "$obj")
fi
done
md5sum "${config_files[@]}" > $VAR_DIR/layout/config/files.md5sum—
Reply to this email directly or view it on GitHubhttps://github.com/rear/rear/issues/344
.
gdha commented at 2013-12-10 07:49:¶
@sjoerrens I've checked the github repo and I believe that the script
you were referring to has been moved to
usr/share/rear/layout/save/default/40_check_backup_special_files.sh
to
avoid your issue.
sjoerrens commented at 2013-12-10 09:19:¶
That seems better and is working perfectly.
[Export of Github issue for rear/rear.]