Configuration
Driftwood reads ~/.config/driftwood/driftwood.toml, then DRIFTWOOD_* environment variables, then flags.
[repository]
url = "s3://backups/laptop"
password_command = "security find-generic-password -s driftwood -w"
[snapshot]
paths = ["~/Documents", "~/Pictures"]
exclude = ["**/.DS_Store", "**/node_modules"]
one_file_system = true
[chunker]
min_size = "512KiB"
avg_size = "2MiB"
max_size = "8MiB"
[transfer]
connections = 8
upload_limit = "0" # bytes per second, 0 = unlimited
[schedule]
cron = "0 3 * * *"
Environment variables
| Variable | Meaning |
|---|---|
DRIFTWOOD_REPO | Repository URL |
DRIFTWOOD_PASSWORD_FILE | File holding the passphrase |
DRIFTWOOD_CACHE_DIR | Local index cache |
DRIFTWOOD_LOG | error, warn, info, debug |