Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/acoshift/bakap

Auto upload files to google cloud storage
https://github.com/acoshift/bakap

Last synced: about 1 month ago
JSON representation

Auto upload files to google cloud storage

Awesome Lists containing this project

README

        

# bakap

Backup files to google cloud storage

## Usage

```go
package main

import (
"time"

"github.com/acoshift/bakap"
)

func main() {
bakap.Start(bakap.Config{
Interval: time.Hour * 24,
Files: []bakap.File{
// upload from "appendonly.aof" to "[Time] redis-6379.aof"
bakap.File{Src: "/var/lib/redis/6379/appendonly.aof", Dest: "redis-6379.aof"},
},
Bucket: "BUCKET-NAME",
Account: "[email protected]",
PrivateKey: []byte(`PRIVATE KEY for [email protected]`),
})
}
```