Documentation
¶
Index ¶
- func AddBackupRoute(w http.ResponseWriter, req *http.Request)
- func CheckRepository(repository, password string) error
- func CreateBackupJob(config BackupConfig, crontab string)
- func CreateForgetJob(config BackupConfig, crontab string)
- func CreateRepository(repository, password string) error
- func CreateRestoreJob(config RestoreConfig)
- func DeleteByTag(repository string, password string, tag string) error
- func DeleteRepository(repository string) error
- func EditBackupRoute(w http.ResponseWriter, req *http.Request)
- func EditRepositoryPassword(repository, currentPassword, newPassword string) error
- func ExecRestic(args []string, env []string) (string, error)
- func ForgetSnapshot(repository, password, snapshot string) error
- func ForgetSnapshotRoute(w http.ResponseWriter, req *http.Request)
- func InitBackups()
- func ListDirectory(repository, password, snapshotID, path string) (string, error)
- func ListDirectoryWithFilters(repository, password, snapshotID, path string, recursive bool, longFormat bool) (string, error)
- func ListFoldersRoute(w http.ResponseWriter, req *http.Request)
- func ListRepos(w http.ResponseWriter, req *http.Request)
- func ListSnapshots(repository, password string) (string, error)
- func ListSnapshotsRoute(w http.ResponseWriter, req *http.Request)
- func ListSnapshotsRouteFromRepo(w http.ResponseWriter, req *http.Request)
- func ListSnapshotsWithFilters(repository, password string, tags []string, host string, path string) (string, error)
- func RemoveBackupRoute(w http.ResponseWriter, req *http.Request)
- func RestoreBackupRoute(w http.ResponseWriter, req *http.Request)
- func SplitJSONObjects(input string) string
- func StatsRepository(repository, password string) (string, error)
- func StatsRepositorySubfolder(repository, password, snapshot, path string) (string, error)
- func StatsRepositorySubfolderRoute(w http.ResponseWriter, req *http.Request)
- type BackupConfig
- type RestoreConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBackupRoute ¶
func AddBackupRoute(w http.ResponseWriter, req *http.Request)
func CheckRepository ¶
CheckRepository verifies if a repository exists and is valid
func CreateBackupJob ¶
func CreateBackupJob(config BackupConfig, crontab string)
CreateBackupJob creates a backup job configuration
func CreateForgetJob ¶
func CreateForgetJob(config BackupConfig, crontab string)
func CreateRepository ¶
CreateRepository initializes a new Restic repository
func CreateRestoreJob ¶
func CreateRestoreJob(config RestoreConfig)
CreateRestoreJob creates a restore job configuration
func DeleteRepository ¶
DeleteRepository removes a Restic repository
func EditBackupRoute ¶
func EditBackupRoute(w http.ResponseWriter, req *http.Request)
func EditRepositoryPassword ¶
EditRepositoryPassword changes the password of an existing repository
func ExecRestic ¶
ExecRestic executes a restic command with the given arguments and environment variables
func ForgetSnapshot ¶
func ForgetSnapshotRoute ¶
func ForgetSnapshotRoute(w http.ResponseWriter, req *http.Request)
func InitBackups ¶
func InitBackups()
func ListDirectory ¶
ListDirectory lists the contents of a directory in a specific snapshot
func ListDirectoryWithFilters ¶
func ListDirectoryWithFilters(repository, password, snapshotID, path string, recursive bool, longFormat bool) (string, error)
ListDirectoryWithFilters lists directory contents with additional filters
func ListFoldersRoute ¶
func ListFoldersRoute(w http.ResponseWriter, req *http.Request)
func ListSnapshots ¶
ListSnapshots returns a list of all snapshots in the repository
func ListSnapshotsRoute ¶
func ListSnapshotsRoute(w http.ResponseWriter, req *http.Request)
func ListSnapshotsRouteFromRepo ¶
func ListSnapshotsRouteFromRepo(w http.ResponseWriter, req *http.Request)
func ListSnapshotsWithFilters ¶
func ListSnapshotsWithFilters(repository, password string, tags []string, host string, path string) (string, error)
ListSnapshotsWithFilters returns a filtered list of snapshots
func RemoveBackupRoute ¶
func RemoveBackupRoute(w http.ResponseWriter, req *http.Request)
func RestoreBackupRoute ¶
func RestoreBackupRoute(w http.ResponseWriter, req *http.Request)
func SplitJSONObjects ¶
SplitJSONObjects splits a string containing multiple JSON objects, respecting quotes
func StatsRepository ¶
CheckRepository verifies if a repository exists and is valid
func StatsRepositorySubfolder ¶
CheckRepository verifies if a repository exists and is valid
func StatsRepositorySubfolderRoute ¶
func StatsRepositorySubfolderRoute(w http.ResponseWriter, req *http.Request)