SNAPSHOT Take a “snapshot” of the local PC file system |
Top Previous Next |
This script command is used in conjunction with the DIFF and GETDIFF script commands to locate individual file differences (i.e., change in size, date/time stamp) within a specified folder (and optional subfolder) tree within the local PC file system.
SNAPSHOT is the first step to establish a baseline (or “snapshot”) of the specified folder(s) from which to determine if any file(s) change. Details about files found are saved in an SQL database file. The database file name defaults to “snapshot_local.sql” but you may name it anything you like via the [ dbfile ] argument.
As long as unique and consistent [ dbfile ] arguments are specified, FileLink supports as many separate snapshots as you wish.
Consider the following example which takes a snapshot of the current working folder and any subfolders.
SNAPSHOT "*.*" /incldirs
In most cases SNAPSHOT need only be run once. Future changes detected in the file system by the DIFF command are automatically updated in the database file unless FileLink is specifically told not to do so.
The total number of files examined in the local PC file system is saved in the %snapshotfiles script variable.
Related Command(s): DIFF, DIFFREWIND, GETDIFF
|