beautypg.com

Displaying oss files and directories, Comparing source and destination file sets, Ownership and security – HP NonStop G-Series User Manual

Page 73

background image

OSS File Synchronization

HP AutoSYNC User’s Guide522580-016

5-5

Displaying OSS Files and Directories

Another side effect of the source and destination timestamps inherent mismatch is that
the TIMEEXACT option is ignored for symbolic links.

Displaying OSS Files and Directories

For convenience, the AUTOSYNC command

LS

can be used to display information

and statistics on OSS files, directories, and directory trees. The AUTOSYNC command
LS is equivalent to the OSS shell command ls and has several options. For example:

Comparing Source and Destination File Sets

A source file or directory is synchronized if the source file or directory was modified
after the destination file or directory was last modified. Timestamp comparisons
account for differences in time zones and system clocks. Files that have the same
modification timestamp are never synchronized.

Exceptions:

If the TIMEEXACT option is specified, a source and destination file that do not
have the same modification timestamp are synchronized, even if the destination
file was modified after the source file.

As mentioned above in

Modification Timestamp of Symbolic Links

, TIMEEXACT is

ignored for symbolic links.

The RENAMEOPEN option is not supported for OSS files. If a destination file is
open at the time of the synchronization, it will not be synchronized but a warning is
written to the log file and synchronization continues with the next file or directory.

The BACKUP[INFILE] for OSS file sets is an entry-sequenced file that contains the
names of the files and directories to be synchronized in addition to internal file
information. Specify the

KEEPB[ACKUPINFILE]

option to preserve this file for

debugging purposes.

Ownership and Security

AutoSYNC propagates the standard file and directory security.

Unlike Guardian, OSS does not allow AutoSYNC to "give" ownership of files to another
user, or to set the group ID to another group, unless the user is SUPER.SUPER. The
user always becomes the owner of the files on the destination file set, unless the user
is SUPER.SUPER. This means each user can only synchronize their own files unless:

AutoSYNC 9? ls -l /home/guser/sally;
/home/guser/sally:
drwxr-xr-x 1 GUSER.SALLY GUSER 4096 7Mar06 14:27 emptydir
drwxrwxrwx 1 GUSER.SALLY GUSER 4096 7Mar06 16:12 safekeep
drwxr-xr-x 1 GUSER.SALLY GUSER 4096 22Mar06 10:46 sourcedir
drwxr-xr-x 1 GUSER.SALLY GUSER 4096 24Sep06 12:20 triggdir

This manual is related to the following products: