Documentation
¶
Index ¶
- func Cleanup(path string) error
- func Compare(freeDisk, estimated float64) bool
- func DirSize(path string) float64
- func DiskPartitionSize() (float64, error)
- func EstimateFsSpaceRequirements() (float64, error)
- func Execute()
- func ExecuteCmd(cmd string) error
- func InitBackup() error
- func LaunchBackup() error
- func RecoveryInProgress(backupPath string) bool
- func SizeConversion(size float64) (float64, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
Cleanup deletes all old subdirectories and files in the recovery partition returns: error
func Compare ¶
Compare verifies freedisk against estimated and safetyNet calculation returns: boolean
func DirSize ¶
DirSize calculates current diskspace used by the files under a directory returns: size of the directory(float64)
func DiskPartitionSize ¶
DiskPartitionSize calculate current disk space returns: disk size(float64), error
func EstimateFsSpaceRequirements ¶
EstimateFsSpaceRequirements calculate the required backup size returns: disk size(float64), error
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ExecuteCmd ¶
ExecuteCmd execute shell commands returns: error
func LaunchBackup ¶
func LaunchBackup() error
LaunchBackup triggers the backup procedure returns: error
func RecoveryInProgress ¶
RecoveryInProgress checks if a restore is in progress returns: bool
func SizeConversion ¶
SizeConversion coverts the bytes into its multiple returns: converted size(float64), corresponding metric(string)
Types ¶
This section is empty.