synapse-config/Justfile
2024-04-13 17:33:38 +03:00

30 lines
629 B
Makefile

@_default:
{{just_executable()}} -f {{justfile()}} --list
# Run the instance [aliases: r]
@run:
sudo docker-compose up -d
# Stop the instance [aliases: s]
@stop:
sudo docker-compose rm -f -s
# Restart the instance
@restart:
sudo docker-compose restart
# Create Backup file [aliases: b]
@backup backup_name: stop && run
#!/usr/bin/env bash
FILES="data postgresdata Justfile docker-compose.yml README.md"
7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p {{backup_name}}.7z $FILES
echo "Backup done..."
[private]
alias r := run
[private]
alias s := stop
[private]
alias b := backup