NaviServer - programmable web server
4.99  5.0

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

ns_rollfile(n) 5.0.0a naviserver "NaviServer Built-in Commands"

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_purgefiles, nsd

Keywords

NaviServer, backup, global built-in, logging