Add a vdn-rsync command
This commit is contained in:
26
README.md
26
README.md
@@ -24,3 +24,29 @@ Copy the `vdn-completion.bash` file in `/usr/local/share/bash-completion/complet
|
||||
cp completion/vdn-completion.bash /usr/local/share/bash-completion/completions/vdn
|
||||
grep 'complete -F \w* [a-z-]*' -- completion/vdn-completion.bash | awk '{ print "/usr/local/share/bash-completion/completions/"$NF }' | xargs -I {} ln -s /usr/local/share/bash-completion/completions/vdn {}
|
||||
```
|
||||
|
||||
## `vdn-rsync`
|
||||
|
||||
Copy files between the host and the guest system using *rsync*.
|
||||
|
||||
### With a script
|
||||
|
||||
Use the `bin/vdn-rsync` script to have a nice interface with *rsync*.
|
||||
|
||||
```bash
|
||||
vdn-rsync -av src root@bigboss:
|
||||
```
|
||||
|
||||
Add it to your path:
|
||||
|
||||
```bash
|
||||
PATH="$PATH:~/path/to/vdn-tools/bin/"
|
||||
```
|
||||
|
||||
### Without a script
|
||||
|
||||
Specify the `vdn-ssh` command with `rsync`.
|
||||
|
||||
```bash
|
||||
rsync -av src -e vdn-ssh root@bigboss:
|
||||
```
|
||||
|
Reference in New Issue
Block a user