From f39f859b92bcdbfe2d176ec4d0c367157cf7cf67 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 15 Feb 2015 18:21:22 +0100 Subject: tex2pdf: Choosing mupdf over evince. --- bin/backup-profiles | 65 ----------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100755 bin/backup-profiles (limited to 'bin/backup-profiles') diff --git a/bin/backup-profiles b/bin/backup-profiles deleted file mode 100755 index 9e5c9a1..0000000 --- a/bin/backup-profiles +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -# -# Backup profiles of firefox and thunderbird to local ownCloud (or other location) while encrypting them using gpg -# - -firefoxPID=`ps -C firefox -o pid=` -thunderbirdPID=`ps -C thunderbird -o pid=` - -firefoxTMP=/tmp/firefox.tgz -thunderbirdTMP=/tmp/thunderbird.tgz -firefoxIF=~/.mozilla/firefox/ -thunderbirdIF=~/.thunderbird/ -profileName=dvzrv -backupEND=-backup -OF=~/ownCloud/backup/web -gpgEND=.gpg - - -if [[ -z "$firefoxPID" ]] -then - echo "Firefox is not running." - echo "Backing up profile." - tar cfPzh $firefoxTMP -C $firefoxIF $profileName - echo "Encrypting profile." - gpg -e -r 'David Runge ' $firefoxTMP - echo "Moving backup to ownCloud." - mv -f $firefoxTMP$gpgEND $OF - echo "Cleaning up." - rm $firefoxTMP - echo "Done." -else - echo "Firefox is still running." - psdStopped=`systemctl status psd |grep inactive` - if [[ ! -z "$psdStopped" ]]; then - echo "psd service running. Trying to use its backup." - tar cfPzh $firefoxTMP -C $firefoxIF $profileName$backupEND - echo "Encrypting profile." - gpg -e -r 'David Runge ' $firefoxTMP - echo "Moving backup to ownCloud." - mv -f $firefoxTMP$gpgEND $OF - echo "Cleaning up." - rm $firefoxTMP - echo "Done." - else - echo "Skipping backup." - fi -fi - -if [[ -z "$thunderbirdPID" ]] -then - echo "Thunderbird is not running." - echo "Backing up profile." - tar cfPz $thunderbirdTMP -C $thunderbirdIF $profileName - echo "Encrypting profile." - gpg -e -r 'David Runge ' $thunderbirdTMP - echo "Moving backup to ownCloud." - mv -f $thunderbirdTMP$gpgEND $OF - echo "Cleaning up." - rm $thunderbirdTMP - echo "Done." -else - echo "Thunderbird is still running." - echo "Skipping backup." -fi - -- cgit v1.2.3-70-g09d2