aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
Commit message (Collapse)AuthorAgeFilesLines
* fix gofmt error.Bo-Yi Wu2016-11-151-1/+1
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Use cli Flags directly and not some helper funcsMatthias Loibl2016-11-091-7/+16
| | | | Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Made linter happy in cmd folderThomas Boerger2016-11-041-0/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* codegangsta/cli => urfave/cli (#3546)Kim "BKC" Carlbäcker2016-08-301-1/+1
|
* Fix #3361: Dumps are created world readable (#3473)Thibault Meyer2016-08-171-0/+4
| | | | | | * Set dump file permission to 0600 * Typo
* gogs dump tempdir flag (#3086)Alex Myasoedov2016-05-231-2/+7
|
* #3045 fix DEPRECATED Action signature erorrUnknwon2016-05-121-6/+8
|
* add name of the dump file in last log messagekakwa2015-11-281-1/+1
|
* Fix dump of log and custom directory in dump cmdkakwa2015-11-281-4/+8
| | | | | | | | Now, the dump cmd uses setting.CustomPath and setting.LogRootPath instead of setting.WorkDir which was kind of broken if the gogs binary was in a different directory than gogs data. Additionally, the backup of setting.CustomPath directory is only done if it exists.
* Using a tmp dir to generate db and repo dumpskakwa2015-11-281-6/+17
| | | | | | | | | | | | | | | Using a tmp dir makes gogs dump more robust to concurrent runs. It also permits an easier cleaning of the tmp files (gogs-db.sql and gog-repo.zip) by just removing the tmp dir. As a side effect, it partially fix bugs on workdir. Previously, 'gogs dump' created the archives in the current directory, and tried to include these archives from the directory where the gogs binary lies. ex: if gogs binary is in /usr/bin/gogs, and gogs dump is run from /tmp/, /tmp/gog-repo.zip is created, but gogs dump tried to include /usr/bin/gogs-repo.zip.
* Adding more error handling in dump cmdkakwa2015-11-281-4/+12
| | | | | | | | | The dump cmd did not check the return value of the z.AddFile or z.AddDir when building the final archive. It caused the dump command to succeed even if an error occurred. The resulted dump archive could be corrupted/empty. (errors could be various: removal by a concurrent process, disk full, bugs in the dump cmd itself)
* fix api brokenUnknwon2015-11-151-2/+2
|
* simplify namesUnknwon2015-09-161-2/+2
|
* cmd: code fix for #905Unknwon2015-02-081-1/+1
| | | | | | | - routers/admin: add rewrite update hook operation - conf/locale: update locale file due to ini behavior changes - cmd/cert_stub.go: remove useless code - cmd/fix.go: no longer need fix command(at least now)
* Add option to provide configuration file on command linePeter Smit2015-02-051-0/+4
|
* Fix #656chai20102014-11-241-1/+1
|
* Page: Compare 2 commitsUnknwon2014-10-101-0/+1
|
* Organization level webhooksUnknwon2014-09-071-3/+5
|
* Fixed #209Unknown2014-05-251-9/+9
|
* Clean api codeUnknown2014-05-051-5/+8
|
* command dumpUnknown2014-05-051-6/+18
|
* Add command dump and move to cmd didUnknown2014-05-011-0/+52