#!/bin/bash
date
echo "*** COPYING BUGZILLA_DUMP.JSON WITHIN THE REMOTE MACHINE"
ssh xisco@vm174.documentfoundation.org "cp /home/esc-mentoring/esc/dump/bugzilla_dump.json /home/xisco/"
echo "*** COMPRESSING BUGZILLA_DUMP.JSON IN THE REMOTE MACHINE"
ssh xisco@vm174.documentfoundation.org "tar -czf bugzilla_dump.tgz bugzilla_dump.json"
echo "*** REMOVING BUGZILLA_DUMP.JSON IN THE REMOTE MACHINE"
ssh xisco@vm174.documentfoundation.org "rm /home/xisco/bugzilla_dump.json"
echo "*** COPYING BUGZILLA_DUMP.TGZ TO THE LOCAL MACHINE"
scp xisco@vm174.documentfoundation.org:/home/xisco/bugzilla_dump.tgz .
echo "*** UNCOMPRESSING BUGZILLA_DUMP.TGZ IN THE LOCAL MACHINE"
tar -xvzf bugzilla_dump.tgz -C dump/
echo "*** REMOVING BUGZILLA_DUMP.TGZ IN THE LOCAL MACHINE"
rm bugzilla_dump.tgz
