Skip to content

Create a tar archive of a source directory and a database dump file.

License

Notifications You must be signed in to change notification settings

alfiosalanitri/backup-website-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Create a tar archive of a source directory and a database dump file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages