list-config-revisions

List configuration file revisions from Git This command lists revisions of configuration files stored in the Git repository under /etc/.git. By default, if you do not pass any other options, it shows the latest revision of files under the Virtualmin /etc/webmin/virtual-server configuration directory. This command was previously named list-config-backups. If you see the older name in changelog entries or examples, use list-config-revisions instead. Use --module to limit the search to a single Webmin module, such as virtual-server or fsdump. When a module is selected, each --file value is treated as a path relative to that module directory. Without --module, file paths are treated as relative to /etc, unless you provide an absolute path.

List configuration file revisions from Git#

This command lists revisions of configuration files stored in the Git repository under /etc/.git. By default, if you do not pass any other options, it shows the latest revision of files under the Virtualmin /etc/webmin/virtual-server configuration directory.


This command was previously named list-config-backups. If you see the older name in changelog entries or examples, use list-config-revisions instead.

Use --module to limit the search to a single Webmin module, such as virtual-server or fsdump. When a module is selected, each --file value is treated as a path relative to that module directory. Without --module, file paths are treated as relative to /etc, unless you provide an absolute path.

The --file option may be given more than once and can point at a single file, a directory, or a glob like domains/*. By default the command shows only the most recent revision, but --depth can be used to display older revisions as well.

Examples#

View the latest revision of the Virtualmin module configuration:

virtualmin list-config-revisions

View the latest revision of the main Virtualmin config file:

virtualmin list-config-revisions --module virtual-server --file config

View the last two revisions of /etc/hosts and /etc/fstab:

virtualmin list-config-revisions --file hosts --file fstab --depth 2

Command line help#

virtualmin list-config-revisions [--depth <n>]
 [--file file]*
 [--module module]
 [--git-repo </path/to/.git>]

Source: https://www.virtualmin.com/docs/development/api-programs/list-config-revisions/

  • virtualmin, webmin, domain, virtual-server, backup, log, command line, module, list, config, revisions
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...