SCO OpenServer supports versioning filesystems (undelete), but the default does not turn on this feature, the following are the specifics:
1) Select Hardware/kernel Manager in Scoadmin, select filesystem configuration,
Set Maxvdepth to a value other than 0 (n= How many previous versions are saved, consider disk space when setting a larger number)
Set Minvtime (number of seconds to wait before file versioned)
2) Recompile (relink) kernel;
3 Reboot the server;
4 Enable undelete for directories that need to be set undelete (for example:/u/data)
Undelete-s/u/data
5 in order to see the versioned situation, set the following environment variables:
Showversions=1; Export Showversions
6 Check the versioned file with the document, you can restore the deleted or overwritten files as needed.
Undelete supports the following options:
If the-l,-p,-S,-u and-v options are not specified, undelete recovers the specified files.
-L
Print a listing of all versions of the specified file (s)
-P
Purge (permanently delete) specified source file (s)
-S
Turn the specified directories and its subsequent child directories
-U
Turn the version attribute off for the specified directories
-V
Force the specified file (s) to be versioned
The following additional options are recognized:
-D
Normally, if the specified file is a directory, undelete'll operate on the files contained in that directory. If This option is specified, undelete operates on the directory itself.
--------------------------------------------------------------------------------
Note:undelete does not work on directories that are mounted.
--------------------------------------------------------------------------------
-I.
Undelete'll prompt for confirmation prior to recovering a file that'll overwrite the current version of the file. A y answer means that the undeletion should proceed. Any other answer prevents undelete from undeleting the file.
-F
Undelete would recover the file (s) without prompting even if it is overwriting over a existing current version of the file . This option overrides the-i option. The ' This ' is ' the ' default if ' standard ' is ' not ' a terminal.
-R
Undelete'll operate recursively on any directories in the argument list. Symbolic links that are encountered and this option is traversed.
-M [+-]days
Undelete'll only consider the files that were deleted less than (-), greater than (+) or exactly (Neither-nor +) days ago.