26 lines
863 B
Plaintext
Executable File
26 lines
863 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="stuff .surf/styles .config/eDEX-UI/ .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .config/gajim/theme .local/share/applications/custom .local/share/osu .librewolf"
|
|
|
|
target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor"
|
|
exclude="--exclude node_modules --exclude node_modules_23 --exclude **/target --exclude LinVAM/pyenv"
|
|
|
|
fsynca
|
|
|
|
fsyncb
|