Skip to content

northflank/mongodb-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Archive Tool

This tool can be run as a cron-job on Northflank to perform an archive setup similar to the Atlas offering.

This requires the environment variable ARCHIVE_CONFIGURATION which is a json string with the following type:

export interface InputSource {
  sourceCluster: string;
  destinationCluster: string;
  archiveSources: ArchiveSource[];
}

export interface ArchiveSource {
  database: string;
  collection: string;
  field: string;
  archiveDays: number;
}
  • sourceCluster should be the MONGO_SRV_ADMIN of the source cluster which data will be taken from
  • destinationCluster should be the MONGO_SRV_ADMIN of the archive cluster
  • archiveSources is an array of collections which will have documents archived when document.[field] is older than archiveDays

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published