From 24f2119331086492f4398b61adfdbb462d68766e Mon Sep 17 00:00:00 2001 From: Urko Date: Mon, 10 Jul 2023 12:34:45 +0200 Subject: [PATCH] feat add readme --- Readme.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..4322705 --- /dev/null +++ b/Readme.md @@ -0,0 +1,56 @@ +# Backblaze Backup Tool + +This is a tool to backup files and directories to Backblaze. + +## Prerequisites + +- Go 1.16 or higher +- Backblaze account with a bucket created +- Environment variables `BB_ID` and `BB_KEY` set with your Backblaze account ID and application key respectively + +## Building the Application + +You can build the application using the provided Makefile. + +### On Linux: + +```bash +make rebuild +``` + +### On Windows: + +You will need to have make installed. If you don't have it, you can install it through Chocolatey: +```bash +choco install make +``` + +Then you can run the same command as on Linux: +```bash +make rebuild +``` + +This will create a binary in the bin directory. + + +## Running the Application + +You can run the application directly from the command line. Here's how to do it: +```bash +./bin/backblaze-backup --bucket "your-bucket-name" --dir "/path/to/directory" +``` + +Or if you want to upload a single file: +```bash +./bin/backblaze-backup --bucket "your-bucket-name" --file "/path/to/file" +``` + +## Flags + + --bucket: The name of your Backblaze bucket + --dir: The absolute path of the directory you want to upload to Backblaze + --file: The absolute path of the file you want to upload to Backblaze + +Note: You must select just one option, dir or file. + +Please replace `"your-bucket-name"`, `"/path/to/directory"`, and `"/path/to/file"` with your actual bucket name and paths.