From f21aa6cf2c3f03936d1c4188f914736b0a3a23b7 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Wed, 13 Jul 2016 23:13:58 +0200 Subject: [PATCH] a script to automate a little more. --- runvmdiff.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 runvmdiff.sh diff --git a/runvmdiff.sh b/runvmdiff.sh new file mode 100755 index 0000000..986e8d1 --- /dev/null +++ b/runvmdiff.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# +# Copyright 2015-2016 by Jan Vales (Someone ) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + + +mount /dev/sdc1 /vmdiff/untracked/root +cd /vmdiff/ +./vmsnap.sh ch +umount /vmdiff/untracked/root +cd /vmdiff/untracked/ +git reset --hard +git clean -xfd +git lg +cd .. + +./vmdiff.sh HEAD^ HEAD +mv /vmdiff/untracked/vmdiff.tar.gz /media/sf_vmshare/ + -- 2.43.0