summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalbackupiceweaselprofile21
1 files changed, 21 insertions, 0 deletions
diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile
new file mode 100755
index 0000000..c636629
--- /dev/null
+++ b/localbackupiceweaselprofile
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Change this to match your correct profile
+PROFILE="8xrm3et5.default"
+
+cd "${HOME}/.mozilla/firefox"
+
+if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"
+then
+ mount "${HOME}/.mozilla/firefox/${PROFILE}"
+fi
+
+if test -f "${PROFILE}/.unpacked"
+then
+ rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
+else
+ rsync -av ./profile/ ./"$PROFILE"/
+ touch "${PROFILE}/.unpacked"
+fi
+
+exit