<< back to sysax.com Product page |
Files can be backed up from a source folder to a destination storage folder. The destination folder can be either a local drive (local backup) or a remote server (online backup). Similarly the source can be a folder on a local computer or a remote server.
The setsource command is used to specify the source folder that needs to be backed up and the rules for including or excluding files and folders contained in the source. The local or remote keywords indicate if the source is located on a local or remote computer. The include or exclude keyword is followed by a list of files or folders to be excluded or included in the source folder. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder.
Exhibit 9.1. Syntax of command to set source path for backup
setsource <keywords: local, remote>, <path of source folder>, [<keywords: include, exclude>, "<file, folder>=<pattern>" ...]; |
Exhibit 9.2. Example of command to set source path for backup
setsource local, "c:\\ftpfolder", include, "file=*.txt", "file=*.doc", "folder=*data*", "folder=*info*"; |
The setdestination command is used to specify the destination backup folder and the rules for preserving or removing extra files and folders contained in the destination (files not present in the source). The local or remote keyword indicates if the backup destination is located on a local or remote computer. The preserve or remove keyword is followed by a list of files or folders that are present only in the destination and need to be preserved or removed. Each of the file or folder pattern is prefixed by a "file=" or "folder=" string to indicate if the pattern should match a file or folder.
Exhibit 9.3. Syntax of command to set destination path for backup
setdestination <keywords: local, remote>, <path of destination folder>, [<keywords: preserve, remove>, "<file, folder>=<pattern>" ...]; |
Exhibit 9.4. Example of command to set destination path for backup
setdestination remote, "/ftpdata", remove, "file=*.obj", "file=*.bin", "folder=*temp*", "folder=*tmp*"; |
The backuprun command is used to start the backup operation. The bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, and bysha1 keywords are used to indicate the type of comparison to be performed between the source and destination to determine which files and folders need to be backed up. The main difference between backup and synchronization is that during backup, files and folders that exist only in the destination, that are selected to be preserved, will never be copied to the source folder. Also, if the bylargersize,and bynewerdate comparison types are selected, if the destination files are found to be newer or larger than corresponding files in the source folder, the source files will simply be skipped. The source files will never be replaced by destination files.
Exhibit 9.5. Syntax of backuprun command
backuprun <keywords: bysize, bydate, bylargersize, bynewerdate, bycrc, bymd5, bysha1>; |