-
Notifications
You must be signed in to change notification settings - Fork 5k
Add documentation for manual backup #2924
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
Comments
I would also be very interested in some documentation to help me automate a nightly backup of my Gogs site (data/files/config/etc.) to somewhere like an archive. That I could then send up to a cloud backup or something. |
Same here need docs on how to backup gogs, until then it's just nervous to put gogs for serious use. |
+1 A well tested method would be appreciated rather than trying to cobble my own together |
I made a script that backups my postgresql database, compress my repo directory, pack all and send this pack via ssh to my backup server. Is not complicated at all. |
The object is identifying what needs to be backed up and the best way to do it. Anyone can just grab and compress everything, but that's not what this issue is about. |
@jmgilman ok, just saying the way I solved, my backups are up to 1 GB so I can keep an entire month. But is not an elegant solution. |
+1 |
1 similar comment
+1 |
You can use Also possible to backup from SQLite3 and restore to MySQL. |
So it sounds like What is the difference between |
No such command |
I'm writing a post, should be up soon. |
Maybe close the issue when it's available? |
Ok, trying
I have no idea why it's trying 3306, I'm using postgresql, not mysql. |
@fake-name apparently you should tell Gogs which |
That's the thing. My gogs server is currently running, and has been being used for ~6 months now. It knows where it's db is. The config is in |
Log already told you custom config file not found. |
Please don't just dump questions and errors without stop a second and thinking. |
I understand it's not finding it's configuration. My issue is how does it normally determine from where to load it's config? I've been looking through the Sure, I can hard-code the ini path in my backup script, but that seems like a bad idea, given that it must be pulling it from somewhere. I'd assume at this point that you can probably specify an environment variable to gogs that tells it where it should get it's config from. I'd like to use that for my backup scripts, so if I wind up moving anything at some point, the backup script will work without having to patch that too. Maybe this is some oddness related to the packager.io deb process? |
@fake-name if you start Gogs with Default Post is up: https://discuss.gogs.io/t/how-to-backup-restore-and-migrate/991 |
That would make sense, but looking at the gogs running gogs process, it's invocation is only
|
How did you install Gogs? |
Packager.io. Host system is Ubuntu 14.04 x64. As far as I know, I've changed very little from the defaults, though the original install (more then a year ago) was done manually. I dunno if some really, really old configuration thing is still around or something. This might be related to the stuff they're dealing with in #2174. That was a config-not-working issue, what I want to know is more why it does work. |
You can also specify |
Bingo!
|
Currently, the gogs documentation does not have any documentation on backing up gogs data.
It would be helpful if there was a section covering Administration / Backup practices that also mentions the
./gogs dump
command.As referenced here: https://discuss.gogs.io/t/suggestion-on-repository-load-balancing-and-replication-hot-backup-strategy/182/8
The text was updated successfully, but these errors were encountered: