Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectMacFolder ¶
SelectMacFolder prompts user to select a folder with a GUI
Types ¶
type Backup ¶
type Backup struct { Unix bool Paranoid bool FolderMode bool FD string Identifier string Source Disk Destination Disk AllDisks []Disk SelectedUsers []User AllUsers []User MainLog *log.Logger FileLog *log.Logger ErrLog *log.Logger EndLog *log.Logger // contains filtered or unexported fields }
Backup holds lots of pertanant information for a backup process
func NewBackup ¶
func NewBackup() (temp Backup)
NewBackup returns a Backup, testing sudo, setting fd, and setting OS
func (*Backup) GetUsers ¶
func (b *Backup) GetUsers()
GetUsers sets up the users available for a backup
func (*Backup) VerifySizes ¶
func (b *Backup) VerifySizes()
VerifySizes checks and shows the technician the final sizes of the selected users/folder
type Disk ¶
type Disk struct { Usage *du.DiskUsage RootFiles []RootFile RootFolders []RootFolder AbsPath string Name string }
Disk holds a lot of information for disk paths, such as "C:\\" or "/Volumes/Macintosh\ HD/"
func GetDrives ¶
func GetDrives() (r []Disk)
GetDrives gets a list of available mounted disks on a Windows machine, in the [letter]:\ type
func GetInformation ¶
GetInformation gets info on disks on a windows machine and appends useful information
func GetVolumes ¶
func GetVolumes() (r []Disk)
GetVolumes gets a list of available mounted disks/partitions on a mac, in the /Volumes/ folder
func RemoveDisk ¶
RemoveDisk removes a disk entry from a list
type RootFile ¶
RootFile holds information for files on a root of a directory, mainly user root files
type RootFolder ¶
RootFolder holds a lot of information for each root folder found in a user's directory