Links

How Bqckup work ?

Description

The process of backup is a crucial aspect of maintaining the integrity and security of important data. It allows organizations and individuals to create copies of their important files, databases, and other information, and to store them in a separate location. This way, if the original data is lost, damaged, or compromised, the backup can be used to restore it
The backup process works really simple by using YML as the configuration format. This format provides a clear and organized way to specify the details of the backup process, such as the files and databases that need to be backed up, the cloud storage location where the backups will be stored, and any additional options that may be needed.
An example of a YML configuration file for a backup process can be seen below:
example1.com.yml
1
bqckup:
2
name: example1.com
3
path:
4
- /etc/bqckup
5
database:
6
type: 'mysql'
7
host: 'localhost'
8
port: 3306
9
username: 'myusername'
10
password: 'mypassword'
11
name: 'mydatabase'
12
options:
13
storage: mystorage
14
interval: daily
15
retention: 7
16
save_locally: no
mystorage.yml
s3:
mystorage:
bucket: thisnugroho
access_key_id: 8bc2ce31a67416bc9a60abf126688319
secret_access_key: bbd2ea387bb08c3adac2b60899f7232f2c2d803eac0a33f6c39b7a35760420e4
region: auto
endpoint: https://4fe082a30832ef4bbdb0bb3a0c74123f.r2.cloudflarestorage.com
primary: yes

Preview

Conclusion

The focus is on the overall concept of creating copies of important files, databases, and other information and storing them in a separate location, as well as the use of a configuration file in the format of YML to specify the details of the backup process and the storage of the results of the backup process in SQLite.