diff options
author | David Runge <dave@sleepmap.de> | 2015-03-11 01:29:36 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-03-11 01:29:36 +0100 |
commit | e5a2cfc398c0f7fdb03dbc528bc616a173ea2bf1 (patch) | |
tree | f3f4eb389fa8ee6d533e30a749568c5956c8544c /bin/backup-profiles | |
parent | b9949cd068f1b27bcd8c9e7518fe7b98e06f7ae2 (diff) | |
parent | 84aae61d98ea41d45587723c6edffc98cefb40f1 (diff) | |
download | dotfiles-e5a2cfc398c0f7fdb03dbc528bc616a173ea2bf1.tar.gz dotfiles-e5a2cfc398c0f7fdb03dbc528bc616a173ea2bf1.tar.bz2 dotfiles-e5a2cfc398c0f7fdb03dbc528bc616a173ea2bf1.tar.xz dotfiles-e5a2cfc398c0f7fdb03dbc528bc616a173ea2bf1.zip |
Merge branch 'master' of sleepmap:dotfiles
* 'master' of sleepmap:dotfiles: (51 commits)
.autorandr/*: Clean slate for all autorandr profiles.
.password-store: Updating password store to latest commits.
.gitignore: Removing some unneeded stuff that has been added to the repo.
fonts.conf: Updating to a correct path structure.
.fonts: Removing top level configuration.
.fonts.conf: Adding a custom fontconfig cache dir, so .cache can be a tmpfs and won't need a symlink to the fontconfig directory.
.fonts.conf: Adding a custom fontconfig cache dir, so .cache can be a tmpfs and won't need a symlink to the fontconfig directory.
termite/config: Explicitly adding firefox as browser, so clickable URLs will work
.Xresources: Removing double entry for background
.rtorrent.rc: Adding rtorrent configuration file
profile-cleaner.conf: Adding standard setting for profile cleaner (dark background)
.config/mpd/folders: Adding default folders for mpd.
shotwell: Adding symlink for configuration.
.config/systemd: Adding current systemd --user setup.
pavucontrol.ini: Adding standard window size
ardour3: Adding configs for Ardour3.
.tmux.conf: base-index is added properly with -g now.
base.cfg: Terminology base settings update
conky: Add top, right, bottom conky config.
rollback-profile: Changing the backup location.
...
Diffstat (limited to 'bin/backup-profiles')
-rwxr-xr-x | bin/backup-profiles | 65 |
1 files changed, 0 insertions, 65 deletions
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 <david.runge@frqrec.com>' $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 <david.runge@frqrec.com>' $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 <david.runge@frqrec.com>' $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 - |