X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fsrsync;h=8402bb33aeeff8e97ed99af24935d03f8182df47;hb=64b4f4a04f6f8989a4621c53333e5dc66960b586;hp=28dff099731867b97c6062ee523062901dceb50f;hpb=dab2ea305e7c7a90671c7c1b77b3d221e26847db;p=config%2Fdotfiles.git diff --git a/bin/srsync b/bin/srsync index 28dff09..8402bb3 100755 --- a/bin/srsync +++ b/bin/srsync @@ -2,7 +2,10 @@ # rsync shortcut with options "everybody" needs. -# Copyright (C) 2011-2012 Simon Ruderich +# 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-2015 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 @@ -18,6 +21,7 @@ # along with this program. If not, see . +set -eu set -x exec rsync \ @@ -25,7 +29,10 @@ exec rsync \ --itemize-changes \ --human-readable \ --archive \ + --acls \ + --xattrs \ --hard-links \ + --sparse \ --numeric-ids \ --one-file-system \ "$@"