Documentation ¶
Index ¶
- Variables
- func AddDrive(drive_letter string, drive_name string) string
- func AddSource(source_paths []string, archive_name string)
- func BackupDatabase() int
- func BackupFileDir(source_ids []int64, archive_names []string) int
- func CreateDiskIdentityFile(drive_letter string, ksuid string) bool
- func CreateSourceBackup(source_paths []string, backup_paths []string, archive_name string) error
- func Execute()
- func GetDrivesWithDB() []string
- func Ksuid2Drive(ksuid string) string
- func ListArchives()
- func ListBackups() int
- func ListDrives()
- func LoadDBFromDrive(drive_letter string) error
- func NewDriveRecord(drive_letter string) database.DriveRecord
- func RemoveDestination(archive_id int64, drive_ksuid string) int
- func RemoveDestinationByArchive(archive_name string) int
- func RemoveDestinationByDrive(drive_letter string) int
- func RemoveDestinationByPath(destination_path string)
- func RemoveSource(source_id int64) error
- func RemoveUnusedArchive(archive_id int64) bool
- func RestoreFileDir(source_ids []int64, archive_names []string, backup_paths []string) int
- func SpreadDatabase(drive_letter string) int
- func TestRootCmd() *cobra.Command
- func TransformBackups(backup_rels map[int64]database.BackupRel) map[string]database.BackupPaths
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BackupDatabase ¶
func BackupDatabase() int
func BackupFileDir ¶
func CreateDiskIdentityFile ¶
Creates .drive file with ksuid in it
func CreateSourceBackup ¶
Creates records for source-backup relation Archive name is optional
func GetDrivesWithDB ¶
func GetDrivesWithDB() []string
func ListArchives ¶
func ListArchives()
func ListBackups ¶
func ListBackups() int
func LoadDBFromDrive ¶
func NewDriveRecord ¶
func NewDriveRecord(drive_letter string) database.DriveRecord
func RemoveDestination ¶
func RemoveDestinationByPath ¶
func RemoveDestinationByPath(destination_path string)
func RemoveSource ¶
func RemoveUnusedArchive ¶
func RestoreFileDir ¶
func SpreadDatabase ¶
func TestRootCmd ¶
func TransformBackups ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.