X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fsrsync;h=81000fba9befde4158c02f72d1d7df79c6675489;hb=b0d6984392f748d7e4ba2064e379e6d8d4d11180;hp=28dff099731867b97c6062ee523062901dceb50f;hpb=384e4ad62817a8f5a286b7f61e5d7d4783825076;p=config%2Fdotfiles.git diff --git a/bin/srsync b/bin/srsync index 28dff09..81000fb 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-2014 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 @@ -26,6 +29,7 @@ exec rsync \ --human-readable \ --archive \ --hard-links \ + --sparse \ --numeric-ids \ --one-file-system \ "$@"