backup

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: AGPL-3.0 Imports: 39 Imported by: 3

Documentation

Overview

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Package backup handle data backup/restore to/from ZIP format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Runtime *env.Runtime
	Store   *store.Store
	Indexer indexer.Indexer
}

Handler contains the runtime information such as logging and database.

func (*Handler) Backup

func (h *Handler) Backup(w http.ResponseWriter, r *http.Request)

Backup generates binary file of all instance settings and contents. The content is pulled directly from the database and marshalled to JSON. A zip file is then sent to the caller.

func (*Handler) Restore added in v1.72.0

func (h *Handler) Restore(w http.ResponseWriter, r *http.Request)

Restore receives ZIP file for restore operation. Options are specified as HTTP query paramaters.

Jump to

Keyboard shortcuts

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