On 2025-06-27 07:33, Ethan Azariah wrote:
do any openbsd filesystems support any sort of file history, whether
through snapshots or as a log structured filesystem or any other way?
I just use dump and restore which is part of the base install.
I like how it can capture incremental change and redirect through
compression and generate checksums in flight.
This example is a snippet from a script that backs up to AWS deep
archive.
$DUMP -$DUMP_LEVEL -u -f - $MOUNT 2>/dev/null | \
$TQDM | \
$ZSTD --long --stdout | \
$OPENSSL enc $ENC -e -pass file:$KEY | \
tee >($OPENSSL dgst -$DGST | \
awk -v d=$DGST -v o=$DATA_FILE '{gsub("stdin", o)} {gsub("^",
toupper(d))} $1' | \
$AWS s3 cp - s3://$BUCKET/$CLIENT/$DGST_FILE) | \
$AWS s3 cp --storage-class DEEP_ARCHIVE --expected-size $TOTAL -
s3://$BUCKET/$CLIENT/$DATA_FILE 2>>$LOG_FILE