summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
blob: 6e1d4c9b14d6ac163024cf0e70107e301166ed62 (plain)
  1. #!/bin/sh
  2. set -e
  3. # Based on script by Micah Anderson <micah@riseup.net>
  4. # Change this to match your correct profile
  5. PROFILE="8xrm3et5.default"
  6. cd "${HOME}/.mozilla/firefox"
  7. if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"; then
  8. mount "${HOME}/.mozilla/firefox/${PROFILE}"
  9. fi
  10. if test -f "${PROFILE}/.unpacked"; then
  11. rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
  12. else
  13. rsync -av ./profile/ ./"$PROFILE"/
  14. touch "${PROFILE}/.unpacked"
  15. fi