NaviServer Programmable Web Server

ns_rollfile(n)

NaviServer Built-in Commands – 5.0.0a


[ Main Table Of Contents | Table Of Contents | Keyword Index ]

Name

ns_rollfile - Roll an arbitrary file

Table Of Contents

Synopsis

Description

This function rolls the specified file, keeping backup copies.

COMMANDS

ns_rollfile path maxbackups

This function rolls the specified file, keeping a number of backup copies up to maxbackups. When the specified file is rolled, it gets renamed to path.xyz, where 000 <= xyz <= 999. Older files have higher numbers. Since 4 digits are used, the maximum number if back files is 1000.

See Also

ns_log, ns_logroll, ns_purgefiles, nsd

Keywords

NaviServer, backup, global built-in, logging