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 ¶
var BKMD []string
BKMD array of strings for copymd collections.
var BKMDF []string
BKMDF array of strings for copymd collections.
var BKSD []string
BKSD array of strings for copydir collections.
var BKSF []string
BKSF array of strings for copydir collections.
var DiskSN string
DiskSN is to store the user's HD Serial No at first runtime.
var IgnoreFT []string
IgnoreFT is a []strings type that collects the list of files to be ignored during the backup operation.
var IgnoreFileTypes interface{}
IgnoreFileTypes collects the list of files to be ignored during the backup operation.
var IsAutoBK bool = false
IsAutoBK default to 'false'
var IsBKCompressed bool = false
IsBKCompressed common automated backup variables
var IsBKItemsFound bool = false
IsBKItemsFound is to check if any backup items entered by the user from the 'config.yaml' file.
var IsLicenseKeyValid bool = true // Set license key valid
IsLicenseKeyValid default to 'true'
var IsLogCopiedFile bool = true
IsLogCopiedFile default to 'true'
var IsPasswordEntered bool = false
IsPasswordEntered default to 'false'
var IsUserNameEntered bool = false
IsUserNameEntered default to 'false'
var Logger *zap.Logger
Logger type is the *zap.Logger initialization
var MDays int = 0
MDays is the common variables to store number of days param to execute the copymd command.
var MapCopyDIRD = make(map[int]STCopyDIRD)
MapCopyDIRD is to store copydir_daily automated backup.
var MapCopyDIRF = make(map[int]STCopyDIRF)
MapCopyDIRF is to store copydir_frequently automated backup.
var MapCopyMD = make(map[int]STCopyMD)
MapCopyMD is to store copymd automated backup.
var MapCopyMDF = make(map[int]STCopyMDF)
MapCopyMDF is to store copymd_frequently automated backup.
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.
var MaxLogFileSizeInMB int = 100 // mb
MaxLogFileSizeInMB gets the max log file size value in megabytes.
var NumFilesCopied int = 0
NumFilesCopied counts the number of files copied.
var NumFoldersCopied int = 0
NumFoldersCopied counts the number of folders copied.
var Sugar *zap.SugaredLogger
Sugar type is the *zap.SugaredLogger initialization
Functions ¶
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.