made dynamic generating path.

This commit is contained in:
2025-05-25 04:42:09 -05:00
parent 90248ad822
commit 5f802a4a9d
12 changed files with 583 additions and 5 deletions

21
env/.local/bin/scripts/backup/backup-flash.sh vendored Executable file
View File

@@ -0,0 +1,21 @@
cd ~/stuff/scripts
fsync () {
# t?
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
printf "===commit these changes?\n"
read - "y/n: " uinput
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
printf "\n\n\n"
rsync -RUurv --progress --size-only --delete-after $exclude $syncfile "$target"
printf "\n===end sync\n---------\n\n"
fi
}
syncfile="LINUX-SERVER1 sites"
#sync game stuff
target="/home/iceyrazor/u"
exclude=""
fsync

31
env/.local/bin/scripts/backup/backup.sh vendored Executable file
View File

@@ -0,0 +1,31 @@
cd ~/
fsynca () {
# t?
rsync -RUurvn --size-only --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 -RUurv --progress --size-only --delete-after $exclude $syncfile "$target"
printf "\n===end sync\n---------\n\n"
fi
}
syncfile="stuff .surf/styles .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .var/app/dev.vencord.Vesktop/config/vesktop/themes .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .local/share/applications/custom .local/share/osu"
# se shit
syncfile="$syncfile /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Blueprints /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/IngameScripts /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Saves"
target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor"
exclude="--exclude node_modules --exclude node_modules_23 --exclude dontsync --exclude **/target --exclude LinVAM/pyenv"
fsynca
printf "==CC-survival unsynced?\n\n"
printf "==osu unsynced\n\n"
fsyncb