services

package
v0.0.0-...-b89426d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetaEntry

func AddMetaEntry(dateStartBackup time.Time, dateFinalizedBackupFile time.Time, folderPathBackup, fileNameMeta, fileNameBackupFile, collectionName, databaseName string) (err error)

Add row of meta data for one csv file

func CreateMetaDataFile

func CreateMetaDataFile(folderPath, fileNameMeta string) (err error)

Create csv file for meta data of all created backup files

func DeleteOldBackupsS3

func DeleteOldBackupsS3(bucketName string, awsClientConfig *aws.AwsClientConfigData) error

This backup server can optionally be used as a ring memory. Due to this, it is needed to keep the newest backups of number n

func ManageBackupsLocally

func ManageBackupsLocally() error

func UploadBackupsAwsS3

func UploadBackupsAwsS3(folderPathBackup, metaFileName string, awsClientConfig *aws.AwsClientConfigData, bucketName string) error

func WriteBSONToCSV

func WriteBSONToCSV(bsonData []bson.M, csvFilePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL