32 Commits (7ed00b6e8d571ab8efc99aa69d545cce609dd900)

Author SHA1 Message Date
Lunny Xiao 341b3a0349 bug fix for dump when data directoryis not exist (#1025) 7 years ago
Lunny Xiao 35548a9d4e remove unused fixme on dump command (#1065) 7 years ago
Gabriel Jackson bf6f61cc69 Cleanup log messaging
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.
8 years ago
Lunny Xiao a8048c19f3 Update xorm and fix dump command (#692)
* update xorm and fix dump

* catch database init error

* still use dumpTables

* fix dump bool type

* update vendor.json
8 years ago
Manuel Kuhlmann e698654902 Add data directory excluding sessions to dump (#587) 8 years ago
Lunny Xiao 980dd0bf51 Update xorm and dependencies vendor for feature to dump to other database (#565)
* update xorm and dependencies vendor for feature to dump to other database

* fix golint
8 years ago
Joubert RedRat ce21ed6c34 Remove remaining Gogs reference on locales and cmd (#430) 8 years ago
Bwko 4ff0db0246 Catch os... errors 8 years ago
Bo-Yi Wu 5054020c1f fix gofmt error.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- 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
8 years ago
Matthias Loibl 5cd093aa46 Use cli Flags directly and not some helper funcs
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
8 years ago
Thomas Boerger 5b5af7daee
Made linter happy in cmd folder 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Kim "BKC" Carlbäcker 4f40019130 codegangsta/cli => urfave/cli (#3546) 8 years ago
Thibault Meyer 2c5411b00c Fix #3361: Dumps are created world readable (#3473)
* Set dump file permission to 0600

* Typo
8 years ago
Alex Myasoedov 84d9aff8a2 gogs dump tempdir flag (#3086) 8 years ago
Unknwon 7826eae452 #3045 fix DEPRECATED Action signature erorr 8 years ago
kakwa 1d7a1b6034 add name of the dump file in last log message 9 years ago
kakwa a59b1fcc21 Fix dump of log and custom directory in dump cmd
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.
9 years ago
kakwa c5a9be9115 Using a tmp dir to generate db and repo dumps
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.
9 years ago
kakwa f86afb04a2 Adding more error handling in dump cmd
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)
9 years ago
Unknwon e030109b5a fix api broken 9 years ago
Unknwon e75fd2f783 simplify names 9 years ago
Unknwon f15fa9167a cmd: code fix for #905
- 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)
10 years ago
Peter Smit 1ab09e4f1b Add option to provide configuration file on command line 10 years ago
chai2010 f9ad8d6903 Fix #656 10 years ago
Unknwon b2632dec09 Page: Compare 2 commits 10 years ago
Unknwon f8977f4847 Organization level webhooks 10 years ago
Unknown 688ec6ecbd Fixed #209 10 years ago
Unknown c1eb4d894a Clean api code 10 years ago
Unknown a641854cad command dump 10 years ago
Unknown 3bd5fc6d6f Add command dump and move to cmd did 10 years ago