From bfdb80d04d8bc10c4b29cb1aad46eeaed3d4393e Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sun, 13 Mar 2022 15:01:30 +0100 Subject: [PATCH] Added config template --- template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 template diff --git a/template b/template new file mode 100644 index 0000000..736edfa --- /dev/null +++ b/template @@ -0,0 +1,28 @@ +#!/bin/bash +# Template configuration for msynk +# Always append '/' to directories! +# If a path contains a space, escape the space or put the path in quotes. + +sender=~/ +receiver=/media/usb/backup/ +declare -a paths=(\ + dir1/ + dir2/dir3 + file1 + file\ with\ space + "dir4/another file with space" +) +# this would mean "~/dir1" "~/dir2/dir3" "~/file1" "~/file\ with\ space" and "~/dir4/another file with space" would synced to /media/usb/backup/ + +# is you are syncing to a remote with ssh port 42 +# receiver=user@foobar.com:/mnt/backup +# rsync_flags+=(--rsh="ssh -p 42) + +# Use mkrypt with gpg for encryption: 0=no, 1=yes +use_encryption=0 +# if you want to encrypt the files with the public key belonging to mymail@foobar.com: +# mkrypt_flags+=(--recipient "mymail@foobar.com") + +# Date the config was last used (for --check-date) +# This will be set/updated when the msynk is run with this config. +date=