X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=fb14eaa76a854fda26146cf4f356126078620606;hb=3f878090bcbab55fb07cca8cc840b4817c6eb7c5;hp=144f0c62d1289b75ddbd96246e72a36019bcbc9f;hpb=246e575caf357c06b97fc728cb78295ab3bd8630;p=distro-setup diff --git a/brc2 b/brc2 index 144f0c6..fb14eaa 100644 --- a/brc2 +++ b/brc2 @@ -118,9 +118,14 @@ bpush() { switch-mail-host $HOSTNAME $1 | pee cat "systemd-cat -t switch-mail-host" } lipush() { - rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \ - --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li /a/opt/{emacs,emacs-debianstable,mu} root@iankelling.org:/ - rsync -ahviSAXPH root@iankelling.org:/a/h/proposed-comments/ /a/h/proposed-comments + # note, i had --delete-excluded, but that deletes all files in --exclude-from on + # the remote site, which doesn't make sense, so not sure why i had it. + local p a + p=(/a/bin /a/exe /a/h /a/c /p/c/machine_specific/linode{,.hosts} /a/opt/{emacs,emacs-debianstable,mu}) + a="-ahviSAXPH --specials --devices --delete --relative --exclude-from=/p/c/li-rsync-excludes" + rsync $@ $a ${p[@]} root@l2.b8.nz:/ + rsync $@ $a ${p[@]} /p/c/machine_specific/li root@iankelling.org:/ + rsync $@ -ahviSAXPH root@iankelling.org:/a/h/proposed-comments/ /a/h/proposed-comments } lipushnoe() { # noe = noemacs. for running faster. rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \