Partial transferred files useless at resume, compare-dir can
help ?
Constantin Teodorescu
teo at flex.ro
Tue Jun 13 21:38:56 GMT 2006
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 :
[root at app-dsv 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:
[root at app 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 !
[root at app-CSV_999998]# 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
More information about the rsync
mailing list