aboutsummaryrefslogtreecommitdiff
path: root/main.go
blob: f70faa40ff9b18948c73641755667c693a11452b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"fmt"
	"os"
)

func main() {

	if len(os.Args) != 3 {
		fmt.Println("usage: dna-backup <source> <dest>")
		os.Exit(1)
	}

	source := os.Args[1]
	dest := os.Args[2]

	os.MkdirAll(dest, 0775)
	Commit(source, dest)
}