This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
ssh cz.pycon.org 'pg_dump -h store4.rosti.cz -U czpyconorg_199402 czpyconorg_199402 > dump.sql' | ||
#!/bin/bash | ||
|
||
ssh cz.pycon.org 'pg_dump -h store4.rosti.cz -U pyvec_os1471 pyvec_os1471 > dump.sql' | ||
scp cz.pycon.org:dump.sql /tmp/czpyconorgdump.sql | ||
sed -i 's/czpyconorg_199402/pycon_beta_217402/g' /tmp/czpyconorgdump.sql | ||
sed -i 's/pyvec_os1471/pyvec_os1472/g' /tmp/czpyconorgdump.sql | ||
scp /tmp/czpyconorgdump.sql betapycon.org:dump.sql | ||
ssh betapycon.org "echo 'drop owned by pycon_beta_217402;' | psql -h store4.rosti.cz -U pycon_beta_217402 -d pycon_beta_217402" | ||
ssh betapycon.org "psql -h store4.rosti.cz -U pycon_beta_217402 -d pycon_beta_217402 < dump.sql" | ||
ssh betapycon.org "echo 'drop owned by pyvec_os1472;' | psql -h store4.rosti.cz -U pyvec_os1472 -d pyvec_os1472" | ||
ssh betapycon.org "psql -h store4.rosti.cz -U pyvec_os1472 -d pyvec_os1472 < dump.sql" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
ssh cz.pycon.org 'pg_dump -h store4.rosti.cz -U czpyconorg_199402 czpyconorg_199402 > dump.sql' | ||
#!/bin/bash | ||
|
||
ssh cz.pycon.org 'pg_dump -h store4.rosti.cz -U pyvec_os1471 pyvec_os1471 > dump.sql' | ||
scp cz.pycon.org:dump.sql /tmp/czpyconorgdump.sql | ||
sed -i 's/czpyconorg_199402/pycon2018/g' /tmp/czpyconorgdump.sql | ||
echo 'drop owned by pycon2018;' | psql -h127.0.0.1 -U pycon2018 -d pycon2018 | ||
psql -h 127.0.0.1 -U pycon2018 -d pycon2018 < /tmp/czpyconorgdump.sql | ||
sed -i 's/pyvec_os1471/pycon2019/g' /tmp/czpyconorgdump.sql | ||
echo 'drop owned by pycon2019;' | psql -h127.0.0.1 -U pycon2019 -d pycon2019 | ||
psql -h 127.0.0.1 -U pycon2019 -d pycon2019 < /tmp/czpyconorgdump.sql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#!/bin/bash | ||
scp -C -3 -r 'cz.pycon.org:app/tmp/media/*' 'betapycon.org:app/tmp/media/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#!/bin/bash | ||
scp -C -3 -r 'cz.pycon.org:app/tmp/media/*' ./tmp/media/ |