Fwd: rsync 3.0.9 partial file left after CTRL-C WITHOUT using --partial

Justin T Pryzby justinp at norchemlab.com
Fri Apr 5 11:33:01 MDT 2013


Is it a new tmp file every time ??  Or is the tmpfile leftover from
some (probably not reproducible) run?  Are you sure there are no
"stuck" rsync processes running?  To be sure, you might run sudo lsof
on that tmpfile.

Justin

On Fri, Apr 05, 2013 at 12:45:39PM +0200, Paul Lopez wrote:
> Hi folks,
> 
> man page says "By default, rsync will delete any partially transferred file
> if the transfer is interrupted"
> 
> I have (reproducible) a partial file left, if I do CTRL-C
> 
> source-dir: mounted LVM XFS
> dest-dir: see source-dir
> Ubuntu 12.04.1 (LTS)
> kernel 3.2.0-39-generic
> 
> command:
> rsync -a
>  /mnt/data/\$sortin_linux/rsnapshot_stable/hourly.1/usr/include/c++/4.4/ext/pb_ds/detail/binary_heap_/
> /mnt/data/delete/
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
> rsync.c(549) [sender=3.0.9]
> 
> 
> *Source-Dir:*
> root at yaVDR:~# ls -lsa
>  /mnt/data/\$sortin_linux/rsnapshot_stable/hourly.1/usr/include/c++/4.4/ext/pb_ds/detail/binary_heap_/
>      total 108
>  4 drwxr-xr-x  2 root root 4096 Jul 24  2011 .
>  4 drwxr-xr-x 25 root root 4096 Jul 24  2011 ..
> 12 -rw-r--r--  1 root root 8618 Nov 15  2010 binary_heap_.hpp
>  8 -rw-r--r--  1 root root 4373 Nov 15  2010 const_iterator.hpp
>  8 -rw-r--r--  1 root root 4458 Nov 15  2010 const_point_iterator.hpp
>  8 -rw-r--r--  1 root root 4555 Nov 15  2010
> constructors_destructor_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2509 Nov 15  2010 debug_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2636 Nov 15  2010 entry_cmp.hpp
>  4 -rw-r--r--  1 root root 2599 Nov 15  2010 entry_pred.hpp
>  8 -rw-r--r--  1 root root 5837 Nov 15  2010 erase_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2614 Nov 15  2010 find_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2068 Nov 15  2010 info_fn_imps.hpp
>  8 -rw-r--r--  1 root root 5379 Nov 15  2010 insert_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2280 Nov 15  2010 iterators_fn_imps.hpp
>  4 -rw-r--r--  1 root root 1896 Nov 15  2010 policy_access_fn_imps.hpp
>  8 -rw-r--r--  1 root root 6300 Nov 15  2010 resize_policy.hpp
>  8 -rw-r--r--  1 root root 5311 Nov 15  2010 split_join_fn_imps.hpp
>  4 -rw-r--r--  1 root root 2441 Nov 15  2010 trace_fn_imps.hpp
> root at yaVDR:~#
> 
> 
> *Dest-Dir (last File is the partial)*
> root at yaVDR:~# ls /mnt/data/delete/ -lsa
> total 44
>  4 drwxr-xr-x 2 root root 4096 Apr  5 12:05 .
>  0 drwxrwxrwx 9 root root  133 Apr  5 12:05 ..
> 12 -rw-r--r-- 1 root root 8618 Nov 15  2010 binary_heap_.hpp
>  8 -rw-r--r-- 1 root root 4373 Nov 15  2010 const_iterator.hpp
>  8 -rw-r--r-- 1 root root 4458 Nov 15  2010 const_point_iterator.hpp
>  8 -rw-r--r-- 1 root root 4555 Nov 15  2010
> constructors_destructor_fn_imps.hpp
>  4 -rw-r--r-- 1 root root 2509 Nov 15  2010 debug_fn_imps.hpp
> * 0 -rw------- 1 root root    0 Apr  5 12:05 .entry_cmp.hpp.543CXr*
> root at yaVDR:~#
> 
> It is reproducible, any ideas? (If i do the same with huge files (1 GB) the
> partial file GETS deleted!
> 
> Thanks
> 
> lopiuh

> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list