aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'env/.local/bin/scripts')
-rwxr-xr-xenv/.local/bin/scripts/backup/backup-tol29
-rwxr-xr-xenv/.local/bin/scripts/backup/backup-tol231
2 files changed, 60 insertions, 0 deletions
diff --git a/env/.local/bin/scripts/backup/backup-tol b/env/.local/bin/scripts/backup/backup-tol
new file mode 100755
index 0000000..d065b08
--- /dev/null
+++ b/env/.local/bin/scripts/backup/backup-tol
@@ -0,0 +1,29 @@
+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=".surf/styles .urlview .gnupg .local/bin/lf-gadgets .local/share/applications/custom .config/FreeTube .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/scripts stuff/media/ICE"
+
+#sync game stuff
+target="laptop:~"
+exclude="--exclude mediamtx.yml --exclude stream.sh --exclude node_modules --exclude **/target"
+
+
+fsynca
+
+printf "==CC-survival unsynced\n\n"
+
+fsyncb
diff --git a/env/.local/bin/scripts/backup/backup-tol2 b/env/.local/bin/scripts/backup/backup-tol2
new file mode 100755
index 0000000..1f0a66d
--- /dev/null
+++ b/env/.local/bin/scripts/backup/backup-tol2
@@ -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=".surf/styles .urlview .local/bin/lf-gadgets .local/share/applications/custom .config/newsboat .config/zsh .keepass .config/Pinta .config/cmus stuff/notes stuff/openvpn-cons stuff/media/ICE stuff/scripts/iceys-linux-stuffs stuff/scripts/system"
+
+# stuff/scripts .gnupg
+
+#sync game stuff
+target="laptop2:~"
+exclude="--exclude mediamtx.yml --exclude stream.sh --exclude node_modules --exclude **/target"
+
+
+fsynca
+
+printf "==CC-survival unsynced\n\n"
+
+fsyncb