diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-03 14:01:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-03 14:01:29 -0300 |
commit | b4402132dca803233f0b046221e0d39f2716af6e (patch) | |
tree | 9245246fa77e7d71f32897860b598be25e55adec /share/hydractl/sync-tpc | |
parent | 4d5992e603df88fc4a2d706ef1d0be8de157a2fa (diff) | |
download | hydra-b4402132dca803233f0b046221e0d39f2716af6e.tar.gz hydra-b4402132dca803233f0b046221e0d39f2716af6e.tar.bz2 |
Adds hydractl sync-guestfs
Diffstat (limited to 'share/hydractl/sync-tpc')
-rwxr-xr-x | share/hydractl/sync-tpc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc index 6c1b5d2..5b990bb 100755 --- a/share/hydractl/sync-tpc +++ b/share/hydractl/sync-tpc @@ -34,9 +34,6 @@ done # Sync files $SUDO $RSYNC /home/ $DEST/home/ -$SUDO $RSYNC /var/cache/virtualbox/ $DEST/var/cache/virtualbox/ -$SUDO $RSYNC /var/cache/qemu/ $DEST/var/cache/qemu/ -$SUDO $RSYNC /var/cache/vagrant/ $DEST/var/cache/vagrant/ $SUDO $RSYNC /var/cache/pbuilder/ $DEST/var/cache/pbuilder/ $SUDO $RSYNC /var/chroot/ $DEST/var/chroot/ $SUDO $RSYNC /var/lib/wicd/ $DEST/var/lib/wicd/ @@ -68,5 +65,15 @@ if [ ! -d "$MEDIA" ]; then $SUDO chown $OWNER.$GROUP $MEDIA fi +# Guest images were previously synced using rsync +#$SUDO $RSYNC /var/cache/virtualbox/ $DEST/var/cache/virtualbox/ +#$SUDO $RSYNC /var/cache/qemu/ $DEST/var/cache/qemu/ +#$SUDO $RSYNC /var/cache/vagrant/ $DEST/var/cache/vagrant/ + +# Sync qemu guest images +if [ -d "/var/cache/qemu" ]; then + hydractl sync-guestfs /var/cache/qemu $DEST/var/cache/qemu +fi + # Sync media remotes hydractl sync-media-remotes $MEDIA |