From 454c6e3c77b3db507ee81875219089047fc2d5a3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 Jan 2013 15:37:49 -0200 Subject: Initial import --- misc/firefox-rotate | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 misc/firefox-rotate (limited to 'misc/firefox-rotate') diff --git a/misc/firefox-rotate b/misc/firefox-rotate new file mode 100755 index 0000000..e116e0a --- /dev/null +++ b/misc/firefox-rotate @@ -0,0 +1,21 @@ +#!/bin/bash +# +# firefox profile local backup +# + +BACKUPDIR="$HOME/backups/mozilla" + +if [ ! -d "/$BACKUPDIR" ]; then + mkdir -p $BACKUPDIR +fi + +if [ -d "/$BACKUPDIR/mozilla.2" ]; then + rm -rf /$BACKUPDIR/mozilla.2 +fi + +if [ -d "/$BACKUPDIR/mozilla.1" ]; then + mv /$BACKUPDIR/mozilla.1 /$BACKUPDIR/mozilla.2 +fi + +cp -Rp $HOME/.mozilla /$BACKUPDIR/mozilla.1 + -- cgit v1.2.3