Source:FAQ - Restore

From SEPsesam
Revision as of 10:40, 20 September 2021 by Unknown (talk | contribs) (Updating to match new version of source page)
Other languages:

Is it possible to restore only single files if the SEP sesam listing file is no longer available?

Yes. In order to do this, enter the file patterns into the restore wizard. Follow Standard Restore Procedure and select the desired saveset and then the option Complete restore.

In the Target Settings dialog, click the Expert Options button to open the Expert Options window. Click the Filter tab and enter the file patterns. Separate each entered pattern with a space. Only files which fit into specified pattern will be restored. All others are ignored.

Examples:

 /*.xls            restores all files with the ending .xls
 /*/X11/XF86*      restores all files from the directory /X11 which start with XF86
 /*.ini /*.conf    restores all files which end on .ini or .conf
Information sign.png Note
You must use the slash (/) when writing the pattern.

How do I use the selective restore commands?

To perform a selective restore in the command line, proceed as follows:

  1. Create a new directory root in the <SESAM_ROOT>\var\work directory.
  2. Obtain the .sgm and .lis files from the backup.
  3. Set the SEP sesam profile. In the root directory, create a text file with the name selected.txt and extract the desired lines from the .lis file, for example:
  4. "C :/WINDOWS/system32/config/AppEvent.Evt" f 8.10.2019 13:26:54 8.8.2020 15:56:07 1 4096 540672
  5. In the command line of the SEP sesam Server, enter:
  6. sm_restore -s SC20050809155617 -R c:/temp -v 1 -l s -c client -d 1 -V

Parameters:

 -j    Original task name of the backup job
 -s    The saveset name of the backup job must be entered. You can find this in the .sel file from the restore job.
 -R    Restore target (do not forget the slash /)
 -l    The s is used for selective restore
 -S    The hostname of the SEP sesam Servers
 -v 1  Increase the log level
 -V    Suppress output to the background
 -c    Hostname of the client to be restored
 -d    Disk drive entry of the drive where the SEP sesam media is kept, for example, 1.

How do I restore all the data from tape media without the SEP sesam DB?

To restore data without a current license from SEP sesam, follow the restore procedure described below (SESAM DB restore):

  1. Go to the <SESAM_ROOT>/bin/sesam directory and run the program sm_recover. In the first response, all known devices currently active on the system will be displayed. You can choose one of these drives.
  2. azurix:~ # sm_recover num device name typ 1 disk1 Drive-1 DISK_HARD 2 /dev/nst0 Drive-2 DLT Enter drive number, (r) to repeat list, (q) to quit
  3. By entering 2, sm_recover will look for the desired data on the physical tape drive. You have to answer the following question with yes (y) if no other backups or restores are active:
  4. Analyse media: restore data or listings of savesets
  5. Restoring the data while SEP sesam is active may cause conflicts due to concurrently running tasks on the drive. If you are sure that there are no activities scheduled during recovery, you do not need to block SEP sesam. Blocking SEP sesam during recovery prevents the execution of backup activities scheduled for the other devices.
  6. Do you want to block SEP sesam ? (y|n] >
  7. Confirm by typing y (yes).
  8. wait until SEPuler - the timecontrol of SEP sesam - finishes its current work ... SEPuler is blocked ...
  9. The following question should be answered with no (n) unless you wish the data search to continue with a desired filter.
  10. Do you wish to enter label, saveset-name and segment-number directly (no searching on media) (y/n) > n You will be notified that the tape is rewinding. The tape will now rewind and scanned to the end EOT...
  11. You may now choose the desired savesets. By entering the saveset number, you can insert further instructions to restore the data. After finishing, restart all SEP sesam services.

How do I restore all the data from a disk/data store media without the SEP sesam DB?

Depending on your operating system, proceed as follows:

On Windows:

sbc.exe -r -S $SERVER_HOSTAME -s @SF.....data -v 1 -R c:\target\

On Linux:

sbc -r -S $SERVER_HOSTAME -s @SF.....data -v 1 -R /target/

How can I restore a backup that has errors? The backup log file reported that the backup was partially successful.

If a backup has failed but some or most of the data was backed up, you can update the SEP sesam database manually to show the backup in the restore wizard.

First, the saveset ID is required. You can find it in the SEP sesam GUI under Main Selection -> Job State -> Backups -> double-click a failed backup (State Error) to open its properties -> check the saveset ID in the first field (Saveset).

Proceed as follows:

  1. Set a SEP sesam profile.
  2. Modify the entry in the DB.
  3. Proceed as follows using the command line:
  4. sm_db "update results set state= '1',blocks= 1 where saveset= 'SC20060101121314'"

Afterwards, the saveset for this backup should be shown in green on the status display and appear in the GUI restore wizard. Nevertheless, you should still verify whether the data was backed up successfully.

Why don't the data lists appear in the restore wizard?

If the data lists don't appear in the restore wizard, verify whether the CTRLD switch permission is set to <on>, and if not, activate it.

How do I avoid the problem "553 RETR Failed. Data Synchronization lost - Restore terminating"?

Linux/UNIX data is stored in cpio saveset which is checked during the restore to ensure that the cpio format is correct. If a format error is detected, the restore is aborted and ends with

'BSA Call BSAEndData (closing saveset) failed: System detected error, operation aborted.
TRANSIENT or PERMANENT NEGATIVE reply: 553 RETR Failed. Data Synchronization lost - Restore terminating'

The following settings allow you to avoid a premature termination of the restore.

Avoid the current restore task

You can use the sbc option '-F none' by using GUI or web Restore assistant.

  • Enter this option in the GUI restore wizard (Target Settings dialog -> Expert Options -> Options tab -> Restore options). For details, see GUI Expert options.
  • Use the web Restore Assistant (Advanced restore options -> Options for restore). For details, see Restore Assistant.

Avoid all further cpio restores on the RDS

Set the SEP sesam GLBV restore_no_abort at the RDS with 'sm_glbv w restore_no_abort yes'. If the suspicious (non-cpio) bytes lead to further problems, they can be skipped with 'sm_glbv w restore_no_junk yes'.

How can I restore Active Directory sub-trees in a clustered environment?

You can restore the Active Direcory sub-trees as follows:

  1. Boot into Directory Services Restore Mode. This ensures that the directory is offline. In order to do this during the normal boot menu while restarting the computer, press F8 when the message "For troubleshooting and advanced startup options for Microsoft Windows, press F8" appears at the bottom of the screen. After pressing F8, select Directory Services Restore Mode from the Safe Mode and Other Startup Options list.
  2. Restore the System_State backup by using the SEP sesam GUI, see Restoring System State.
  3. To authoritatively restore the Active Directory data, you need to run the ntdsutil utility. See the following example (sub-tree organizational unit Marketing in the domain Anitpodes.com):
  4. #> ntdsutil ntdsutil: authoritative restore authoritative restore: restore subtree OU= Marketing,DC= Antipodes,DC= COM

For more information, see Microsoft documentation Active Directory Forest Recovery Guide and Disaster Recovery: Active Directory Users and Groups (section Performing an Authoritative Restore.

Can I use path reduction of a TSA backed up volume/directory when restoring the data?

Path relocation can be specified in the Expert Options window in the GUI restore wizard:

  1. Follow Standard Restore Procedure and in the Target Settings dialog, click the Expert Options button to open the Expert Options window.
  2. Switch to the Relocation tab and select With relocation. Then specify a new target location for the restored files. For details, see Expert options.
  3. Restore relocation Beefalo.jpg

Is it possible to restore savesets online with SEP sesam?

You can restore savesets online using SEP sesam web interface Restore assistant. It enables you to restore data from regular Path backups, NDMP and NSS file system Path backups, emails from Kopano backups, and virtual machines (Hyper-V, KVM/QEMU, Open Nebula, etc.) to which you have been granted access. Note that the Restore assistant cannot currently be used to schedule restores or restore a single file, as these features are only supported in GUI mode. For details, see Restore Assistant.

Is it possible to restore flat files/directories from multiple locations when restoring a TSA backed up file?

This functionality is not possible with TSA backups/restores. When restoring TSA backups, you should select Original tree structure in the GUI restore wizard, regardless of whether a Restore to original target path or a New restore target option is selected.

Novell restore path Beefalo V2.png


Usage

This template is included in the FAQ and other sections describing GUI info.