# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set -e
+set -eu
# tar can't exclude it automatically because we pipe it through gpg.
target="`pwd`/`hostname`.tar.gpg"
tar cf - \
+ --exclude /root/apt \
--exclude /var/cache \
--exclude /var/www \
--exclude "$target" \