Matt McCutchen wrote:
No, but --partial-dir does exactly what you want.  Use something like
--partial-dir=.rsync-partial.  When the receiving rsync dies, it will
create a directory .rsync-partial and move the partial file
from .mydb-dump.sql.bz2.MkVSHy to .rsync-partial/mydb-dumb.sql.bz2.
It seems that the problem is something like that :

the server side of rsync is still running :

[EMAIL PROTECTED] CSV_999998]# ps ax | grep -i rsync
9047 ? S 0:00 rsync --server -vcz --partial-dir .. . /upload/comm/CSV_999998/db-dump 9058 ? S 0:00 rsync --server -vcz --partial-dir .. . /upload/comm/CSV_999998/db-dump

There is a .rsync-partial directory:

[EMAIL PROTECTED] CSV_999998]# ls -al db-dump/
total 22756
drwxr-xr-x    3 teo      teo          4096 Jun 14 00:24 .
drwxr-xr-x    5 teo      teo          4096 Jun 14 00:10 ..
-rw-r--r--    1 teo      teo       1147968 Jun 13 21:33 iqmcro-dump.sql.gz
-rw------- 1 teo teo 1048576 Jun 14 00:25 .iqmcro-dump.sql.gz.327XlK
drwx------    2 teo      teo          4096 Jun 13 22:19 .rsync-partial

In the partial-dir there is nothing !

[EMAIL PROTECTED] ls -al db-dump/.rsync-partial/
total 8
drwx------    2 teo      teo          4096 Jun 13 22:19 .
drwxr-xr-x    3 teo      teo          4096 Jun 14 00:24 ..

Killing with -SIGTERM the server side rsync end is erasing the temporary file and it's not moving anything to the --partial-dir file !

I'll try with a --timeout=60 option in order to force the server side rsync end to close gracefuly. Hope it will keep the partial file in the --partial-dir ...

I'll come back with news !

Thanks for your help,
Teo

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to