Files
dotfiles/env/.local/bin/scripts/backup/backup-tol2
iceyrazor b95ae4c5c9 - moved system scripts to here
- config changes
- fixed my backup scripts. rsync -a
- added dmenu script
- fixed finds in env.sh
2025-06-30 00:05:45 -05:00

32 lines
847 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 stuff/scripts/system"
# 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