aboutsummaryrefslogtreecommitdiffstats
path: root/bin/backup-settings
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-05-08 20:22:16 +0200
committerDavid Runge <dave@sleepmap.de>2016-05-08 20:22:16 +0200
commit08845cec6393482a60493e465f0ba13727386f5b (patch)
tree8282cffd99ca2a12dfb3d34a7f82a28ac26d71b5 /bin/backup-settings
parent9cfb64c997b8e5f095c75f39641762f44d3307c2 (diff)
downloaddotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.gz
dotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.bz2
dotfiles-08845cec6393482a60493e465f0ba13727386f5b.tar.xz
dotfiles-08845cec6393482a60493e465f0ba13727386f5b.zip
bin/set_volume: Making script not depend on functions.sh anymore. Introducing bash strict mode.
Diffstat (limited to 'bin/backup-settings')
-rwxr-xr-xbin/backup-settings19
1 files changed, 0 insertions, 19 deletions
diff --git a/bin/backup-settings b/bin/backup-settings
deleted file mode 100755
index 1a9cc12..0000000
--- a/bin/backup-settings
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-
-etcTMP=/tmp/etc.tgz
-etcIF=/etc
-OF=/home/dave/ownCloud/backup/settings
-gpgEND=.gpg
-
-echo "Backing up /etc directory."
-tar cfPz $etcTMP $etcIF
-echo "Encrypting compressed directory."
-su - dave -c "gpg -e -r 'David Runge <david.runge@frqrec.com>' $etcTMP"
-echo "Changing permissions on file."
-chown dave:dave $etcTMP$gpgEND
-echo "Moving backup to ownCloud."
-mv -f $etcTMP$gpgEND $OF
-echo "Cleaning up."
-rm $etcTMP
-echo "Done."
-