aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/scripts/backup/backup-flash
diff options
context:
space:
mode:
Diffstat (limited to 'env/.local/bin/scripts/backup/backup-flash')
-rwxr-xr-xenv/.local/bin/scripts/backup/backup-flash10
1 files changed, 5 insertions, 5 deletions
diff --git a/env/.local/bin/scripts/backup/backup-flash b/env/.local/bin/scripts/backup/backup-flash
index bd2e140..8b959b2 100755
--- a/env/.local/bin/scripts/backup/backup-flash
+++ b/env/.local/bin/scripts/backup/backup-flash
@@ -1,10 +1,10 @@
+#!/bin/sh
cd ~
fsync () {
- # t?
rsync -RUuavn --delete-after $exclude $syncfile "$target"
printf "===commit these changes?\n"
- read - "y/n: " uinput
+ read -p "y/n: " uinput
if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
printf "\n\n\n"
rsync -RUuav --progress --delete-after $exclude $syncfile "$target"
@@ -12,10 +12,10 @@ fsync () {
fi
}
-syncfile="stuff/notes"
+syncfile="stuff/scripts"
#sync game stuff
-target="/home/iceyrazor/u"
-exclude=""
+target="/home/iceyrazor/u/backup"
+exclude="--exclude target/* --exclude node_modules/* --exclude thumbnails/* --exclude 4dm/* --exclude /nwjs.*"
fsync