backup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package backup is providing commands to inspect a file system (hard-drive, USB, Android, S3) and backup medias to a remote DPhoto storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MovePhysicalStorage

func MovePhysicalStorage(owner string, folderName, filename, destinationFolderName string) (string, error)

MovePhysicalStorage is a pass through to the adapter.

func ScanVolume

ScanVolume scan a source to discover albums based on original folder structure. Listeners will be notified on the progress of the scan.

func StartBackupRunner

func StartBackupRunner(owner string, volume backupmodel.VolumeToBackup, options Options) (backupmodel.BackupReport, error)

StartBackupRunner starts backup of given backupmodel.VolumeToBackup and returns when finished. Listeners will received progress updates.

Types

type Options

type Options struct {
	PostAnalyseFilter backupmodel.PostAnalyseFilter
	Listener          interface{}
}

type ScanOptions

type ScanOptions struct {
	Listeners   []interface{}
	SkipRejects bool // SkipRejects mode will report any analysis error, or missing timestamp, and continue.
}

Directories

Path Synopsis
avi
exif
Package exif parse image files to extract key details.
Package exif parse image files to extract key details.
filesystem
Package filesystem scan a local filesystem to find medias on it
Package filesystem scan a local filesystem to find medias on it
localstorage
Package localstorage provides a temporary location where files can be copied to be quickly read for analyse.
Package localstorage provides a temporary location where files can be copied to be quickly read for analyse.
m2ts
Package m2ts is parsing M2TS files followings specs: https://en.wikipedia.org/wiki/MPEG_transport_stream https://en.wikipedia.org/wiki/Packetized_elementary_stream https://en.wikipedia.org/wiki/Program-specific_information
Package m2ts is parsing M2TS files followings specs: https://en.wikipedia.org/wiki/MPEG_transport_stream https://en.wikipedia.org/wiki/Packetized_elementary_stream https://en.wikipedia.org/wiki/Program-specific_information
mp4
Package mp4 parse a MP4 file to retrieve creation date, length, and other details found in the stream.
Package mp4 parse a MP4 file to retrieve creation date, length, and other details found in the stream.
onlinestorage
Package onlinestorage provides operations to the location where medias are backed-up.
Package onlinestorage provides operations to the location where medias are backed-up.
volumes
Package volumes is storing snapshot of the last backup so most media do not need to be re-analysed on next backup.
Package volumes is storing snapshot of the last backup so most media do not need to be re-analysed on next backup.
Package backupmodel define the common language used within backup package (between interactors, adapters, and backup consumers)
Package backupmodel define the common language used within backup package (between interactors, adapters, and backup consumers)
downloader
Package downloader provides an alternative to a local temporary storage.
Package downloader provides an alternative to a local temporary storage.

Jump to

Keyboard shortcuts

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