- moved system scripts to here
- config changes - fixed my backup scripts. rsync -a - added dmenu script - fixed finds in env.sh
This commit is contained in:
4
env/.local/bin/scripts/backup/backup-flash
vendored
4
env/.local/bin/scripts/backup/backup-flash
vendored
@@ -2,12 +2,12 @@ cd ~/stuff/scripts
|
||||
|
||||
fsync () {
|
||||
# t?
|
||||
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -RUuavn --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"
|
||||
rsync -RUuav --progress --delete-after $exclude $syncfile "$target"
|
||||
printf "\n===end sync\n---------\n\n"
|
||||
fi
|
||||
}
|
||||
|
||||
4
env/.local/bin/scripts/backup/backup-tol
vendored
4
env/.local/bin/scripts/backup/backup-tol
vendored
@@ -2,7 +2,7 @@ cd ~/
|
||||
|
||||
fsynca () {
|
||||
# t?
|
||||
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -RUuavn --delete-after $exclude $syncfile "$target"
|
||||
}
|
||||
|
||||
fsyncb () {
|
||||
@@ -10,7 +10,7 @@ fsyncb () {
|
||||
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"
|
||||
rsync -RUuav --progress --delete-after $exclude $syncfile "$target"
|
||||
printf "\n===end sync\n---------\n\n"
|
||||
fi
|
||||
}
|
||||
|
||||
4
env/.local/bin/scripts/backup/backup-tol2
vendored
4
env/.local/bin/scripts/backup/backup-tol2
vendored
@@ -2,7 +2,7 @@ cd ~/
|
||||
|
||||
fsynca () {
|
||||
# t?
|
||||
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -RUuavn --delete-after $exclude $syncfile "$target"
|
||||
}
|
||||
|
||||
fsyncb () {
|
||||
@@ -10,7 +10,7 @@ fsyncb () {
|
||||
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"
|
||||
rsync -RUuav --progress --delete-after $exclude $syncfile "$target"
|
||||
printf "\n===end sync\n---------\n\n"
|
||||
fi
|
||||
}
|
||||
|
||||
12
env/.local/bin/scripts/backup/bbackup
vendored
12
env/.local/bin/scripts/backup/bbackup
vendored
@@ -2,7 +2,7 @@ cd ~/
|
||||
|
||||
fsynca () {
|
||||
# t?
|
||||
rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
|
||||
rsync -RUuavn --delete-after $exclude $syncfile "$target"
|
||||
}
|
||||
|
||||
fsyncb () {
|
||||
@@ -10,22 +10,16 @@ fsyncb () {
|
||||
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"
|
||||
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 .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"
|
||||
exclude="--exclude node_modules --exclude node_modules_23 --exclude **/target --exclude LinVAM/pyenv"
|
||||
|
||||
fsynca
|
||||
|
||||
printf "==CC-survival unsynced?\n\n"
|
||||
printf "==osu unsynced\n\n"
|
||||
|
||||
fsyncb
|
||||
|
||||
35
env/.local/bin/scripts/dmount
vendored
Executable file
35
env/.local/bin/scripts/dmount
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
sudo="sudo"
|
||||
[ doas ] && sudo="doas"
|
||||
|
||||
umo=0
|
||||
|
||||
while getopts "u" opt; do
|
||||
case "$opt" in
|
||||
u) umo=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $((OPTIND-1))
|
||||
[ "${1:-}" = "--" ] && shift
|
||||
|
||||
if [ $umo == 1 ]; then
|
||||
nf=4
|
||||
else
|
||||
nf=3
|
||||
fi
|
||||
|
||||
|
||||
parts="$(lsblk -rno path,size,type,mountpoint | grep -e part -e lvm | awk "NF==$nf {print \$1, \$2, \$3, \$4}")"
|
||||
|
||||
# choice="$(printf "$parts" | rofi -dmenu "beans" | sed 's/ .*//')"
|
||||
choice="$(printf "$parts" | fzf | sed 's/ .*//')"
|
||||
|
||||
[ "$choice" == "" ] && exit 0
|
||||
|
||||
if [ $umo == 1 ]; then
|
||||
$sudo umount $choice
|
||||
else
|
||||
$sudo mount $choice ~/u
|
||||
fi
|
||||
Reference in New Issue
Block a user