-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
35 lines (23 loc) · 941 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#######################################################
# 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