-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |