Gogs Remote Backup

Remotely back up a Gogs (Go Git Service) database and selected files and folders
Alternatives To Gogs Remote Backup
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Dolt14,4632a day ago214May 19, 2022257apache-2.0Go
Dolt – Git for Data
Waking Up8,405
2 months ago19gpl-3.0
计算机基础(计算机网络/操作系统/数据库/Git...)面试问题全面总结,包含详细的follow-up question以及答案;全部采用【问题+追问+答案】的形式,即拿即用,直击互联网大厂面试:rocket:;可用于模拟面试、面试前复习、短期内快速备战面试...
4 months ago232PHP
Git-based version control for WordPress. Whoa!
16 hours ago2March 30, 2022139iscOCaml
Irmin is a distributed database that follows the same design principles as Git
Learn Devops1,049
12 days ago1HCL
I am using this repository to document my devops journey. I follow the process of learning everything by tasks. Every task has an associated objective that encompasses an underlying concept. Concepts including CloudProviders, Containers, ContainersOrchestration, Databases, InfrastructureAsCode, Interview, VersionControl etc in progress
a year ago34apache-2.0OCaml
Connect processes into powerful data pipelines with a simple git-like filesystem interface
Git Heat Map934
7 days ago2JavaScript
Visualise a git repository by diff activity
9 years ago3otherJavaScript
a git-backed issue tracker
Redwood74922 months ago26April 18, 2021111mitGo
A highly-configurable, distributed, realtime database that manages a state tree shared among many peers.
Gitmodel542713 years ago8September 30, 20129mitRuby
An ActiveModel-compliant persistence framework for Ruby that uses Git for versioning and remote syncing.
Alternatives To Gogs Remote Backup
Select To Compare

Alternative Project Comparisons


Gogs-Remote-Backup (run_gogs_remote_backup.sh) is a bash script to remotely back up key files/folders used in a Gogs installation using the secure remote copy (scp) command. Specifically, Gogs-Remote-Backup backs up the following:

  • The PostgreSQL database used by Gogs
  • The Gogs custom configuration file called app.ini. This file is important, as it contains all configuration details regarding the current Gogs install
  • The Gogs Git repositories located in the gogs-repositories folder

Note: Gogs can be installed using other database options: this script currently only supports PostgreSQL.

Importantly, run_gogs_remote_backup.sh is intended to be used for making unattended script calls (e.g., running cron jobs) into a set of related Git projects configured as Git submodules, making it easy to use this project as a front-end while the supporting submodule projects get updated independently. The two submodule projects are:


  • An operational bash environment (bash 4.3.46 used during development)
  • The requirements of each of the two submodule projects used in this project. Note that each submodule project will alert the user to missing dependencies at runtime

While this package was written and tested under Linux (Ubuntu 16.10), there should be no reason why this won't work under other Unix-like operating systems.

Basic Usage

Be sure to review and edit the contents of the Gogs-Remote-Backup script (run_gogs_remote_backup.sh) to customize script parameters and folder options.

Note: Gogs-Remote-Backup really only serves as a wrapper for Postgresql-Db-Dump and Remote-Folder-Copy, so a good understanding of the parameters passed into these scripts is important.

Because Gogs-Remote-Backup is intended to run unattended, the only usage is to call the script directly, with no additional parameters passed on the command line.

$ ./run_gogs_remote_backup.sh

IMPORTANT: This Project Uses Git Submodules

This project uses Git submodule projects (located in the postgresql-db-dump and the remote-folder-copy folders) to keep this project up-to-date without manual intervention.

Be sure to clone this project with the --recursive switch (git clone --recursive https://github.com/richbl/this_project) so any submodule project(s) will be automatically cloned as well. If you clone into this project without this switch, you'll likely see empty submodule project folders (depending on your version of Git).

Popular Database Projects
Popular Git Projects
Popular Data Storage Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell Script
Bash Script