filebackup

package
v0.12.2-beta.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BackupRetentionPeriod = 5 * 24 * time.Hour

Variables

This section is empty.

Functions

func CleanupOldBackups

func CleanupOldBackups() error

func MakeFileBackup

func MakeFileBackup(absFilePath string) (string, error)

func RestoreBackup

func RestoreBackup(backupFilePath string, restoreToFileName string) error

Types

type BackupMetadata

type BackupMetadata struct {
	FullPath  string `json:"fullpath"`
	Timestamp string `json:"timestamp"`
	Perm      string `json:"perm"`
}

Jump to

Keyboard shortcuts

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