Project

General

Profile

Task #2348 ยป downloadBugzillaDump.sh

Xisco Fauli Tarazona, 2017-08-16 12:30

 
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
    (1-1/1)