utils

package
v0.0.0-...-7bec513 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(source, target string) error

Archive - compresses the contents of the directory

func Clean

func Clean(exportsPath, archiveName string) error

Clean - deletes contents of exports directory and created archive after S3 upload

func CleanAfterRestore

func CleanAfterRestore() error

CleanAfterRestore - deletes tempoerary directory after backup restore

func GetSchemaPath

func GetSchemaPath(dir string) (schemaPath string, err error)

GetSchemaPath - returns path to the schema file NOTE: assuming there is only one .schema.gz file

func Unarchive

func Unarchive(source string) (string, error)

Unarchive - unarchives compressed backup

Types

This section is empty.

Jump to

Keyboard shortcuts

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