DB backup implement host and port parameter / backup path fix

This commit is contained in:
2023-02-22 20:05:34 +01:00
parent 472e490ea1
commit f53b1d381d
3 changed files with 13 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ Backify is a shell script that helps you automate the backup process of all kind
- The system must be either a Red Hat-based or an Ubuntu-based distribution.
- mysqldump / pgdump if dumping database on a diferent host
## Configuration 🧙‍♂️
@@ -24,7 +26,7 @@ All configuration options can be found in the `backup.cfg` file. The script has
| Name | Value | Specifics |
| --- | --- | --- |
| enabled | true/false | Disable the main function |
| backup_path | ------> | Set where to save the backup |
| backup_path | ------> | Set where to save the backup, make sure it DOESNT end with backslash |
| www_backup | true/false | Backup of the webroot directory |
| www_dir | ------> | Path to the webroot |
| vhost_backup | true/false | Backup of the vhost configuration |
@@ -43,6 +45,8 @@ All configuration options can be found in the `backup.cfg` file. The script has
| docker_data | true/false | Backup container information |
| db_backup | true/false | Backup database |
| database_type | mysql/postgresql | Database type |
| db_host | ------> | Database host |
| db_port | ------> | Port for DB access |
| db_username | ------> | Username for DB access |
| db_password | ------> | Password for DB access |
| db_name | ------> | Name of database |