Added script to get database dump and screenshot files from old
debshots1 live server
This commit is contained in:
parent
bf166a75c8
commit
7ed2ae0ba0
1 changed files with 12 additions and 0 deletions
12
bin/get-data-from-old-live-server.sh
Executable file
12
bin/get-data-from-old-live-server.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh -xe
|
||||||
|
|
||||||
|
rsync -v root@screenshots.debian.net:/home/debshots/debshots-screenshots.tar /tmp/
|
||||||
|
rsync -v root@screenshots.debian.net:/home/debshots/debshots.sql /tmp
|
||||||
|
|
||||||
|
set +e
|
||||||
|
psql postgres debshots -c 'drop database debshots'
|
||||||
|
set -e
|
||||||
|
|
||||||
|
psql postgres debshots -c 'create database debshots owner debshots'
|
||||||
|
psql debshots debshots < /tmp/debshots.sql
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue