Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfiosalanitri/backup-website-database
Create a tar archive of a source directory and a database dump file.
https://github.com/alfiosalanitri/backup-website-database
backup bash tar
Last synced: about 1 month ago
JSON representation
Create a tar archive of a source directory and a database dump file.
- Host: GitHub
- URL: https://github.com/alfiosalanitri/backup-website-database
- Owner: alfiosalanitri
- License: mit
- Created: 2021-10-08T17:52:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T10:28:38.000Z (about 1 year ago)
- Last Synced: 2023-12-04T11:25:07.813Z (about 1 year ago)
- Topics: backup, bash, tar
- Language: Shell
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NAME
backup-website-database - create a tar archive with database dump and website files# DESCRIPTION
This script dump the database and create a tar archive from source into destination with database e files.
To exclude files or directory: create an .excluded file with files and directories list (one for line) into backup directory destination.# INSTALLATION
- `sudo chown -R root: /path/to/backups/example.com` (optional to secure database and user password)
- `sudo chmod 600 /path/to/backups/example.com/.backup-config` (optional to secure database and user password)
- edit config parameters
- `sudo chmod 754 /path/to/backup-website-database`# USAGE
- `sudo ./backup-website-database /path/to/example.com/.backup-config` (type sudo only if the backup config file is protected, see installation line)
# AUTHOR:
backup-website-database is written by Alfio Salanitri www.alfiosalanitri.it and are licensed under the MIT License.