Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (28 sloc) 1.32 kb
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 36 37 38 39 40
#/usr/bin/ruby
#This file is a settings file for backups
#PLease note that the backup files scripts should all be located in the same directory
#This file MUST be located in the same directory as the scripts

#This is the directory that you want your backups to be placed in
#Sub directories for the date will be created within this directory
BACKUP_LOCATION = "/Users/gdraper/backups"

#Unless you rename these files, you should not have to change these variables
SQL_SCRIPT = 'backup_all_sql_dbs.rb'
FOLDER_SCRIPT = 'backup_files.rb'

#Text file for the list of folders you want to backup
#The default is 'folderlist.txt' located in the same directory as your backup scripts
#but this could be placed anywhere you choose
FOLDER_LIST = 'folderlist.txt'


#Change this to 0 if you do not want to backup MySQL
BACKUP_MYSQL = 1


#Change this to zero if you do not want to tar the backup file after its in a folder
CREATE_TAR_FILE = 1
#DB USER NAME AND PASSWORD
#In order for the db backup to work properly, this must be a user that can access all the dbs
USERNAME = ''
PASSWORD = ''




#DO NOT CHANGE ANYTHING PAST THIS LINE!!!

#Name the folder!
NOW = Time.now.strftime("%m_%d_%Y")
NOW_WITH_TIME = Time.now.strftime("%m_%d_%Y_%H_%M_%S")
FOLDERNAME = "backup_#{NOW}"
FULL_FOLDER_NAME = "#{BACKUP_LOCATION}/#{FOLDERNAME}"
Something went wrong with that request. Please try again.