cmd

package
v0.0.0-...-f8e3b86 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 ITRepablik <support@itrepablik.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var BKMD []string

BKMD array of strings for copymd collections.

View Source
var BKMDF []string

BKMDF array of strings for copymd collections.

View Source
var BKSD []string

BKSD array of strings for copydir collections.

View Source
var BKSF []string

BKSF array of strings for copydir collections.

View Source
var DiskSN string

DiskSN is to store the user's HD Serial No at first runtime.

View Source
var IgnoreFT []string

IgnoreFT is a []strings type that collects the list of files to be ignored during the backup operation.

View Source
var IgnoreFileTypes interface{}

IgnoreFileTypes collects the list of files to be ignored during the backup operation.

View Source
var IsAutoBK bool = false

IsAutoBK default to 'false'

View Source
var IsBKCompressed bool = false

IsBKCompressed common automated backup variables

View Source
var IsBKItemsFound bool = false

IsBKItemsFound is to check if any backup items entered by the user from the 'config.yaml' file.

View Source
var IsLicenseKeyValid bool = true // Set license key valid

IsLicenseKeyValid default to 'true'

View Source
var IsLogCopiedFile bool = true

IsLogCopiedFile default to 'true'

View Source
var IsPasswordEntered bool = false

IsPasswordEntered default to 'false'

View Source
var IsUserNameEntered bool = false

IsUserNameEntered default to 'false'

View Source
var Logger *zap.Logger

Logger type is the *zap.Logger initialization

View Source
var MDays int = 0

MDays is the common variables to store number of days param to execute the copymd command.

View Source
var MapCopyDIRD = make(map[int]STCopyDIRD)

MapCopyDIRD is to store copydir_daily automated backup.

View Source
var MapCopyDIRF = make(map[int]STCopyDIRF)

MapCopyDIRF is to store copydir_frequently automated backup.

View Source
var MapCopyMD = make(map[int]STCopyMD)

MapCopyMD is to store copymd automated backup.

View Source
var MapCopyMDF = make(map[int]STCopyMDF)

MapCopyMDF is to store copymd_frequently automated backup.

View Source
var MaxAgeLogInDays int = 0 // 0 days means, it won't delete older backup logs

MaxAgeLogInDays get the max age of a log files in days.

View Source
var MaxLogFileSizeInMB int = 100 // mb

MaxLogFileSizeInMB gets the max log file size value in megabytes.

View Source
var NumFilesCopied int = 0

NumFilesCopied counts the number of files copied.

View Source
var NumFoldersCopied int = 0

NumFoldersCopied counts the number of folders copied.

Sugar type is the *zap.SugaredLogger initialization

Functions

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.

Types

type STCopyDIRD

type STCopyDIRD struct {
	// contains filtered or unexported fields
}

STCopyDIRD is the copy dir struct for data collection from the 'config.yaml' file.

var CURCopyDIRD STCopyDIRD

CURCopyDIRD is to store copydir_daily automated backup.

type STCopyDIRF

type STCopyDIRF struct {
	// contains filtered or unexported fields
}

STCopyDIRF is the copy dir struct for data collection from the 'config.yaml' file.

var CURCopyDIRF STCopyDIRF

CURCopyDIRF is to store copydir_frequently automated backup.

type STCopyMD

type STCopyMD struct {
	// contains filtered or unexported fields
}

STCopyMD is the copymd struct for data collection from the 'config.yaml' file.

var CURCopyMD STCopyMD

CURCopyMD is to store copymd automated backup.

type STCopyMDF

type STCopyMDF struct {
	// contains filtered or unexported fields
}

STCopyMDF is the copymd struct for data collection from the 'config.yaml' file.

var CURCopyMDF STCopyMDF

CURCopyMDF is to store copymd_frequently automated backup.

Jump to

Keyboard shortcuts

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