Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danhab99 committed Aug 12, 2023
1 parent 9c1cb4c commit d263e45
Showing 1 changed file with 71 additions and 2 deletions.
73 changes: 71 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,71 @@
# backup
Go utility for creating backups of large files to s3 using gpg encryption
# Backup Brute

Go utility for creating backups of large segments of your operating system to s3 using [AGE](https://github.com/FiloSottile/age) encryption.

## Usage

```
Usage of backup:
-backup
Do a full backup
-config string
config file locaiton path
-restore
Do full restore
-size
Get size of backup on disk
```

## `backup.yaml`

Backup Brute will generate encryption keys and store them in your `backup.yaml`. Your `backup.yaml` contains all the information you need to restore your system, please make sure to keep it a secret.

`backup.yaml` locaiton priority:

- `--config` file arg
- `$(PWD)/backup.yaml`
- `/etc/backup.yaml`
- `$HOME/backup.yaml`
- `$HOME/.config/backup.yaml`

```yaml
s3:
access: [SET YOUR S3 ACCESS KEY HERE]
secret: [SET YOUR S3 SECRET KEY HERE]
region: us-east-1
endpoint: sjc1.vultrobjects.com
bucket: laptop
age:
private: [GENERATED WHEN YOU DO YOUR FIRST BACKUP]
public: [GENERATED WHEN YOU DO YOUR FIRST BACKUP]

chunkSize: 10000000 # Size in bytes of the chunks that get uploaded to s3

includeDirs:
- /home
- /etc
- /usr
- /srv
- /opt

excludePatterns: # Takes gitignore styled glob patterns
- node_modules
- '*cache*'
- '*Cache*'
- .local
- .var
- .npm
- .go/src
- .go/pkg'
- .wine
- .next
- .nuget
- /etc/pacman.d/gnupg/
- /etc/zsh
- /etc/subgid
- /etc/subuid
- /etc/xdg/pacaur/config
- tmp
- temp
- Temp
```

0 comments on commit d263e45

Please sign in to comment.