summaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
Commit message (Collapse)AuthorAgeFilesLines
* 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