Source:Creating Exclude List: Difference between revisions

From SEPsesam
(In progress.)
 
No edit summary
Line 1: Line 1:
{{draft}}
{{Copyright SEP AG‎|en}}
{{Copyright SEP AG‎|en}}


Line 20: Line 21:
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | If you are using an older SEP sesam version, refer to [[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]].
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | If you are using an older SEP sesam version, refer to [[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]].
|}</div>
|}</div>
For each backup you can [[Special:MyLanguage/FAQ#incl-excl_files|back up only files that match a specific pattern]] and exclude specific files, file types or directories from backups.


Specific files, file types or directories can be excluded from backups. You can use the ''Exclude List Editor'' to specify the filenames or patterns which you do not want to back up. For example, you may not want to back up any temporary (.tmp) files, read-only files, or files from specific directories (e.g., download directory). This is not the only way for excluding items from backup. SEP sesam offers different methods for setting up exclusion:  
Some files are only temporary while others are permanently in use. These files should be either excluded from the ordinary backup or be backed up in a special way. For example, you may not want to back up any temporary (''.tmp'') files, read-only files, or files from specific directories (e.g., ''download directory''). SEP sesam provides a number of ways for setting up exclusion:  


* Add files, file types or regular expressions (regex) to ''Exclude List'' when creating a [[Special:MyLanguage/Standard_Backup_Procedure#task|backup task]].  
;Simple ''Exclude List'' in backup task wizard: [[Special:MyLanguage/Creating_Exclude_List#editor|Add files, file types or regular expressions]] (regex) to ''Exclude List'' when creating a [[Special:MyLanguage/Standard_Backup_Procedure#task|backup task]].  


* Create a custom exclude list on the [[Special:MyLanguage/SEP_sesam_Glossary#SBC|SEP sesam Client]] to define what will be skipped from all backups.
;Excludes specified as a separate file on client:[[Special:MyLanguage/Creating_Exclude_List#custom|Create a custom exclude list]] on the [[Special:MyLanguage/SBC_CLI#exclude_lists|SEP sesam Client (SBC SLI)]] to exclude a larger number of files.


* Exclude a large number of files.
;Permanently marking the directory for exclusion: [[Special:MyLanguage/Creating_Exclude_List#nosbc|Create a special file ''nosbc'']] in the directory itself.


* Create a special file with exclude list in the directory itself.
=={{anchor|editor}}Add files, file types or regular expressions in the ''Exclude List Editor''==
When creating a backup task, you specify the source for your backup as well as define any files or patterns you want to exclude from backup.  


<ol><li>From '''Main Selection -> Tasks -> By clients''', select your client and click '''New backup task'''. The ''New backup task'' window opens.
<li>Enter the '''Task name'''.
<li>From the '''Backup type''' drop-down list, select '''appropriate backup type'''.
<li>Specify the '''Source'''. If you want to back up individual files, you can either browse for directories and files that you want to include in the backup or enter their names followed by a comma (''C:/Program Files/SEPsesam/var/db,C:\Users\AA\Documents\references''). If you want to backup the whole file system, set the source as ''all''. If you want to back up only files that match a specific pattern, use the [[Special:MyLanguage/FAQ#incl-excl_files|include list]] instead.
<li>In the '''Exclude List Editor''', specify the exclusions by using regular expressions. Add the exclusion patterns on by one followed by a comma. For example, if you want to back up source ''/usr'' but skip ''*.tmp'' and ''old*.c'' files and all old* directories, add the following pattern to the editor:</li>
\.tmp$, /old.*\.c$, /old.*/$
[[image:exclude_list.png|600px|left|link=]]
<br clear=all></ol>
{{note|Exclude by using regular expressions is the default setting, but you can change it to use the file pattern (?,*) instead of regex by modifying the configuration file <tt><SESAM_VAR>/var/ini/sm.ini</tt> on the [[Special:MyLanguage/SEP_sesam_Glossary#SBC|SEP sesam Client]]. In the config file <tt>sm.ini</tt> change the entry<br /> <nowiki>EXCLUDE_MATCH= REGEXP to EXCLUDE_MATCH= PATTERN </nowiki>.}}
=={{anchor|custom}}Create a custom exclude list on client==
You can specify a custom exclude list of items to be skipped during backup by creating a special file on SEP sesam Client.


==See also==
==See also==
[[Special:MyLanguage/Exclude_with_File_Patterns_4.4|Exclude with file patterns]] – [[Special:MyLanguage/Exclude_with_Regular_Expressions_4.4|Exclude with regular expressions]] –  [[Special:MyLanguage/FAQ#SBC|How can I set the SBC so that the exclude list always uses the file pattern instead of using regular expressions?]] – [[Special:MyLanguage/FAQ#exclude_VSS_writers|How to exclude specific VSS writers from a backup?]] –  [[Special:MyLanguage/FAQ#exclude_directory|Exclude a directory from a backup]] – [[Special:MyLanguage/SEP_Sesam_Admin_Manual#Default_exclude_list|Default exclude list]] - [[Special:MyLanguage/FAQ#exclude_list|Specify longer exclude lists]] - [[Special:MyLanguage/FAQ#Linux_backup| Exclude a large number of files for backup in Linux]] - [[Special:MyLanguage/FAQ#exclude_file| Exclude a large number of files for backup in Windows]]
[[Special:MyLanguage/Exclude_with_File_Patterns_4.4|Exclude with file patterns]] – [[Special:MyLanguage/Exclude_with_Regular_Expressions_4.4|Exclude with regular expressions]] –  [[Special:MyLanguage/FAQ#SBC|How can I set the SBC so that the exclude list always uses the file pattern instead of using regular expressions?]] – [[Special:MyLanguage/FAQ#exclude_VSS_writers|How to exclude specific VSS writers from a backup?]] –  [[Special:MyLanguage/FAQ#exclude_directory|Exclude a directory from a backup]] – [[Special:MyLanguage/SEP_Sesam_Admin_Manual#Default_exclude_list|Default exclude list]] - [[Special:MyLanguage/FAQ#exclude_list|Specify longer exclude lists]] - [[Special:MyLanguage/FAQ#Linux_backup| Exclude a large number of files for backup in Linux]] - [[Special:MyLanguage/FAQ#exclude_file| Exclude a large number of files for backup in Windows]]

Revision as of 14:39, 30 December 2016

Draft.png WORK IN PROGRESS
This article is in the initial stage and may be updated, replaced or deleted at any time. It is inappropriate to use this document as reference material as it is a work in progress and should be treated as such.

Copyright © SEP AG 1999-2024. All rights reserved.

Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3. For previous documentation version(s), check Documentation archive.


Overview

For each backup you can back up only files that match a specific pattern and exclude specific files, file types or directories from backups.

Some files are only temporary while others are permanently in use. These files should be either excluded from the ordinary backup or be backed up in a special way. For example, you may not want to back up any temporary (.tmp) files, read-only files, or files from specific directories (e.g., download directory). SEP sesam provides a number of ways for setting up exclusion:

Simple Exclude List in backup task wizard
Add files, file types or regular expressions (regex) to Exclude List when creating a backup task.
Excludes specified as a separate file on client
Create a custom exclude list on the SEP sesam Client (SBC SLI) to exclude a larger number of files.
Permanently marking the directory for exclusion
Create a special file nosbc in the directory itself.

Add files, file types or regular expressions in the Exclude List Editor

When creating a backup task, you specify the source for your backup as well as define any files or patterns you want to exclude from backup.

  1. From Main Selection -> Tasks -> By clients, select your client and click New backup task. The New backup task window opens.
  2. Enter the Task name.
  3. From the Backup type drop-down list, select appropriate backup type.
  4. Specify the Source. If you want to back up individual files, you can either browse for directories and files that you want to include in the backup or enter their names followed by a comma (C:/Program Files/SEPsesam/var/db,C:\Users\AA\Documents\references). If you want to backup the whole file system, set the source as all. If you want to back up only files that match a specific pattern, use the include list instead.
  5. In the Exclude List Editor, specify the exclusions by using regular expressions. Add the exclusion patterns on by one followed by a comma. For example, if you want to back up source /usr but skip *.tmp and old*.c files and all old* directories, add the following pattern to the editor:
  6. \.tmp$, /old.*\.c$, /old.*/$
    Exclude list.png

Information sign.png Note
Exclude by using regular expressions is the default setting, but you can change it to use the file pattern (?,*) instead of regex by modifying the configuration file <SESAM_VAR>/var/ini/sm.ini on the SEP sesam Client. In the config file sm.ini change the entry
EXCLUDE_MATCH= REGEXP to EXCLUDE_MATCH= PATTERN .

Create a custom exclude list on client

You can specify a custom exclude list of items to be skipped during backup by creating a special file on SEP sesam Client.

See also

Exclude with file patternsExclude with regular expressionsHow can I set the SBC so that the exclude list always uses the file pattern instead of using regular expressions?How to exclude specific VSS writers from a backup?Exclude a directory from a backupDefault exclude list - Specify longer exclude lists - Exclude a large number of files for backup in Linux - Exclude a large number of files for backup in Windows