All Projects → gitlab-tools → gitlab-mattermost-backup

gitlab-tools / gitlab-mattermost-backup

Licence: Apache-2.0 License
A simple backup script for mattermost in gitlab omnibus package

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to gitlab-mattermost-backup

s3-mongo-backup
Mongodb backups to S3
Stars: ✭ 18 (-21.74%)
Mutual labels:  backup, s3, backup-script
mmd-gitlab-backuper
a package to backup from all projects that you have on gitlab
Stars: ✭ 27 (+17.39%)
Mutual labels:  gitlab, backup, backup-script
virtnbdbackup
Backup utiliy for Libvirt / qemu / kvm supporting incremental and differencial backups.
Stars: ✭ 62 (+169.57%)
Mutual labels:  backup, backup-script
esop
Cloud-enabled backup and restore tool for Apache Cassandra
Stars: ✭ 40 (+73.91%)
Mutual labels:  backup, s3
raptor
The definitive EasyEngine installer with fully functional backup-restore and SFTP functionalities included
Stars: ✭ 26 (+13.04%)
Mutual labels:  backup, backup-script
gosquito
gosquito ("go" + "mosquito") is a pluggable tool for data gathering, data processing and data transmitting to various destinations.
Stars: ✭ 25 (+8.7%)
Mutual labels:  s3, mattermost
linux-android-backup
Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
Stars: ✭ 119 (+417.39%)
Mutual labels:  backup, backup-script
auto-mysql-backup
a wrapper for automysqlbackup
Stars: ✭ 19 (-17.39%)
Mutual labels:  backup, backup-script
time-travel
An rsync based backup script which only transfers modified files. Smooth integration into OSX Notification Center.
Stars: ✭ 43 (+86.96%)
Mutual labels:  backup, backup-script
elasticsearch-shell-backup
Elasticsearch 2, 5 shell script backup utils.
Stars: ✭ 18 (-21.74%)
Mutual labels:  backup, backup-script
aws-utils
This repository provides utilities which are used at MiQ.
Stars: ✭ 20 (-13.04%)
Mutual labels:  backup, s3
gitlab-ldap-group-sync
Manage your gitlab groups with ldap / active directory
Stars: ✭ 21 (-8.7%)
Mutual labels:  gitlab, gitlab-ce
backup-suite
Backup database, static files and config to AWS S3 with Cronjob
Stars: ✭ 32 (+39.13%)
Mutual labels:  backup, s3
awesome-storage
A curated list of storage open source tools. Backups, redundancy, sharing, distribution, encryption, etc.
Stars: ✭ 324 (+1308.7%)
Mutual labels:  backup, s3
terraform-aws-efs-backup
Terraform module designed to easily backup EFS filesystems to S3 using DataPipeline
Stars: ✭ 40 (+73.91%)
Mutual labels:  backup, s3
minback-postgres
A container which provides the ability to backup a PostgreSQL database to Minio on demand
Stars: ✭ 18 (-21.74%)
Mutual labels:  backup, s3
docker-aws-s3-sync
Docker container to sync a folder to Amazon S3
Stars: ✭ 21 (-8.7%)
Mutual labels:  backup, s3
pgsql-backup
PostgreSQL Backup Script. Ported from AutoMySQLBackup.
Stars: ✭ 24 (+4.35%)
Mutual labels:  backup, backup-script
MailcowBackup
Script to backup/restore Mailcow and the host system using borgbackup. Handles 503 error page generation, mailflow stop/restart, SQL database dump, borg backup and prune and integrates with Logwatch for easy monitoring.
Stars: ✭ 28 (+21.74%)
Mutual labels:  backup, backup-script
bash-backup
Simple backup script for GNU/Linux servers
Stars: ✭ 76 (+230.43%)
Mutual labels:  backup, backup-script

gitlab-mattermost-backup

Gitlab ships mattermost in the omnibus package without backup script.

This repository contains a simple script to backup the mattermost data and uploads it to s3.

Prerequisites

The AWS cli must be installed for user root. See official install guide.

run aws configure or set the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in config file.

Installation

Clone the repository and create a backup_mattermost.conf file.

git clone https://github.com/gitlab-tools/gitlab-mattermost-backup.git && cd gitlab-mattermost-backup && cp backup_mattermost.conf.sample backup_mattermost.conf

Configuration

See: backup_mattermost.conf.sample

Usage

Just execute the script:

./backup_mattermost.sh

Setup cron job

Run the backup everyday at 2:00 am everyday.

crontab -e

and add following line:

0 2 * * * /path/to/backup_mattermost/backup_mattermost.sh

Restore

Install gitlab omnibus and execute following commands:

tar -zxvf %s_%Y_%m_%d_mattermost.tar.gz -C /tmp/
mv /tmp/mattermost/data/* /var/opt/gitlab/mattermost/
su - mattermost -c "/opt/gitlab/embedded/bin/psql -U gitlab_mattermost -h /var/opt/gitlab/postgresql -p 5432 mattermost_production" < /tmp/mattermost/mattermost_production_backup.sql
rm -rf /tmp/mattermost
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].