summaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
Commit message (Collapse)AuthorAgeFilesLines
* Move database settings from models to setting (#7806)Lunny Xiao2019-08-241-3/+2
| | | | | | | | | | | | | | | | | | * move database settings from models to setting * update docs * fix checkout pr * fix tests * fix lint * remove unsupported tidb options * correct wrong variable name * remove tidb totally
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-2/+2
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Change verbose flag in dump command to avoid colliding with global version ↵John Olheiser2019-05-011-1/+1
| | | | | | | | | flag (#6822) * Change verbose flag to avoid colliding with version flag * Update docs Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)zeripath2019-04-291-8/+0
|
* Include custom configuration file in dump (#6516)mrsdizzie2019-04-051-0/+8
| | | | | | | When running the dump command, include the specific configuration file provided as part of the backup. Currently we only zip up custom/ and this misses the config file if it is somewhere else, like /etc/gitea/app.ini Fixes #6034
* support custom file name in `gitea dump` command (#6474)glaszig2019-04-011-1/+6
| | | | | | | * support custom file name in `gitea dump` command * simpler approach to handle default dump file name in `gitea dump` command
* Add flag to skip repository dumping (#5695)Zsombor2019-01-131-14/+22
|
* General refactor of the cmd package (#3328)Morgan Bazalgette2018-01-121-8/+8
| | | | | | | | * General refactor of the cmd package * Address breakage in runCreateUser * Place "common" functions into cmd.go
* Set session and indexers' data files rel to AppDataPath (#2192)Guillaume Dube2017-11-031-4/+1
| | | | | | | | | | * Set session and indexers' data files rel to AppDataPath The setting AppDataPath is now relative to the working directory. The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions. The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves. * fix bug
* Set TMPDIR enviroment variable for dump command (#1915)Jonas Östanbäck2017-06-081-0/+5
|
* refactor: show command help message. (#1486)Bo-Yi Wu2017-04-121-0/+1
|
* bug fix for dump when data directoryis not exist (#1025)Lunny Xiao2017-03-021-10/+13
|
* remove unused fixme on dump command (#1065)Lunny Xiao2017-02-261-1/+1
|
* Cleanup log messagingGabriel Jackson2017-02-021-11/+11
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Update xorm and fix dump command (#692)Lunny Xiao2017-01-231-1/+5
| | | | | | | | | | | | * update xorm and fix dump * catch database init error * still use dumpTables * fix dump bool type * update vendor.json
* Add data directory excluding sessions to dump (#587)Manuel Kuhlmann2017-01-121-0/+53
|
* Update xorm and dependencies vendor for feature to dump to other database (#565)Lunny Xiao2017-01-031-2/+12
| | | | | | * update xorm and dependencies vendor for feature to dump to other database * fix golint
* Remove remaining Gogs reference on locales and cmd (#430)Joubert RedRat2016-12-211-10/+11
|
* Catch os... errorsBwko2016-12-021-3/+5
|
* 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