rsync and directory pollution redux

by

A little over two years ago I wrote:

The magic option is -T / –temp-dir

It turns out that this is true, but not enough. You also need –delay-updates, and you must create the tempdir first. So, something like:

ssh user@host mkdir /what/ever.tmp

rsync --delay-updates --temp-dir /what/ever.tmp file user@host:/what/ever/

ssh user@host rmdir /what/ever.tmp
Advertisements

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


%d bloggers like this: