Sending a minimal set of changes using rsync

I had a small set of changes in a local git repository; I wanted to send it to an external repository where a number of nodes could fetch it, but introducing only the smallest amount of change. This command did the trick:

rsync -zav --delete --exclude .git 
  --no-owner --no-group 
  --checksum --omit-dir-times 
  . 
  root@somewhere:/path
Advertisements

2 thoughts on “Sending a minimal set of changes using rsync

  1. For a number of combined reasons :)The main one: there was just a local change that I wanted to test: if it didn't work, I'd just abort it.The change I wanted to check was deployed on a server and then propagated through a hierarchy of distribution servers. In normal conditions it is the git repository that feeds the main DS; this time I fed it from my workstation. If anything went wrong, re-feeding it from git and redistributing the files would reset everything to the previous state.Finally, the git repository and the DS must be on different machines for reasons that I won't discuss here 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s