Task #2348 ยป downloadBugzillaDump.sh
1 |
#!/bin/bash
|
---|---|
2 |
date
|
3 |
echo "*** COPYING BUGZILLA_DUMP.JSON WITHIN THE REMOTE MACHINE" |
4 |
ssh xisco@vm174.documentfoundation.org "cp /home/esc-mentoring/esc/dump/bugzilla_dump.json /home/xisco/"
|
5 |
echo "*** COMPRESSING BUGZILLA_DUMP.JSON IN THE REMOTE MACHINE" |
6 |
ssh xisco@vm174.documentfoundation.org "tar -czf bugzilla_dump.tgz bugzilla_dump.json"
|
7 |
echo "*** REMOVING BUGZILLA_DUMP.JSON IN THE REMOTE MACHINE" |
8 |
ssh xisco@vm174.documentfoundation.org "rm /home/xisco/bugzilla_dump.json"
|
9 |
echo "*** COPYING BUGZILLA_DUMP.TGZ TO THE LOCAL MACHINE" |
10 |
scp xisco@vm174.documentfoundation.org:/home/xisco/bugzilla_dump.tgz .
|
11 |
echo "*** UNCOMPRESSING BUGZILLA_DUMP.TGZ IN THE LOCAL MACHINE" |
12 |
tar -xvzf bugzilla_dump.tgz -C dump/ |
13 |
echo "*** REMOVING BUGZILLA_DUMP.TGZ IN THE LOCAL MACHINE" |
14 |
rm bugzilla_dump.tgz
|