Can´t get it to work, even though it looked like it the first runs, but it transfered the entire file if there was any changed files inside the .tar.gz file. If there was no change at all, it transfered partial file, which fooled me to think it worked.
I am doing testing because I can´t see that this works correctly. Backups are 800 MB large and bandwidth is expensive here.
What I have done:
Created a file named test.txt with a lot of text. I also added the gzip rsyncable option.
Run #1
Run it first one time. The entire files are transfered.
gzip="--rsyncable" tar zcvf test.tar.gz testfile.txt
Run #2
Now, just run gzip="--rsyncable" tar zcvf test.tar.gz testfile.txt again, without any change to the file. Partly transfered file, which I think is correct, since the gzip process can change som meta-data I guess. You see the log below.
Run #3
Edit the testfile.txt, added some lines with text.
Entire file transfered. This should not happen.
LOG OUTPUT
RUN #2
---------------------------------
test.tar.gz
2762 100% 2.63MB/s 0:00:00 (1, 100.0% of 1)
Number of files: 1
Number of files transferred: 1
Total file size: 2762 bytes
Total transferred file size: 2762 bytes
Literal data: 700 bytes
Matched data: 2062 bytes
File list size: 34
Total bytes sent: 60
Total bytes received: 806
sent 60 bytes received 806 bytes 133.23 bytes/sec
total size is 2762 speedup is 3.19
RUN #3
---------------------------------
test.tar.gz
2767 100% 2.64MB/s 0:00:00 (1, 100.0% of 1)
Number of files: 1
Number of files transferred: 1
Total file size: 2767 bytes
Total transferred file size: 2767 bytes
Literal data: 2767 bytes
Matched data: 0 bytes
File list size: 34
Total bytes sent: 60
Total bytes received: 2861
sent 60 bytes received 2861 bytes 449.38 bytes/sec
total size is 2767 speedup is 0.95