aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-31 19:48:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-31 19:48:02 -0300
commit4b1598690c8859acbe6e2779496f05020921c9ae (patch)
treec9526e4f74abcb32d46e0de3a7007c09afe2d512
parentd6ed8f17ce9f5ba0954b46e63c03fd3667b03b47 (diff)
downloadhydra-4b1598690c8859acbe6e2779496f05020921c9ae.tar.gz
hydra-4b1598690c8859acbe6e2779496f05020921c9ae.tar.bz2
Adds .sync-tpc-ignore support at sync-tpc
-rw-r--r--TODO.md4
-rwxr-xr-xshare/hydractl/sync-tpc2
2 files changed, 2 insertions, 4 deletions
diff --git a/TODO.md b/TODO.md
index 919d872..627996e 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,6 +1,4 @@
TODO
====
-* hydractl
- * sync-tpc: way to ignore /var/cache/qemu and other files from syncing,
- perhaps a .sync-tpc-ignore at the destination.
+Nothing here? :P
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index 971ab53..a24f00b 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -72,7 +72,7 @@ fi
#$SUDO $RSYNC /var/cache/vagrant/ $DEST/var/cache/vagrant/
# Sync qemu guest images
-if [ -d "/var/cache/qemu" ]; then
+if [ -d "/var/cache/qemu" ] && [ ! -e "$DEST/var/cache/qemu/.sync-tpc-ignore" ]; then
hydractl sync-guestfs /var/cache/qemu $DEST/var/cache/qemu
fi