DevelopmentWorkflow changed

add copy script
This commit is contained in:
Abel Luck 2012-10-19 22:14:19 +00:00
parent 46c25c231b
commit e591998f4a

View File

@ -76,3 +76,18 @@ mkdir -p $BAK
cp -a /usr/bin/qvm-* /usr/bin/qubes-* $BAK/
sudo cp qvm-tools/qvm-* qvm-tools/qubes-* /usr/bin/
```
### Copy from dom0 to an appvm
``` {.wiki}
#/bin/sh
#
# usage ./cp-domain <vm_name> <file_to_copy>
#
domain=$1
file=$2
fname=`basename $file`
qvm-run $domain 'mkdir /home/user/incoming/dom0 -p'
cat $file| qvm-run --pass-io $domain "cat > /home/user/incoming/dom0/$fname"
```