Skip to content

Go utility for creating backups of large files to s3 using age encryption

License

Notifications You must be signed in to change notification settings

danhab99/backup-brute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup Brute

Go utility for creating backups of large segments of your operating system to s3 using AGE encryption.

Install

Arch/Manjaro: yay -S backup-brute

Go module: go install github.com/danhab99/[email protected]

Usage

Usage of backup-brute:
  -backup
    	Do a full backup
  -config string
    	config file locaiton path
  -ls
    	List archives
  -restore
    	Do full restore
  -rm
    	Remove an archive interactively
  -show-config
    	Print the config data
  -size
    	Get size of backup on disk
  -version
    	Print the version

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
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
    parallel: 20
age:
    private: [GENERATED WHEN YOU DO YOUR FIRST BACKUP]
    public: [GENERATED WHEN YOU DO YOUR FIRST BACKUP]

ram:
    chunkSize: "50MB"

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

About

Go utility for creating backups of large files to s3 using age encryption

Resources

License

Stars

Watchers

Forks

Languages