Offload To Collection

Description

Archiving logs from one or more source collections to target collections.

Command

codefresh offline-logs offload-to-collection

Options

Option Alias Type Default Description
--uri string Mongodb URI. If not provided, will be parsed from environment variable RUNTIME_MONGO_URI.
--db string Database name. If not provided, will be parsed from environment variable RUNTIME_MONGO_DB.
--help Print help information
--targetDB --tdb string This option is available only for mongodb version 4.2 and up. for older versions it will be ignored. Target database name, if none inserted, db will be defined as target.
--cutoffDate --cod string The date in ISO format (yyyy-MM-dd) from which logs will be archived (going backwards, including logs from that day).

Examples

undefined

codefresh offline-logs offload-to-collection --uri "mongodb://192.168.99.100:27017" --db logs --cod "2021-07-08"