Files
mkdocs/docs/Synology/scripts.md
2022-03-04 17:56:50 +01:00

27 lines
602 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 par `curl`.
```bash
curl -L -O https://github.com/go-gitea/gitea/releases/download/v1.11.4/gitea-1.11.4-linux-amd64
```