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-flash21
1 files changed, 21 insertions, 0 deletions
diff --git a/env/.local/bin/scripts/backup/backup-flash b/env/.local/bin/scripts/backup/backup-flash
new file mode 100755
index 0000000..c9ad023
--- /dev/null
+++ b/env/.local/bin/scripts/backup/backup-flash
@@ -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