From 63e8f948a0ada02d81876789cd14340275c2a9b4 Mon Sep 17 00:00:00 2001 From: Caffeine Fueled Date: Sun, 26 Oct 2025 10:18:18 +0000 Subject: [PATCH] Add Transfer directories or binary files section --- Usage.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Usage.md b/Usage.md index 196e275..8538872 100644 --- a/Usage.md +++ b/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._