Misc notes
- Create an EBS snapshot of the two EBS volumes on wikispot.org.
- Create an AWS image of the boot EBS snapshot and start an m1.large instance using it. Attach and mount the EBS database volume.
- Create 100GB of swap space.
- Run the export.py script for pages, files, maps.
-
Create an m1.large instance running Ubuntu 12.10 with EBS storage:
-
ec2-run-instances ami-fe002cbb -k ${EC2_KEYPAIR} -t m1.large
-
-
Install according to the INSTALL instructions for dev installs.
-
Make sure and turn off standard_conforming_strings in postgresql.conf
-
-
Run the syc_import process according to the instructions at the top of the file.
-
Fix file errors with fix_null_bytes.py and vim (syntax highlighting off)
-
Delete the "AnonymousUser" account that was pulled in:
-
from django.contrib.auth.models import User
-
u = User.objects.get(username='AnonymousUser')
-
u.userprofile.delete()
-
u.delete()
-
syncdb
-
-
Clear out old thumbnail data (may or may not be an issue):
-
from sorl.thumbnail.models import *
-
KVStore.objects.all().delete()
-
At end:
-
TODO: add this to the import script:
- from django.contrib.auth.models import User
- if User.objects.filter(email=''):
- u = User.objects.get(email='')
- u.email = '[email protected]'
- u.save()
- # kill the stupid account names people may have made:
- if User.objects.filter(username='AnonymousUser'):
- u = User.objects.get(username='AnonymousUser')
- u.username = 'AnonymousUser2'
- u.save()
- Rebuild search index - localwiki-manage rebuild_index