diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-05-12 13:59:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-05-12 13:59:24 -0300 |
commit | abebbffa068018e9c849a26bab1eb309aaf07d23 (patch) | |
tree | ff79d993340069fe2cd62fe30a85cb6bdf92aaaa | |
parent | f1cb2816de46aa2d400cad53172b063032020684 (diff) | |
download | kvmx-abebbffa068018e9c849a26bab1eb309aaf07d23.tar.gz kvmx-abebbffa068018e9c849a26bab1eb309aaf07d23.tar.bz2 |
Try rsync on kvmx_clone
-rwxr-xr-x | kvmx | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -717,7 +717,14 @@ function kvmx_clone { rmdir $FOLDER # Copy image and configuration - cp -r `dirname $image` $FOLDER/ + echo "Copying basebox..." + if which rsync &> /dev/null; then + rsync -ah --progress `dirname $image`/ $FOLDER/ + else + cp -r `dirname $image` $FOLDER/ + fi + + # Create config entry ( cd $GLOBAL_USER_CONFIG_FOLDER && ln -s $FOLDER/kvmxfile $DEST ) # Update config file |