Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added gogs migration script #532

Merged
merged 1 commit into from
Jan 25, 2017
Merged

Added gogs migration script #532

merged 1 commit into from
Jan 25, 2017

Conversation

Bwko
Copy link
Member

@Bwko Bwko commented Dec 29, 2016

This script needs testing on multiple platforms

Usage:

  • Copy gogs_migrate.sh to your gogs directory
  • Run as your gogs user
  • Answer the questions
  • Done!

Optional parameters:

gogs_migrate.sh [-b Gitea binary] [-i Gitea install dir] [-o gogs binary] [-h help]

Tested on:

  • arch linux 64bit

Needs testing on

  • MacOS
  • arm Vx
  • mips
  • bsd with arm

@Bwko Bwko force-pushed the migration_script branch 4 times, most recently from 7c799c0 to d88ee1c Compare December 29, 2016 18:24
@andreynering andreynering added this to the 1.1.0 milestone Dec 29, 2016
@andreynering andreynering added topic/deployment type/enhancement An improvement of existing functionality pr/wip This PR is not ready for review labels Dec 29, 2016
@bkcsoft
Copy link
Member

bkcsoft commented Dec 29, 2016

We have a mips-binary? 😕

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 29, 2016
@tboerger
Copy link
Member

We got all platforms supported by xgo ;)

@Bwko Bwko force-pushed the migration_script branch 4 times, most recently from 93b1125 to 6c65bcd Compare December 31, 2016 14:01
@Bwko Bwko changed the title [WIP] Added gogs migration script Added gogs migration script Dec 31, 2016
@Bwko Bwko force-pushed the migration_script branch 2 times, most recently from e6639aa to 0eaec14 Compare December 31, 2016 15:58
@Bwko Bwko force-pushed the migration_script branch from 0eaec14 to ea3ee63 Compare January 7, 2017 20:46
@Bwko
Copy link
Member Author

Bwko commented Jan 7, 2017

I think I'm done with this migration script 😄
This script:

  • Checks if gogs is stopped & your running as the Gogs user
  • Checks if this version of Gogs is supported
  • Creates a backup of the Gogs files
  • Downloads Gitea & the Gitea app.ini to your installation folder
  • Copy's Gogs custom & data files
  • Starts Gitea

Any comments on this migration script?

@georgevanburgh
Copy link

As much as I hate to be that guy - what about migrations on Windows?

@Bwko
Copy link
Member Author

Bwko commented Jan 9, 2017

@FireEater64 When this migration script gets approved I'll create a Windows migration script

@tboerger
Copy link
Member

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 24, 2017
@lunny lunny removed the pr/wip This PR is not ready for review label Jan 25, 2017
@lunny
Copy link
Member

lunny commented Jan 25, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 25, 2017
@lunny lunny merged commit 75f0b0c into go-gitea:master Jan 25, 2017
@Bwko Bwko deleted the migration_script branch January 31, 2017 09:00
@CumpsD
Copy link

CumpsD commented Oct 26, 2017

Just wondering, if I would be migrating from Gogs in Docker to Gitea in Docker, I would probably do:

  • Run gogs_migrate.sh in the existing gogs container
  • Stop the container
  • Start Gitea container using the named volume from gogs
  • Profit?

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/deployment type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants