Skip to content

wojodesign/git-site-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

  #######################################################
  # git-sitebackup v0.2
  #######################################################
 
  # Usage: backup.sh webrootdir dbname dbuser dbpass 
  # 
  # Full backup of website files, tool scripts and database content.
  #
  # A number of variables defining file location and database connection
  # information are sent as arguments
  #
  # Files are copied to a local git repository and pushed up to master repo.
  # All files are copied. 
  #
  # Useful to setup cron to run daily and do automatic backups to master repo.

  # Usage:
  # Backup files only locally:

  > backup /path/to/dir

  # Backup files locally and to remote origin

  > backup /path/to/dir branch-name

  # backup files and database locally

  > backup /path/to/dir db-name db-user db-password

  # backup files and database locally and to remote

  > backup /path/to/dir db-name db-user db-password branch-name


	

About

Quick and dirty backup script for website files and db using Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages