added whole content

This commit is contained in:
Fedor Katurov 2022-11-03 10:38:11 +06:00
parent 1b5df685cb
commit 8b25e0631a
70 changed files with 5962 additions and 19 deletions

View file

@ -0,0 +1,16 @@
Downloads file from #SSH with rsync and puts it in current folder.
```bash
#!/bin/bash
PORT=22
USER=user
HOST=example.com
REMOTE_PATH=/tmp
REMOTE_FILE=sample.text
DEST_PATH=./
rsync -a -e "ssh -p $PORT" -P -v \
"$USER@$HOST:$REMOTE_PATH/$REMOTE_FILE" \
"$DEST_PATH"
```