Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FSBackup

Backup MemsDB collections to the filesystem

Hierarchy

  • FSBackup

Implements

  • BackupProvider

Index

Constructors

Properties

Methods

Constructors

constructor

  • new FSBackup(opts?: FSBackupOpts): FSBackup

Properties

Private backupLimit

backupLimit: number

Private filenameFormat

filenameFormat: string

Private saveDirectory

saveDirectory: string

Methods

load

  • load(): any
  • Loads a backup from the filesystem or returns an object with an error

    Returns any

save

  • save(backup: Backup): boolean
  • Save a backup to the filesystem

    Parameters

    • backup: Backup

      Backup data to save

    Returns boolean

Generated using TypeDoc