LIST BACKUPS

From Lianjapedia
Jump to: navigation, search

Purpose

List the currently available database backups

Syntax

LIST BACKUPS [TO FILE <.txt filename> | (<expC>)]

See Also

ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, BACKUP DATABASE, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, Database Events, DATABASE(), DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY STATUS, DISPLAY STRUCTURE, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, LOCK TABLE, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, RESTORE DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE

Description

The LIST BACKUPS command lists the currently available database backups. It displays two columns:

  • Database
  • Backup date and time

Database backups can be created using the BACKUP DATABASE command and restored using the RESTORE DATABASE command. The 'Backup date and time' displayed by LIST BACKUPS specifies the character string to be used in the optional FROM clause of RESTORE DATABASE.

TO <file>

The display output will be sent to the specified file. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, then ".txt" will be used.

Example

list backups