Files
dotfiles/env/.local/bin/scripts/backup/backup-tol2
iceyrazor 968141f8a7 Squashed commit of the following:
- mpv
    - i3
    - changed zsh ps1
    - added swapscape to backup-tol2
    - removed floating
    - show hidden on word search telescope
    - added mod+r to leave resize
2025-08-06 12:15:13 -05:00

32 lines
848 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 .local/bin/lf-gadgets .local/share/applications/custom .config/newsboat .config/zsh .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/media/ICE stuff/scripts/iceys-linux-stuffs .config/swapscape.map"
# stuff/scripts .gnupg
#sync game stuff
target="laptop2:~"
exclude="--exclude mediamtx.yml --exclude stream.sh --exclude node_modules --exclude **/target"
fsynca
printf "==CC-survival unsynced\n\n"
fsyncb