28 lines
837 B
Plaintext
Executable File
28 lines
837 B
Plaintext
Executable File
cd ~/
|
|
|
|
fsynca () {
|
|
# t?
|
|
rsync -RUuavn --delete-after $exclude $syncfile "$target"
|
|
}
|
|
|
|
fsyncb () {
|
|
printf "===confirm changes?\n"
|
|
read -p "y/n: " 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 .keepass .config/Pinta .config/cmus .config/gajim/theme stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE stuff/media/music stuff/manual-programs/mediamtx"
|
|
|
|
#sync game stuff
|
|
target="laptop:~"
|
|
exclude="--exclude stream.sh --exclude node_modules --exclude **/target"
|
|
|
|
|
|
fsynca
|
|
|
|
fsyncb
|