Description
Adds the passed directory as a new root directory to the connected database and applies extended settings for this new root.
Syntax
AddRootToDatabase (Path : <String>, FollowMountPoints <Boolean>, TrackAlternateDataStreamsandHardLinks <Boolean>, CalculateMD5checksums <Boolean>, PurgeInterval <Integer>, UseChangeJournal <Boolean>, ExcludeFilter <String>, ObservingServer <String>, Database : <String>)
Parameters
Path |
A new root path, which will be added to the database. |
FollowMountPoints |
You can decide if a scan should follow symbolic links and mount points within the selected directory branch. |
TrackAlternateDataStreamsandHardLinks |
Detects NTFS Alternate Data Streams as well as NTFS hard links within a scan and include this values to the calculation of the allocated folder size. |
CalculateMD5checksums |
this option decides if MD5 checksum of files content should be calculated and stored in the database, as indicator to identify duplicate files. |
PurgeInterval |
Selects how many days the file system size information of the selected directory remains in the database. |
UseChangeJournal |
Pass true to activate the "Change Journal analyzing" for the new root directory. |
ExcludeFilter |
Exclude pattern for files and folders which should not be included in scans. Multiple patterns are delimited by ":". |
ObservingServer |
The name of the machine/server that should execute the scans for the new root. Pass "" to use the executing machine. Multiple machines are delimited by ";". |
Database |
The name of the database to store the file system information of the added root in. |
Example
SOS.ScanRootDirectory "C:\", False, False, True, 100, Fase, "~snapshot", "", "SOS_REMOTE_C"
SOS.ScanRootDirectory "D:\", False, False, True, 100, Fase, "~snapshot", "", "SOS_REMOTE_D"
SOS.ScanRootDirectory "E:\", False, False, True, 100, Fase, "~snapshot", "", "SOS_REMOTE_E"
Adds the new root directories "C:\", "D:\" and "E:\" to the SQL server database and sets the following extended properties:
1. "Calculate MD5 Checksums" will be activated.
2. The Purge old data Intervall is set to 100 days.
3. The data will be stored in different databases on the SQL server: "C:\" in "SOS_REMOTE_C", "D:\" in "SOS_REMOTE_D" and "E:\" in "SOS_REMOTE_E".