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