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