Revert file on error

This commit is contained in:
2019-09-24 22:08:05 -04:00
parent 0af56e8306
commit ffd540e157
3 changed files with 26 additions and 4 deletions

2
cli.go
View File

@@ -8,6 +8,7 @@ import (
"os"
"os/signal"
"regexp"
"strings"
"sync"
"syscall"
"time"
@@ -89,6 +90,7 @@ func main() {
beemWg: &sync.WaitGroup{},
tarWg: &sync.WaitGroup{},
tarMaxCount: tarMaxCount,
failDir: strings.TrimRight(watchDir, "/") + ".fail",
}
if excludePattern != "" {