Closed cycomachead closed 6 years ago
postgres
: pg_dumpall --clean --if-exists > /2018-09-27.out
cloud
: psql -d snapcloud -t -o projects_to_sync.txt -c "SELECT (id/1000) || '/' || id FROM projects WHERE lastupdated > now() - interval '5 days'"
-- Adjust to 3 days, or simply do > 2018-09-27 00:00:00projects_to_sync.txt
from the main servercloud
:.env
for the proper config:
postgres
psql -f /2018-09-25-test-3-backup.out postgres
hostname = cloud.snap.berkeley.edu
in /etc/amplify-agent/agent.conf
service amplify-agent restart
)Thanks, Michael! Do you think it's ready enough so we can notify users on the TEALS forum and on Piazza about the maintenance this upcoming weekend? If so I'd offer to do that, unless someone else wants to...
@jmoenig Yeah, this I think we should be able to do this. Could you please post the time as 11pm PST 9/28 to 4am PST 9/29? But I expect the actual migration to take only 2 hours.
I think starting a tiny bit earlier will be a little bit easier and better for me, in the event something tricky pops up.
Best of luck in the migration!
When I'm back to work you'll have to walk me through all these changes.
Of course! And thanks. :)
This is a set of notes / issues about the server maintenance on the weekend.