Add Transfer directories or binary files section
parent
d6b0403e2a
commit
63e8f948a0
1 changed files with 34 additions and 0 deletions
34
Usage.md
34
Usage.md
|
|
@ -1,3 +1,37 @@
|
|||
## Transfer directories or binary files
|
||||
|
||||
**Unencrypted**:
|
||||
|
||||
**Upload**:
|
||||
```bash
|
||||
tar cvz ./data | base64 | curl -X POST --data-binary @- https://linedump.com
|
||||
```
|
||||
|
||||
**Download**:
|
||||
```bash
|
||||
curl -s https://linedump.com/{paste_id} | base64 -d | tar xz
|
||||
```
|
||||
|
||||
**Encrypted**:
|
||||
|
||||
**Upload**:
|
||||
```bash
|
||||
tar cz ./data \
|
||||
| openssl enc -aes-256-cbc -pbkdf2 -salt -base64 -pass pass:yourkey \
|
||||
| curl -sS -X POST --data-binary @- https://linedump.com
|
||||
```
|
||||
|
||||
**Download**:
|
||||
```bash
|
||||
curl -s https://linedump.com/{paste_id} \
|
||||
| base64 -d \
|
||||
| openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:yourkey \
|
||||
| tar xz
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Encryption with GPG
|
||||
|
||||
_Replace `curl` with any other tool that can send HTTP POST requests. Example on Linux._
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue