Visual Arts Press Blog

The all knowing, ever present VAP knowledge base

Archive for November, 2012

If you totally bork the git repo…

without comments

# delete entire directory and recreate git repo
> rm -r svamaps
> git init
> git remote add unfuddle
> git config remote.unfuddle.push refs/heads/master:refs/heads/master
> git clone

# for some reason, the directory comes down as ‘sva’ but it needs to be ‘svamaps’ on beta and production
> mv sva svamaps

# create and connect local branches to remotes
> git checkout --track -b develop_prime remotes/origin/develop_prime
> git checkout --track -b master_prime remotes/origin/master_prime

# get rid of default master branch; not used
> git branch -D master

# create cache and log dirs
> cd svamaps
> mkdir cache
> mkdir log
> chmod 777 cache
> chmod 777 log

# upload files not in the repo
– web/frontend_dev.php (you may have to alter these to add your IP to the list of allowed IPs)
– web/cms_dev.php
– config/databases.yml (copy from beta/production)

# i think that’s it…


2/27/13 : UPDATE : according to (new?) unfuddle requirements, all push/pull requests require unfuddle u/p authentication.  To get around this, create ~/.netrc and add:

login <unfuddle username>
password <unfuddle password>

Note: you’ll have to do this on local, beta and production.


3/5/15: UPDATE: to delete branches in the repo:

> git push origin :master_old

Written by ecorriel

November 30th, 2012 at 12:00 am

Posted in admin,web

Configuring rotating daily MySQL backups

without comments

  1. Download the AutoMySQLBackup shell script
  2. sudo mkdir /etc/automysqlbackup
  3. copy and rename the conf file: /etc/automysqlbackup/myserver.conf (rename the default automysqlbackup.conf )
  4. tweak conf file as desired
  5. add to cron: 0 3 * * * /usr/local/bin/automysqlbackup /etc/automysqlbackup/myserver.conf
On the VAP server, backup files are stored on the volume VAPBackup at /Backups/MySQL
On the GDAD server, backup files are stored on the volume GDADBackup at Backups/MySQL


Written by ecorriel

November 27th, 2012 at 9:58 pm

Posted in admin,web