Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/acoshift/bakap
- Owner: acoshift
- Created: 2016-06-26T11:34:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-29T08:52:12.000Z (over 8 years ago)
- Last Synced: 2024-05-01T13:24:29.850Z (8 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bakap
Backup files to google cloud storage
## Usage
```go
package mainimport (
"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]`),
})
}
```