wmde-rp/wmde-rp.conf

167 lines
3.6 KiB
Plaintext
Raw Normal View History

2025-04-24 19:57:52 +00:00
#!/bin/sh
NFSSERVER=nfsserver.gs.wikimedia.de
NFSHOMES=/mnt/home
PREFIX=/usr/local/bin/wmde
2025-05-09 20:07:49 +00:00
SYNCPRG=unison
2025-04-24 19:57:52 +00:00
ADMIN_USERS="admin root" # never run roaming profiles for this users
MIN_USER_ID=10000 # no roaming users with id < 10000 (non-IPA-users)
NETGROUPS="wmde-rp-general"
WAIT_FOR_CONFIG=always # always, first or never
WAIT_FOR_FULLSYNC=never # always, first or never
2025-05-02 22:41:04 +00:00
WMDERPDIRNAME=".wmde-rp"
2025-04-24 19:57:52 +00:00
2025-05-02 06:59:30 +00:00
CONFIG_DIRS=" \
--exclude='$WMDERPDIRNAME' \
2025-05-02 21:46:07 +00:00
--exclude='Local' \
2025-05-02 06:59:30 +00:00
--include='*.kdbx' \
2025-05-02 10:10:36 +00:00
--include='.ssh/***' \
2025-05-02 06:59:30 +00:00
--include='.cache/' \
--include='.cache/keepassxc/***' \
2025-05-02 10:10:36 +00:00
--exclude='cache' \
--exclude='*/cache' \
2025-05-02 06:59:30 +00:00
--exclude='.cache' \
--exclude='*/.cache' \
--exclude='.cache2' \
--exclude='*/.cache2' \
2025-05-02 10:10:36 +00:00
--exclude='Cache' \
--exclude='*/Cache' \
2025-05-02 06:59:30 +00:00
--exclude='.thunderbird/*/ImapMail/' \
2025-05-02 10:10:36 +00:00
--include='.thunderbird/***' \
--include='.mozilla/***' \
2025-05-02 06:59:30 +00:00
--include='.local/' \
--include='.local/share/' \
--include='.local/share/backgrounds/***' \
--include=.config/*** \
--exclude='*' \
"
2025-05-09 20:07:49 +00:00
UNISON_CONFIG_DIRS=$(cat << EOF
ignore = Path $WMDERPDIRNAME
path = .config
path = .local/share/backgrounds
path = .ssh
path = .cache/keepassxc
path = .thunderbird
path = .mozilla
ignore = Path Local
ignore = Path cache
ignore = Path */cache
ignore = Path .cache
ignore = Path */.cache
ignore = Path .cache2
ignore = Path */.cache2
ignore = Name Cache
ignore = Path */Cache
ignore = Path .thunderbird/*/ImapMail
2025-05-15 12:21:15 +00:00
ignore = Name .config/chromium/Singleton*
2025-05-09 20:07:49 +00:00
EOF
)
UNISON_FULL_DIRS=$(cat << EOF
ignore = Path $WMDERPDIRNAME
ignore = Path Local
ignore = Path cache
ignore = Path */cache
ignore = Path .cache
ignore = Path */.cache
ignore = Path .cache2
ignore = Path */.cache2
ignore = Name Cache
ignore = Path */Cache
ignore = Path .thunderbird/*/ImapMail
ignore = Path Downloads
ignore = Path VirtualBox VMs
2025-05-15 12:21:15 +00:00
ignore = Name .config/chromium/Singleton*
2025-05-09 20:07:49 +00:00
EOF
)
UNISON_PERM_DIRS=$(cat << EOF
ignore = Path $WMDERPDIRNAME
ignore = Path Local
ignore = Path cache
ignore = Path */cache
ignore = Path .cache
ignore = Path */.cache
ignore = Path .cache2
ignore = Path */.cache2
ignore = Name Cache
ignore = Path */Cache
ignore = Path .thunderbird/*/ImapMail
ignore = Path Downloads
ignore = Path VirtualBox VMs
2025-05-15 12:21:15 +00:00
ignore = Name .config/chromium/Singleton*
2025-05-09 20:07:49 +00:00
EOF
)
2025-04-24 19:57:52 +00:00
2025-05-02 06:59:30 +00:00
FULL_DIRS=" \
--exclude='$WMDERPDIRNAME' \
2025-05-02 21:46:07 +00:00
--exclude='Local' \
2025-05-02 10:10:36 +00:00
--include='*.kdbx' \
--include='.ssh/***' \
--include='.cache/' \
--include='.cache/keepassxc/***' \
--exclude='cache' \
--exclude='*/cache' \
2025-05-02 06:59:30 +00:00
--exclude='.cache' \
--exclude='*/.cache' \
--exclude='.cache2' \
--exclude='*/.cache2' \
2025-05-02 10:10:36 +00:00
--exclude='Cache' \
--exclude='*/Cache' \
--exclude='.thunderbird/*/ImapMail/' \
--include='.thunderbird/***' \
--include='.mozilla/***' \
--include='.local/' \
--include='.local/share/' \
--include='.local/share/backgrounds/***' \
--include=.config/*** \
2025-05-02 06:59:30 +00:00
--exclude='Downloads' \
--exclude='VirtualBox VMs' \
"
PERM_DIRS=" \
--exclude='$WMDERPDIRNAME' \
2025-05-02 21:46:07 +00:00
--exclude='Local' \
2025-05-02 10:10:36 +00:00
--include='*.kdbx' \
--include='.ssh/***' \
--include='.cache/' \
--include='.cache/keepassxc/***' \
--exclude='cache' \
--exclude='*/cache' \
2025-05-02 06:59:30 +00:00
--exclude='.cache' \
--exclude='*/.cache' \
--exclude='.cache2' \
--exclude='*/.cache2' \
2025-05-02 10:10:36 +00:00
--exclude='Cache' \
--exclude='*/Cache' \
2025-05-02 06:59:30 +00:00
--exclude='.thunderbird/*/ImapMail/' \
2025-05-02 10:10:36 +00:00
--include='.thunderbird/***' \
--include='.mozilla/***' \
--include='.local/' \
--include='.local/share/' \
--include='.local/share/backgrounds/***' \
--include=.config/*** \
2025-05-02 06:59:30 +00:00
"
# --exclude='.osync_workdir' \
2025-05-02 10:10:36 +00:00
#CONFIGDIRS=".config \
# .local/share/backgrounds \
# .ssh"
2025-05-09 20:07:49 +00:00
if [ -d /etc/wmde-rp.d ]; then
for file in $(ls /etc/wmde-rp.d/*.conf 2>/dev/null | sort); do
[ -f "$file" ] && . "$file"
done
fi
2025-05-02 10:10:36 +00:00