blob: d8062960ee1ea7f3ce0cb96a35b233b68f595147 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
cd ~/ || exit
fsynca () {
# t?
rsync -RUuavn --delete-after $exclude $syncfile "$target"
}
fsyncb () {
printf "===confirm changes?\n"
printf "y/n: "
read -r uinput
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
printf "\n\n\n"
rsync -RUuav --progress --delete-after $exclude $syncfile "$target"
printf "\n===end sync\n---------\n\n"
fi
}
syncfile=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .config/Pinta .config/gajim/theme stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE stuff/media/music stuff/manual-programs/mediamtx"
target="laptop:~"
exclude="--exclude stream.sh --exclude node_modules --exclude **/target"
fsynca
fsyncb
|