2019-03-11 03:29 PM
Hello Everyone,
Does anyone face any error similar to below while taking upgrade backup on SA using nw-backup4.2 script?
I am trying to upgrade from Netwitness 10.6.6 to 11.2
2019-03-11 16:26:24 | 36155 | Backing up root home directory (/root) home directory and SSH files from: hostname
2019-03-11 16:28:27 | 36155 | WARNING: Errors occurred while backing up /root directory.
2019-03-11 16:28:27 | 36155 | Verify contents of /var/netwitness/database/nw-backup/2019-03-11/hostanme-1X.1X.1X.X1-root.tar.gz
At the end of the script, WARNING: Backup completed with 1 errors - which is related to /root directory failed to backup & not created any checksum file for filename:-- hostname-1X.1X.1X.X1-root.tar.gz
Regards
AMIT
2019-03-11 11:13 PM
Hello Amit
Please check the output log file (rsa-nw-backup-{date}.log) that is created from running the nw-backup.sh script.
default location: /var/netwitness/database/nw-backup
It might show more detail on why the error occurred.
In particular confirm that both of the following directories exist: /root and /etc/ssh
If either directory doesn't exist then this error can appear.
2019-03-12 02:20 AM
Hi Vincent,
We found above error from log file only & both directories /root & /etc/ssh exists.
Regards
AMIT
2019-03-12 02:29 AM
This usually happens when something changes in the directory in the course of the backup, or there is file or folder with the immutable flag set.
lsattr /root
lsattr /etc/ssh
if any of the files show an ------i------- then the immutable flag is set and you need to remove it using
chattr -i <filename>
2019-03-12 08:07 AM
Perfect man. Thank you so much it's working.
Regards
AMIT