Skip to content

Commit

Permalink
change backup method, update zip bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed Jan 24, 2014
1 parent b043c4b commit d902f9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ func DoBackup(app *GoInk.App, withData bool) (string, error) {
return "", e
}
root, _ := os.Getwd()
z.AddDir("static", path.Join(root, "static"))
z.AddDir("static/css", path.Join(root, "static", "css"))
z.AddDir("static/img", path.Join(root, "static", "img"))
z.AddDir("static/js", path.Join(root, "static", "js"))
z.AddDir("static/lib", path.Join(root, "static", "lib"))
z.AddFile("static/favicon.ico", path.Join(root, "static", "favicon.ico"))
if withData {
z.AddDir("data", path.Join(root, "data"))
z.AddDir("static/upload", path.Join(root, "static", "upload"))
}
z.AddDir(app.View().Dir, path.Join(root, app.View().Dir))
e = z.Flush()
Expand Down
2 changes: 1 addition & 1 deletion app/cmd/zip.go

Large diffs are not rendered by default.

0 comments on commit d902f9f

Please sign in to comment.