Skip to content

sys.log_backup_legacy

This view records the history of backup (ybbackup) operations that are run with pre-Version 4.0 legacy tools. A unique row is defined by the transaction ID assigned to the backup operation.

Column NameData TypeDescription
session_keytextUnique session key generated for the backup operation.
statetextCurrent state of the backup operation, such as RUNNING or DONE.
error_stringtextError message reported for a failed backup. For example, if a backup is cancelled before it completes, the view may report an External data socket error.
object_idbigintUnique ID of the database that was backed up.
user_idbigintUnique ID of the database user.
session_idbigintUnique ID of the ybbackup session.
object_nametextName of the database that was backed up, as passed in on the ybbackup command line.
user_nametextName of the database user, as passed in on the ybbackup command line (or set with YBUSER).
client_hostnametextClient host name, if available.
client_usernametextOperating system user on the client system who is running the backup tool.
start_timetimestamptzWhen the ybbackup command started running.
end_timetimestamptzWhen the ybbackup command completed.
transaction_idbigintUnique transaction ID for the backup.
backup_nametextBackup name as specified with the ybbackup --name option.
directoriestextDirectory location where the backup is stored.
sent_bytesbigintNumber of bytes transferred over the network.
sent_bytes_per_seconddouble precisionNumber of bytes per second transferred over the network.
nodatabooleanWhether this backup was a "nodata" backup (metadata only).

Example

premdb=# select * from sys.log_backup;

-[ RECORD 1 ]---------+-----------------------------------------------------------------
session_key           | B2QQzmMmFBqMDnLhda1Ds14flpztGp38ib6uyTDYBxpSqFkNeUrIDRwJ5TaC_Mld
state                 | DONE
error_string          | [NULL]
object_id             | 16423
user_id               | 16434
session_id            | 16772
object_name           | premdb
user_name             | bobr
client_hostname       | localhost
client_username       | yb100
start_time            | 2018-12-02 16:31:29.795-07
end_time              | 2018-12-02 16:31:38.569-07
transaction_id        | 46230
backup_name           | dec2018
directories           | [/home/brumsby/premdb_backups]
sent_bytes            | 154559519
sent_bytes_per_second | 19121553
nodata                | f
...

Parent topic:System Views