backup

package
v0.0.0-...-d25a9c8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0, GPL-3.0-only Imports: 14 Imported by: 0

README

Conductorr Backup

Conductorr has builtin functionality to create backups that can be used to transfer Conductorr to a new instance.

Guarantees

Conductorr's backup system is guaranteed to successfully restore from backups that were made on the same version of Conductorr, but backup files made on different versions of Conductorr are not guaranteed to successfully or fully restore.

Therefore, if you wish to restore from a backup created on an older version of Conductorr, it is recommended to do the following:

  • Uninstall the newer version of Conductorr
  • Install the version of Conductorr that matches the backup file
  • Upload the backup file through the interface
  • Upgrade Conductorr to the newer version

Conductorr's database migration system will handle the data manipulation needed to bring the database up to spec.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBackup

func CreateBackup(ctx context.Context) (id int, err error)

func GetBackupFile

func GetBackupFile(id int) (string, time.Time, bool)

Types

type BackupData

type BackupData struct {
	Medias       []*dbstore.Media
	Paths        []*dbstore.Path
	Profiles     []*dbstore.Profile
	MediaServers []*dbstore.MediaServer
	Downloads    []*dbstore.Download
	Downloaders  []*dbstore.Downloader
	Indexers     []*dbstore.Indexer
	Version      string
}

type BackupMapper

type BackupMapper struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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