diff options
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 |