diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-31 19:48:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-31 19:48:02 -0300 |
commit | 4b1598690c8859acbe6e2779496f05020921c9ae (patch) | |
tree | c9526e4f74abcb32d46e0de3a7007c09afe2d512 | |
parent | d6ed8f17ce9f5ba0954b46e63c03fd3667b03b47 (diff) | |
download | hydra-4b1598690c8859acbe6e2779496f05020921c9ae.tar.gz hydra-4b1598690c8859acbe6e2779496f05020921c9ae.tar.bz2 |
Adds .sync-tpc-ignore support at sync-tpc
-rw-r--r-- | TODO.md | 4 | ||||
-rwxr-xr-x | share/hydractl/sync-tpc | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -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 |