This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -- $(locale LC_MESSAGES) | |
yesptrn="$1"; noptrn="$2"; yesword="$3"; noword="$4" | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
input_sink=$(pacmd stat |grep -o -P "(?<=Default source name: ).*") | |
output_sink=$(pacmd stat |grep -o -P "(?<=Default sink name: ).*") | |
echo "Input:" $input_sink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Make a backup file of a Mastodon instance. The backup file is a TGZ containing | |
# the Postgres dump as well as the /public/system (media) files and the | |
# .env.production file. For loading the dump file contents, see: | |
# https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Migration-guide.md | |
# | |
# Usage: ./mastodon_backup.sh my_dump_file.tgz | |
# | |
# Advanced usage: MASTODON_LIVE_DIRECTORY=/path/to/live ./mastodon_backup.sh my_dump_file.tgz |