Simple File Backup Tool
- Go >= 1.17
- How to use the program via scan
go run ./cmd -scan
- How to run the program
go run ./cmd -path=<Path>
- path
Flag: -path
Type: string
- How to import database
package main
import (
"errors"
snakesync "github.com/sadihakan/snake-sync"
)
func main() {
// Make callback
cb := new(NotifyCallback)
// Inıtılıze snake sync
ss := snakesync.New()
//Create Watcher
ss.NewWatcher()
//Set Callback
ss.SetNotifyCallback(cb)
//Add file path
ss.AddFilePath(path)
if ss.Error != nil {
panic(ss.Error)
}
go ss.Chase()
<-ss.Chan()
}
Contributors names and contact info
ex. @sadihakan
ex. @akdilsiz
This project is licensed under the sadihakan License - see the LICENSE.md file for details