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
# This setup works pretty well for OPL with a network link that travels through | |
# two UniFi switches and connects to a Samba server running inside Docker. The | |
# host OS is Debian with a ZFS filesystem and the container OS is also Debian. | |
# Latest Samba (4.11+). | |
[global] | |
# ====================== | |
# General Samba settings | |
# ====================== | |
log level = 1 |
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
# This is a custom tabulation command implemented fully in zsh that | |
# produces simple output suitable for zsh-histdb. | |
# | |
# The `column` command on macOS has a silly limitation max 2048 line | |
# length, it's unsuitable for tabulating long paths and commands. It | |
# also produces somewhat unexpected results with regards to column | |
# length and placement. | |
# | |
# Features: | |
# - Right indent for number columns |
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
# /etc/cron.d/samba-timemachine-zfs-snapshot | |
# Create snapshots after completed Time Machine backups. | |
# Runs every two minutes to allow creating backups only after cleanup is | |
# completed. | |
*/2 * * * * root /usr/local/bin/timemachine-zfs-snapshot.sh rpool/share/timemachine |
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
FROM alpine:3.14.2 | |
LABEL maintainer="Mathias Fredriksson <mafredri@gmail.com>" | |
RUN apk add --no-cache \ | |
bzip2 \ | |
ca-certificates | |
ARG RESTIC_VERSION='0.12.1' | |
RUN wget -O - https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 \ | |
| bzip2 -d >/usr/local/bin/restic \ |
OlderNewer