Fucking fabric

master
Nick Sergeant 2012-04-26 22:49:43 -04:00
parent 04542e2ce7
commit fc22ca305f
2 changed files with 20 additions and 0 deletions

19
fabfile.py vendored
View File

@ -1,5 +1,10 @@
from fabric.api import cd, local, env, run, sudo
from boto.s3.connection import S3Connection
from boto.s3.key import Key
import datetime
env.hosts = ['nick@snipt.net:39039']
env.site_path = '/var/www/snipt'
@ -29,3 +34,17 @@ def re():
with cd(env.site_path):
run('/var/www/snipt/gk')
run('/var/www/snipt/gs')
def db_backup():
filename = datetime.datetime.now().strftime('%m-%d-%y')
print filename
#run('pg_dump snipt > snipt.pgdump')
#conn = S3Connection('AKIAJJRRQPTSPKB7GYOA', 'DIYz2g5vPjcWE4/YI7wEuUVAskwJxs2llFvGyI1a')
#snipt_bucket = conn.get_bucket('snipt')
#k = Key(snipt_bucket)
#k.set_contents_from_filename('snipt.pgdump')

View File

@ -1,4 +1,5 @@
BeautifulSoup
boto
biplist
Django
django-annoying