Samba on NonStop User Manual
5. Copy the back up files to the location where supported version of NS-Samba is installed.
cd /home/smb_backup
cp smb.conf /etc/samba
cp smb.conf smbpasswd secrets.tdb passdb.tdb /etc/samba
6. Verify the internal correctness of restored files using the testparm and tdbbackup tools.
For more information on these tools, see the respective manpages.
cd /etc/samba
/usr/bin/testparm smb.conf
• Check the output message displayed on the screen for any errors.
/usr/bin/tdbbackup –v *.tdb
• Check the output message on the screen. If the .tdb files are intact, it reports the number
of records present in them.
From one Supported NS-Samba Version to Another
The NS-Samba suite provides scripts, namely, smbconf_backup.sh and smbconf_restore.sh,
to back up and restore the following default configuration and user-credential files:
• /etc/samba/smb.conf
• /etc/samba/passdb.tdb
• /etc/samba/secrets.tdb
• /etc/samba/smbpasswd
Log in to the NonStop system as a super user and run the following scripts to back up, install, and
restore the configuration and user-credential files:
• Back up the files
◦ /usr/local/samba/scripts/smbconf_backup.sh
This script creates backup of the configuration and user-credential files as an archive file
and stores in the /home/.smb_backup directory: smbconfbak.<mmddyyyy>.pax,
where, mmddyyyy represents the calendar date in ‘2 Digit Month, 2 Digit Day, 4 Digit
Year’ format.
• Install the new version of NS-Samba as described in “Installing NS-Samba” (page 14).
• Restore the files
◦ /usr/local/samba/scripts/smbconf_restore.sh <back up file>
This script restores the files created by the back up script mentioned above and places
them in their default locations.
NOTE: These scripts back up and restore only the default files mentioned above. If you are using
other configuration or user credential files, such as per-user smb.conf files, you have to back
them up and restore them separately.
Fallback
To revert to a previous version of NS-Samba, complete the following steps:
1. Back up the configuration and user credential files, if required.
2. Uninstall the current version as described in “Uninstalling NS-Samba” (page 15).
3. Install the previous version of Samba.
4. Restore the configuration and user credential files, if required.
Migration Considerations 13










