Skip to content

Instantly share code, notes, and snippets.

View klutchell's full-sized avatar
🏠
Working from home

Kyle Harding klutchell

🏠
Working from home
View GitHub Profile
@klutchell
klutchell / docker-compose.yml
Last active May 7, 2024 04:04
simple linuxserver/duplicati docker-compose stack
version: "3"
services:
duplicati:
image: linuxserver/duplicati
container_name: duplicati
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
@klutchell
klutchell / duplicity.service
Last active May 19, 2023 17:01
scheduled duplicity backups with systemd
# description:
# - once per day perform backup of $HOME
# - every 14th backup will be a full backup (~2 weeks)
# - delete all backups older than the 4th most recent full backup (~8 weeks)
# - exclude files larger than 100M
# usage:
# 1. install duplicity.service in ~/.config/systemd/user/
# 2. install duplicity.timer in ~/.config/systemd/user/
# 3. create ~/.duplicity and define DEST, GPG_KEY_ID, and PASSPHRASE
@klutchell
klutchell / encfs.service
Created October 6, 2019 18:15
systemd unit file for encfs fuse auto-mount
Description=Encfs FUSE mount
Documentation=https://vgough.github.io/encfs/
Wants=s3fs.service
After=s3fs.service
AssertPathIsDirectory=/mnt/encfs
[Service]
Type=simple
Environment=ENCFS6_CONFIG=%h/.encfs6.xml
ExecStartPre=/bin/mountpoint /mnt/s3fs
@klutchell
klutchell / s3fs.service
Created October 6, 2019 18:14
systemd unit file for s3fs fuse auto-mount
Description=S3FS FUSE mount
Documentation=https://github.com/s3fs-fuse/s3fs-fuse
Wants=network-online.target
After=network-online.target
AssertPathIsDirectory=/mnt/s3fs
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/s3fs mybucket:/bucketdir /mnt/s3fs -o url=https://nyc3.digitaloceanspaces.com -o use_cache=/tmp -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000