FTPDIFF Look for differences in the FTP site file system |
Top Previous Next |
This command is not valid with HTTP/HTTPS sites.
This script command is used in conjunction with the FTPSNAPSHOT and FTPGETDIFF 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 FTP site file system.
FTPSNAPSHOT is the first step to establish a baseline (or “snapshot”) of the specified folder(s) from which to determine if any file(s) change and FTPDIFF is used subsequently to compare the current state of the file system with what was saved in [ dbfile ]. Any changes found are saved back into the same database file (to be processed using the FTPGETDIFF command) and the original snapshot is updated to reflect the current state of the file system (unless this is suppressed by the inclusion of the /noupdate option.
If the [ dbfile ] argument is specified it must be the name of a database file previously created by the SNAPSHOT command. If omitted the default “snapshot_site.sql” file is used.
Consider the following example which compares the current working folder and any subfolders with the snapshot saved in the default “snapshot_site.sql” file.
FTPDIFF "*.*" /incldirs
The total number of differences found in the FTP site file system is saved in the %ftpdifffiles script variable.
Related Command(s): FTPDIFFREWIND, FTPGETDIFF, FTPSNAPSHOT |