The anti-deletion undelete under SCO Unix

Source: Internet
Author: User
Tags versions

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.