archive

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdBackup = &cobra.Command{
	Use:   "backup",
	Short: "Backup your data",
	RunE: func(cmd *cobra.Command, args []string) error {
		if dst == "" {
			dst = fmt.Sprintf("tdl-backup-%s.zip", time.Now().Format("2006-01-02-15_04_05"))
		}

		return archive.Backup(cmd.Context(), dst)
	},
}
View Source
var CmdRecover = &cobra.Command{
	Use:   "recover",
	Short: "Recover your data",
	RunE: func(cmd *cobra.Command, args []string) error {
		return archive.Recover(cmd.Context(), file)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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