]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - debian/bin/backup.sh
use set -eu
[config/dotfiles.git] / debian / bin / backup.sh
index 46d17d8fdb9cc784e7178d95c2557a42c45f0bf2..4b9bffa73334596cd947c52f8d0a81d0522482f4 100755 (executable)
 # 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" \