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