Add Transfer directories or binary files section

Caffeine Fueled 2025-10-26 10:18:18 +00:00
parent d6b0403e2a
commit 63e8f948a0

@ -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._