Hi, I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9. I'm facing a general problem with the execution of files during a transfer process. The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2. rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a file to dir2. Then, of course, it cancelles the transfer because dir1 is not a regulary file. #building file list ... #[sender] change_dir(/u/prak28) #[sender] make_file(dir1,*,0) #done #THE FILELIST #[sender] flist start=0, used=1, low=0, high=0 #[sender] i=0 /u/prak28 dir1 mode=0755 len=288 uid=3007030 gid=0 flags=5 #THE FILELIST END #send_file_list done #file list sent #send_files starting How can that happen? Anyone some ideas? Thanks a lot! Jan -- GMX Kostenlose Spiele: Einfach online spielen und Spa? haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
On Tue 09 Sep 2008, Jan Thielmann wrote:> > I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9. > I'm facing a general problem with the execution of files during a transfer process. > > The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be translated to dir2. > > rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a file to dir2. Then, of course, it cancelles the transfer because dir1 is not a regulary file.Please show the complete, exact commmand line you use to start rsync. Also a listing of the directories involved could be useful (e.g. find dir1 dir2 -ls) Paul Slootman
On Tue 09 Sep 2008, Jan Thielmann wrote:>> I'm running rsync-3.0.4 on my UNIX system. I've just updated from rsync-2.6.9. >> I'm facing a general problem with the execution of files during a transfer process. >> >> The situation: 2 Directories (dir1 and dir2) on one machine with a some files in dir1 which shall be >>translated to dir2. >> >> rsync does not correctly recognize dir1 and dir2 as directories. It tries to transfer dir1 as a file to dir2. >>Then, of course, it cancelles the transfer because dir1 is not a regulary file. >On Tue 09 Sep 2008, Paul Slootman wrote:> >Please show the complete, exact commmand line you use to start rsync. >Also a listing of the directories involved could be useful >(e.g. find dir1 dir2 -ls)The command that I used is the following: ./rsync --dry-run -avvvvv /u/prak28/dir1 /u/prak28/dir2 (quite simple) The directory listing (There are not much files, it's only for quick tests): dir1 dir1/profile.old dir1/testfile1 dir1/sourcefile.c dir2 - empty I hope that helps. Jan -- GMX Kostenlose Spiele: Einfach online spielen und Spa? haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
On Tue, Sep 09, 2008 at 01:08:57PM +0200, Jan Thielmann wrote:> #[sender] i=0 /u/prak28 dir1 mode=0755 len=288 uid=3007030 gid=0 flags=5That mode is totally bogus. For dir1 to be a dir, it should have mode 040775. If it were a regular file, it should have mode 010775. So, you should investigate if stat() is returning just 0755 in st_mode, or if the value is unusually large (and thus, truncated). One way to get an inkling should be to run: perl -e 'printf "0%o\n", (stat("dir1"))[2]' However, to really know what rsync is getting, you'd be better of either running rsync under a debugger, or adding an fprintf() into link_stat(): --- flist.c +++ flist.c @@ -224,6 +224,7 @@ int link_stat(const char *path, STRUCT_STAT *stp, int follow_dirlinks) return x_stat(path, stp, NULL); if (x_lstat(path, stp, NULL) < 0) return -1; + fprintf(stderr, "0%o\t%s\n", stp->st_mode, path); if (follow_dirlinks && S_ISLNK(stp->st_mode)) { STRUCT_STAT st; if (x_stat(path, &st, NULL) == 0 && S_ISDIR(st.st_mode)) ..wayne..
Possibly Parallel Threads
- [Bug 13587] New: Add a --dry-run way to show destination for each item
- How to replace slashes with back slashes
- rsync-ing from two locations with same filenames (at different versions)
- --compare-dest weirdness
- How to calculate the spatial correlation of several files?