File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 22
22
- [x] Clean up the menu bar in batch
23
23
- [x] batch hide your groups from yourself
24
24
- [x] Turn emailing back on
25
- - [ ] Backups
26
- - [ ] Integrate with us.pycon.org
25
+ - [x ] Backups
26
+ - [x ] Integrate with us.pycon.org
27
27
- [ ] Email reminders/updates to committee members
28
+ - [ ] Handle withdrawn talks
28
29
- [ ] ~~ Analysis export~~ (Just SQL query it)
29
30
- [ ] ~~ Remove random chat from talks~~ (Leave chat on talks)
30
31
- [ ] ~~ batch group tweaking UI~~ (Do it before import)
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ sudo -u postgres /usr/bin/pg_dump progcom > /opt/progcom-backup/progcom-db-` date -Ihours`
4
+
5
+ /opt/tarsnap/bin/tarsnap -c --keyfile /root/tarsnap.key --cachedir /opt/progcom-backup-cache -f progcom-db-` date +%Y-%m-%d_%H-%M-%S` /opt/progcom-backup && curl https://nosnch.in/0540fdd2ae & > /dev/null
Original file line number Diff line number Diff line change 19
19
- libpq-dev
20
20
- libffi-dev
21
21
- python-psycopg2
22
+ - e2fslibs-dev
22
23
23
24
24
25
# Basic service
58
59
- postgresql_user : name=progcom password=progcom role_attr_flags=NOSUPERUSER
59
60
sudo_user : postgres
60
61
62
+ # Backup (Installed tarsnap by hand with `./configure #--prefix=/opt/tarsnap`)
63
+ - file : path=/opt/progcom-backup state=directory
64
+ - file : path=/opt/progcom-backup-cache state=directory
65
+ - template : src=backup-cron dest=/etc/cron.daily/progcom-backups
66
+ mode=0744
61
67
62
68
handlers :
63
69
- name : restart nginx
Original file line number Diff line number Diff line change @@ -43,11 +43,8 @@ def fetch_talk(id):
43
43
rv = api_call ('/2016/pycon_api/proposals/{}/' .format (id ))['data' ]
44
44
rv ['authors' ] = rv ['speakers' ]
45
45
del rv ['speakers' ]
46
- print rv ['authors' ]
47
46
rv .update (rv ['details' ])
48
47
del rv ['details' ]
49
- rv ['category' ] = 'PLACEHOLDER' #TODO
50
- rv ['additional_requirements' ] = 'PLACEHOLDER' #TODO
51
48
return rv
52
49
53
50
def main ():
You can’t perform that action at this time.
0 commit comments