https://github.com/pkgstore/bash-tools
Bash extension.
https://github.com/pkgstore/bash-tools
bash bash-script bash-scripts linux
Last synced: 3 months ago
JSON representation
Bash extension.
- Host: GitHub
- URL: https://github.com/pkgstore/bash-tools
- Owner: pkgstore
- License: mit
- Created: 2023-07-18T19:55:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-03T04:43:53.000Z (over 1 year ago)
- Last Synced: 2025-03-13T12:34:44.305Z (10 months ago)
- Topics: bash, bash-script, bash-scripts, linux
- Language: Shell
- Homepage: https://ihub.to
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash Tools
## Backup Scripts
Scripts for backup files and MySQL databases.
- [backup.files.sh](backup.files.sh)
- `-d 'DIR_1;DIR_2;DIR_3'`
Directory list.
- [backup.mysql.sh](backup.mysql.sh)
- `-u 'USER'`
MySQL user name.
- `-p 'PASSWORD'`
MySQL user password.
- `-d 'DB_1;DB_2;DB_3'`
MySQL database list.
### Syntax
```sh
./backup.files.sh -d '/home/dir_1;/home/dir_2;/home/dir_3'
```
- Backup directories `dir_1`, `dir_2` and `dir_3`.
```sh
./backup.mysql.sh -u 'db_user' -p 'db_password' -d 'db_name_1;db_name_2;db_name_3'
```
- Backup databases `db_name_1`, `db_name_2` and `db_name_3` with username `db_user` and password `db_password`.