29 lines
606 B
Markdown
29 lines
606 B
Markdown
# Scripts
|
|
|
|
|
|
|
|
#### Copier un fichier sur le NAS
|
|
|
|
```bash
|
|
$ scp -P42666 wsgi.py bruno@192.168.1.7:/var/services/homes/bruno/scripts/
|
|
|
|
$ scp -P42666 httpd_vhost.conf bruno@clicclac.synology.me:/var/services/homes/bruno/
|
|
```
|
|
|
|
#### Réception d'un fichier depuis le NAS
|
|
|
|
```bash
|
|
$ scp -P42666 bruno@clicclac.synology.me:/var/services/homes/bruno/httpd-vhost.conf /Users/bruno/Desktop
|
|
```
|
|
|
|
|
|
|
|
#### wget: not an http or ftp url:
|
|
|
|
Sur le NAS, `wget` ne gère pas les URLs https. Il faut passer `curl`.
|
|
|
|
```bash
|
|
$ curl -L -O https://github.com/go-gitea/gitea/releases/download/v1.11.4/gitea-1.11.4-linux-amd64
|
|
```
|
|
|