|
2 weeks ago | |
---|---|---|
env | 2 weeks ago | |
podman | 2 weeks ago | |
.drone.yml | 2 weeks ago | |
.gitignore | 2 weeks ago | |
Containerfile | 2 weeks ago | |
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
version.txt | 2 weeks ago |
Builds from main
are pushed to Harbor
Please see the documentation on the environment files provided in the env subdirectory.
Please see the podman README for information on how to use podman to run Mattermost Server.
Use a variation of the following to make backups:
mybackup_dir=~/backups # Or some mounted folder you'd like to do backups to
mkdir -p "$mybackup_dir"
for volume in mattermost-server-data mattermost-db; do
podman run --rm -v $volume:/volume -v "$mybackup_dir":/backups alpine tar cvzf /backups/$volume-$(date +%Y-%m-%d).tgz -C /volume ./
done
In order to restore those backups, you would run something like:
mybackup_dir=~/backups # Or some mounted folder you'd like to restore backups from
backups=$(for backup in "$mybackup_dir"/mattermost-server-data-*.tgz; do
echo -n "$backup" | rev | cut -d. -f2 | rev | tail -c11
done) # This pulls the datestamps and sizes for existing backups if formatted like above
select backup in $backups; do [ "$backup" ] && break || echo "Unknown selection: $REPLY" >&2; done # this lets you pick from the existing backups
for volume in mattermost-server-data mattermost-db; do
podman run --rm -v $volume:/volume -v "$mybackup_dir":/backups alpine sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar xvzf /backups/$volume-$backup.tgz -C /volume"
done
Mattermost Server, when used from compiled binaries, is licensed under the MIT License. A copy of that license is present in the server's directory at /opt/mattermost/MIT-COMPILED-LICENSE.md
. The code in this repository, which builds and releases container images based on that MIT licensed code, is licensed under the BSD 2-Clause License. A copy of that license is present at /LICENSE
.