Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Created July 30, 2014 19:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefan2904/c33171af3b47ae9dc678 to your computer and use it in GitHub Desktop.
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.
#!/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"
@stefan2904
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment