# HG changeset patch # User Oleksandr Gavenko # Date 1559168455 -10800 # Node ID a6ba7fce5ed970ef8ed2bec7df23a188b798fb0f # Parent 026d8d922e7ca344aad50ff793af065c8e43bb21 Copying files. diff -r 026d8d922e7c -r a6ba7fce5ed9 vagrant.rst --- a/vagrant.rst Thu May 30 01:20:42 2019 +0300 +++ b/vagrant.rst Thu May 30 01:20:55 2019 +0300 @@ -208,6 +208,33 @@ vagrant provision --provision-with root_ssh vagrant provision --provision-with user_ssh,root_ssh +Copying files +============= + +To copy files recursively to running box:: + + vagrant upload $SRC $DST + vagrant upload $SRC $DST $BOXID + +To copy to ``/home/vagrant``:: + + vagrant upload $SRC . + vagrant upload $SRC . $BOXID + +To copy to ``/home/vagrant/$DIR``:: + + vagrant upload $SRC $DIR + vagrant upload $SRC $DIR $BOXID + +https://www.vagrantup.com/docs/cli/upload.html + Uploads files and directories from the host to the guest machine. + +There is 3rd patry option with:: + + vagrant plugin install vagrant-scp + vagrant scp $SRC :$DST + vagrant scp $SRC $BOXID:$DST + Working with Alpine Linux =========================