Created
July 30, 2014 19:40
-
-
Save stefan2904/c33171af3b47ae9dc678 to your computer and use it in GitHub Desktop.
quick & dirty script to backup Firefox's sessionstore (contains open tabs, etc). run @daily via cron for maximum comfort.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SESSIONSTORE="<path to Firefox profile dir>/<profile>.default/sessionstore.js" | |
TARGET="<some secure/synced location>/sessionstore" | |
# TODO: add other files here (bookmarks?) | |
FORMAT=`date +%Y-%m-%d` | |
cp "${SESSIONSTORE}" "${TARGET}/${FORMAT}_sessionstore.js" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to find your profile directory: https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data