]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - bin/srsync
bin/srsync: add --protect-args
[config/dotfiles.git] / bin / srsync
index 81000fba9befde4158c02f72d1d7df79c6675489..fc549a48375098de7850d9718b8a299fb2e0a04a 100755 (executable)
@@ -5,7 +5,7 @@
 # Be careful when restoring /boot with --sparse, GRUB doesn't support sparse
 # files (e.g. the kernel). Therefore don't use --sparse in this case.
 
-# Copyright (C) 2011-2014  Simon Ruderich
+# Copyright (C) 2011-2016  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
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+set -eu
 set -x
 
 exec rsync \
+    --protect-args \
     --verbose \
     --itemize-changes \
     --human-readable \
     --archive \
+    --acls \
+    --xattrs \
     --hard-links \
     --sparse \
     --numeric-ids \