diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-08-09 13:41:07 -0400 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-08-09 14:02:34 -0400 |
commit | 43b148344bbed4d98cade76f09351204ede058e0 (patch) | |
tree | e7b7abc6e8c5c186e4202d494aa23e135ce0e57b | |
parent | 85cd48c301ece8899a91b1d24ab97cebf26010b4 (diff) |
Add new script localcsr from Micah Andersson <micah@riseup.net>
-rwxr-xr-x | localbackupiceweaselprofile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile new file mode 100755 index 0000000..c636629 --- /dev/null +++ b/localbackupiceweaselprofile @@ -0,0 +1,21 @@ +#!/bin/bash + +# Change this to match your correct profile +PROFILE="8xrm3et5.default" + +cd "${HOME}/.mozilla/firefox" + +if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )" +then + mount "${HOME}/.mozilla/firefox/${PROFILE}" +fi + +if test -f "${PROFILE}/.unpacked" +then + rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/ +else + rsync -av ./profile/ ./"$PROFILE"/ + touch "${PROFILE}/.unpacked" +fi + +exit |