From cfef5bc51f0bf8626bace960274112e416cd8d93 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 7 Sep 2013 02:20:47 +0200 Subject: [PATCH] debian/bin/backup.sh: Add. Also add nocreeps public GPG key. --- debian/bin/backup.sh | 36 ++++++++++++++++++++++++++++++ nocreeps.pub | 52 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100755 debian/bin/backup.sh create mode 100644 nocreeps.pub diff --git a/debian/bin/backup.sh b/debian/bin/backup.sh new file mode 100755 index 0000000..46d17d8 --- /dev/null +++ b/debian/bin/backup.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +# Backup all important system-relevant data of a Debian system. +# +# The list of installed packages can be extracted from /var/lib/dpkg/status. + +# Copyright (C) 2013 Simon Ruderich +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +set -e + + +# tar can't exclude it automatically because we pipe it through gpg. +target="`pwd`/`hostname`.tar.gpg" + +tar cf - \ + --exclude /var/cache \ + --exclude /var/www \ + --exclude "$target" \ + --exclude "$target.tmp" \ + /etc /root /var \ + | gpg --encrypt --sign --recipient 0x95AC608FB0863F79 \ + >"$target.tmp" +mv "$target.tmp" "$target" diff --git a/nocreeps.pub b/nocreeps.pub new file mode 100644 index 0000000..1a31e9b --- /dev/null +++ b/nocreeps.pub @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.14 (GNU/Linux) + +mQINBE8LTUsBEACl2SCqlpAreByr6SwcrDlfCLLUdg/Rb/NoBf+q+5L1CHRQNhg0 +8anYiGE2EWnkTkPINJbtbrlhTBR1g3xmM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