Need help getting rsync working...
I have so far been unable to get rsync to work properly in a test setup. Does anyone have any ideas? Both PCs are running RedHat 7.2. The Server: IP Address 192.168.0.202 Server Name: RH72TB hosts.allow ALL: 192.168.0.201 rsyncd.conf: [testmodule] path = /tmp The Client: IP Address 192.168.0.201 hosts file: 192.168.0.202RH72TB I have run rsync --daemon on the server. There is a file called sheepb.jpg in the /tmp directory of the Client that has been chmod-ed to 777. I am logged in with the same username and password on both of the PCs. On the Client, I run: rsync /tmp/sheepb.jpg RH72TB:tmp/ Result after 30 seconds: RH72TB: Connection refused unexpected EOF in read_timeout There is nothing in /var/log/messages. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
ssh + permissions
Hello, If I sync a filesystem using ssh to an remote server, all filepermissions on the remote site are gone. Is there a chance to preserve the permissions using ssh ? Thanks C. Zimmermann -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: ssh + permissions
Sure. Don't tell rsync to preserve permissions. This precludes the use of the -p, and --permsoptions, and the -a, and --archive options, which imply them. If your wording means that the permissions on the source are not appearing on the destination, change precludes to requires and and to or in the sentence above. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), .\n ' There are some who call me Tim? C.Zimmermann [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/12/2002 05:01 AM To: [EMAIL PROTECTED] cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject:ssh + permissions Classification: Hello, If I sync a filesystem using ssh to an remote server, all filepermissions on the remote site are gone. Is there a chance to preserve the permissions using ssh ? Thanks C. Zimmermann -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
AW: ssh + permissions
The command I am using is: rsync -avx --hard-links --links --ignore-errors --perms --devices --times --stats --progress -e ssh -u / rsync@host:/dir and the permissions on the source are not appearing on the destination and the destination ssh-account has no root-rights. Should it work like this ? C.Zimmermann Sure. Don't tell rsync to preserve permissions. This precludes the use of the -p, and --permsoptions, and the -a, and --archive options, which imply them. If your wording means that the permissions on the source are not appearing on the destination, change precludes to requires and and to or in the sentence above. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,2545 1,25970), .\n ' There are some who call me Tim? C.Zimmermann [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/12/2002 05:01 AM To: [EMAIL PROTECTED] cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject:ssh + permissions Classification: Hello, If I sync a filesystem using ssh to an remote server, all filepermissions on the remote site are gone. Is there a chance to preserve the permissions using ssh ? Thanks C. Zimmermann -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart- questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Which archive to get?
Hi! In view of recent zlib problems, which tar.gz should I get? README for 2.5.3 says, that this problem is fixed, however, the file which is available for download at http://va.samba.org/ftp/rsync/ is called rsync-2.5.3-compression-broken.tar.gz So, is this archive ok, or something is still broken there? Best regards, Jurij. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Queston on using the delete option
You brought up a very good point which described what rsync can and can not do. Because of the robustness of this application, we are trying to find a way to use rsync and replacing our current primitive system which uses tar and send the data over a small pipe. Since my last posting, I have thought about not using the --deleteoption and instead, gather a list of files to be deleted from our internal publishing/staging system and remove them separately. Once again, thank you much for you comments and suggestions. Rsync is the best replicating application I have seen so far. It's much better than rdist and even some of the commercial applications. A Big thanks to the rsync development community. Regards, Andy Lam [EMAIL PROTECTED] Xilinx Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] Mon, 11 Mar 2002 16:50:24 -0700 Previous message: Compiling on a Cobalt RaQ1 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Through what method might rsync determine whether a file on the destination is from the source and since deleted, or created on the destination, when even you have no way of knowing. You would need a complete history of both filesystems, every create, rename, move, insert, delete, append, and unlink, in the correct order, in order to know which side a file came from, and in the case of duplicate filenames being created on each end, which one is the correct one. Actually, in that case, you'd also need to know the intentions of the users creating the files. This is not information that can be gathered by examining the state of the two filesystems, which is all rsync can do.Your application appears to call more for a shared filesystem scheme. Surely you're not mirroring or backing up to a location being locally changed in ways even you don't know. It can do only what you tell it to do. Tim Conway [EMAIL PROTECTED] 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), .\n ' There are some who call me Tim? Andy Lam [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 03/11/2002 10:43 AM To: [EMAIL PROTECTED] cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject:Question on using rsync delete option Classification: Greeting. I'm so sorry that I launched the previous email by mistake and before I had a chance to complete it. Here is the summary of my previous question. We would like to use rsync to mirror the contents from our internal staging server ( A) to the external website (B) at our ISP without delete some existing files on B. On server B, we have applications that creates temporary lock files and customer upload files which I have no ideas what to exclude.The --exclude option would be my last resort, but I just want to know if there are better alternatives. If I use the --delete option in rsync, all the temporary files at the destination B will be deleted. In contrast, if I don't use the --delete option, the destination's temporary files will be intact, but any files removed from the source, A will not be deleted at the destionation B. It seems to me that the --delete option is either all or none with the --exclude option as exception. Maintainning a static list of exclude files would be very difficult and cumbersome for future maintainance. I have gone through the FAQ as far back as 2000, but couldn't find any similar question. Would appreciate very much if someone could please give me some pointers. Attached is the rsync command line that I use: rsync --verbose --update --progress --stats --compress --ignore-existing --delete --delete-after --recursive --times --perms --links --dry-run --rsh=/usr/local/bin/ssh --rsync-path /var/tmp/rsync /export/volx/documents/ destination_login@hostB:/export/volx (notice I left dry-run there for testing) Thank you in advance for your help . Andy Lam [EMAIL PROTECTED] -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Which archive to get?
On Tue, Mar 12, 2002 at 04:44:11PM +0100, Jurij Smakov wrote: In view of recent zlib problems, which tar.gz should I get? README for 2.5.3 says, that this problem is fixed, however, the file which is available for download at http://va.samba.org/ftp/rsync/ is called rsync-2.5.3-compression-broken.tar.gz So, is this archive ok, or something is still broken there? It's broken. Either get rsync-2.5.4pre1.tar.gz from the preview directory, get rsync-2.5.3-compression-broken.tar.gz and don't use the -z option, or wait a few days (?) until 2.5.4 is released. Scott. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: [PATCH][RFC] space saving incrementals
On Mon, Mar 11, 2002 at 11:32:11AM -0800, jw schultz wrote: On Mon, Mar 11, 2002 at 12:41:07PM -0600, Dave Dykstra wrote: On Fri, Mar 08, 2002 at 03:05:14PM -0800, jw schultz wrote: On Fri, Mar 08, 2002 at 03:45:04PM -0600, Dave Dykstra wrote: I like link-dest, and the - for exclude-from/include-from was already something I was planning to add one of these days along with the --files-from option I still plan to write, but --compare-perms confuses me. Can you give examples of when you need it? - Dave Dykstra sequence of commands: admin# rsync /project /vault/monday admin# chmod 666 /project/somefile admin# chown bin /project/someotherfile admin# rsync --link-dest=/vault/monday /project /vault/tuesday Now /vault/monday/somefile has perms of 666 and someotherfile is owned by bin. I cannot restore the perms from /vault/monday. That info is lost. /vault/monday no longer is an accurate representative of what existed when it was created. With --compare-perms somefile and someotherfile will not be linked between monday and tuesday even though the contents haven't changed. compare-perms only makes sense when you are using link-dest. Why not just always do --compare-perms functionality with --link-dest? I'd rather not have more hard-to-explain options if they can be avoided. - Dave Dykstra I personally wouldn't mind. --compare-perms existed before --link-dest. I started by doing a cp -al before the rsync but that seemed wastefull especially with how little it took to add the --link-dest onto --compare-dest. However, i suspect that some others would gripe at rsync --link-dest not linking if all that changed was file meta-data. I can't imagine anybody griping at that. I could be wrong but i think --link-dest without a seperate --compare-perms or its inverse might cause more confusion although users could leave off -pgo if they don't care about the meta-data. Right. This may become more of an issue with ACLs and other extended file attributes. But that is at least another year in the future. By the way, really appreciate rsync. I tried this with rdist because it didn't have the permissions problem but the performnce stank. Monitoring it i found the slowdown wasn't bandwith, disk or CPU. Rsync even did the initial transfer (nothing on dest) at over 10x the speed with the limitation being the 350MHz cpu on the backup server. - Dave Dykstra -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Need help getting rsync working...
To use the rsync --daemon, you need to use two colons after the server name. The next problem you'll probably run into is that you'll need read only = no in rsyncd.conf. - Dave Dykstra On Tue, Mar 12, 2002 at 06:26:12PM +1000, Rsync mail Account wrote: I have so far been unable to get rsync to work properly in a test setup. Does anyone have any ideas? Both PCs are running RedHat 7.2. The Server: IP Address 192.168.0.202 Server Name: RH72TB hosts.allow ALL: 192.168.0.201 rsyncd.conf: [testmodule] path = /tmp The Client: IP Address 192.168.0.201 hosts file: 192.168.0.202RH72TB I have run rsync --daemon on the server. There is a file called sheepb.jpg in the /tmp directory of the Client that has been chmod-ed to 777. I am logged in with the same username and password on both of the PCs. On the Client, I run: rsync /tmp/sheepb.jpg RH72TB:tmp/ Result after 30 seconds: RH72TB: Connection refused unexpected EOF in read_timeout There is nothing in /var/log/messages. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Patch: --drop-suid Remove suid/sgid from target files
If we would add an option to do that functionality, I would vote for one that was more general which could mask off any set of permission bits and possibly add any set of bits. Perhaps a chmod-like syntax if it could be implemented simply. - Dave On Tue, Mar 12, 2002 at 10:28:43PM +1100, Scott Howard wrote: The attached patch adds an option --drop-suid which caused rsync to drop setuid/setgid permissions from the destination files. ie, even if the source file is setuid, the target file will not be. Added as we want to rsync the same files to machines both inside and outside our firewalls. For machines inside the firewall some files should be suid, for machines outside the firewalls they should not be. This option allows us to maintain one source tree and set if the target will be suid or not using this option. Patch also available at http://www.docbert.org/outgoing/rsync-dropsuid.patch Scott. diff -r --unified rsync-2.5.4pre1-orig/flist.c rsync-2.5.4pre1/flist.c --- rsync-2.5.4pre1-orig/flist.c Thu Feb 14 05:30:27 2002 +++ rsync-2.5.4pre1/flist.c Tue Mar 12 21:57:27 2002 -36,7 +36,9 extern int verbose; extern int do_progress; extern int am_server; +extern int am_sender; extern int always_checksum; +extern int drop_suid; extern int cvs_exclude; -714,6 +716,10 #ifdef HAVE_STRUCT_STAT_ST_RDEV file-rdev = st.st_rdev; #endif + + if (am_sender drop_suid S_ISREG(st.st_mode)) { + file-mode = ~(S_ISUID | S_ISGID); + } #if SUPPORT_LINKS if (S_ISLNK(st.st_mode)) { diff -r --unified rsync-2.5.4pre1-orig/options.c rsync-2.5.4pre1/options.c --- rsync-2.5.4pre1-orig/options.cThu Feb 28 09:49:57 2002 +++ rsync-2.5.4pre1/options.c Tue Mar 12 22:01:45 2002 -31,6 +31,7 int preserve_uid = 0; int preserve_gid = 0; int preserve_times = 0; +int drop_suid = 0; int update_only = 0; int cvs_exclude = 0; int dry_run=0; -199,6 +200,7 rprintf(F, -g, --group preserve group\n); rprintf(F, -D, --devices preserve devices (root only)\n); rprintf(F, -t, --times preserve times\n); + rprintf(F, --drop-suid remove setuid/setgid permissions from destination\n); rprintf(F, -S, --sparsehandle sparse files efficiently\n); rprintf(F, -n, --dry-run show what would have been transferred\n); rprintf(F, -W, --whole-filecopy whole files, no incremental checks\n); -304,6 +306,7 {perms, 'p', POPT_ARG_NONE, preserve_perms}, {owner, 'o', POPT_ARG_NONE, preserve_uid}, {group, 'g', POPT_ARG_NONE, preserve_gid}, + {drop-suid,0, POPT_ARG_NONE, drop_suid}, {devices, 'D', POPT_ARG_NONE, preserve_devices}, {times, 't', POPT_ARG_NONE, preserve_times}, {checksum,'c', POPT_ARG_NONE, always_checksum}, diff -r --unified rsync-2.5.4pre1-orig/rsync.yo rsync-2.5.4pre1/rsync.yo --- rsync-2.5.4pre1-orig/rsync.yo Thu Feb 7 08:20:49 2002 +++ rsync-2.5.4pre1/rsync.yo Tue Mar 12 22:08:42 2002 -236,6 +236,7 -g, --group preserve group -D, --devices preserve devices (root only) -t, --times preserve times + --drop-suid remove setuid/setgid permissions from destination -S, --sparsehandle sparse files efficiently -n, --dry-run show what would have been transferred -W, --whole-filecopy whole files, no incremental checks -440,6 +441,9 cause the next transfer to behave as if it used -I, and all files will have their checksums compared and show up in log messages even if they haven't changed. + +dit(bf(--drop-suid)) This option tells rsync to remove setuid and setgid +permissions from files on the destination. dit(bf(-n, --dry-run)) This tells rsync to not do any file transfers, instead it will just report the actions it would have taken. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Simplest script to backup many Linux servers
Okay, I've been lurking on this list for several weeks and have finally gotten rsync to work well when transferring files from one box to another. It is really great for passing lots of files from one machine to another, i.e. ripped MP3 to my home Linux machine, as one example. Now I am ready to take the next big step. I have a large 1.5 terabyte server from Raidzone that I have NFS mounted on my main backup Linux machine. The backup machine is running Red Hat 7.2 with the latest rsync RPM version they recommend, rsync-2.4.6-10. Normally, I use dump/restore to backup all 30+ Linux machines here to tape. I'd rather use rsync to move everything or just the important files on each server to the mounted Raidbackup machine. My questions is, what is the best way to do this? or what would be the simplest script. I tried the following script; # Backup all partitions and files #!/bin/sh rsync -av * 192.168.10.10:/export3/mailworks.ksl.com/ but it seems to hang quite a bit as it generates the necessary list. I have created directories for each server name in the /export3/ directory and to a limited extent it works. But it seems to require some more tweaking and I'm rather at a loss. I can backup the contents of an individual user's directory with no problem, but I'd like to back it all up or rather mirror the entire machine on the raidzone backup box. Here is how I have it mounted. [root@backup mailworks.ksl.com]# df -h FilesystemSize Used Avail Use% Mounted on 64.147.130.xx:/home/ksl 1.2T 1.1G 1.1T 1% /export3 Can anyone suggest a better script for copying things over? or for improving my method of running rsync? Thanks much. Kerry -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Patch: --drop-suid Remove suid/sgid from target files
On 12 Mar 2002, Dave Dykstra [EMAIL PROTECTED] wrote: If we would add an option to do that functionality, I would vote for one that was more general which could mask off any set of permission bits and possibly add any set of bits. Perhaps a chmod-like syntax if it could be implemented simply. I think that would be good too. For example, people uploading files to a web server might like to say rsync -avzP --chmod a+rX ./ sourcefrog.net:/home/www/sourcefrog/ Ideally the patch would implement as many of the gnu chmod semantics as possible. I think the mode parser should be a separate function that passes back something like (mask,set) description to the rest of the program. For bonus points there would be a test case for the parser. -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: rsync over commercial SSH?
On 12 Mar 2002, Rusty Carruth [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I get the following error running rsync 2.5.2 on AIX 4.3 in combination with SSH Secure Shell 2.3.0. rsync -e ssh myuserid@localhost:/tmp myuserid's password: /bin/ksh: rsync: not found. unexpected EOF in read_timeout ... Note: my PATH is set to include /usr/local/bin which is where rsync and ssh are installed. rsync was installed from the binary distribution. I think when you use F-Secure SSH your path is not being set, and therefore rsync is not found. You might test this using something like ssh localhost 'echo $PATH' A quick workaround is to tell rsync where the remote copy of rsync is kept: rsync -e ssh --rsync-path /usr/local/bin/rsync myuserid@localhost:/tmp -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Ich bin z. Zt. im Urlaub
Ich werde ab 11.03.2002 nicht im Büro sein. Ich kehre zurück am 25.03.2002. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. In dringenden Fällen wenden Sie sich bitte an Herrn Heinz Maier, [EMAIL PROTECTED] . (0211/61078-50) -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: [PATCH][RFC] space saving incrementals
On Mon, Mar 11, 2002 at 12:41:07PM -0600, Dave Dykstra wrote: On Fri, Mar 08, 2002 at 03:05:14PM -0800, jw schultz wrote: On Fri, Mar 08, 2002 at 03:45:04PM -0600, Dave Dykstra wrote: I like link-dest, and the - for exclude-from/include-from was already something I was planning to add one of these days along with the --files-from option I still plan to write, but --compare-perms confuses me. Can you give examples of when you need it? - Dave Dykstra sequence of commands: admin# rsync /project /vault/monday admin# chmod 666 /project/somefile admin# chown bin /project/someotherfile admin# rsync --link-dest=/vault/monday /project /vault/tuesday Now /vault/monday/somefile has perms of 666 and someotherfile is owned by bin. I cannot restore the perms from /vault/monday. That info is lost. /vault/monday no longer is an accurate representative of what existed when it was created. With --compare-perms somefile and someotherfile will not be linked between monday and tuesday even though the contents haven't changed. compare-perms only makes sense when you are using link-dest. Why not just always do --compare-perms functionality with --link-dest? I'd rather not have more hard-to-explain options if they can be avoided. - Dave Dykstra New patch against current CVS. Adds --link-dest with compare-perms functionality and adds the - for (ex|in)clude-from. made with cvs diff -u -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt Index: exclude.c === RCS file: /cvsroot/rsync/exclude.c,v retrieving revision 1.42 diff -u -r1.42 exclude.c --- exclude.c 18 Feb 2002 19:10:28 - 1.42 +++ exclude.c 13 Mar 2002 00:25:45 - @@ -219,8 +219,14 @@ int fatal, int include) { struct exclude_struct **list=list1; - FILE *f = fopen(fname,r); + FILE *f; char line[MAXPATHLEN]; + + if (strcmp(fname, -)) { + f = fopen(fname,r); + } else { + f = fdopen(0, r); + } if (!f) { if (fatal) { rsyserr(FERROR, errno, Index: generator.c === RCS file: /cvsroot/rsync/generator.c,v retrieving revision 1.33 diff -u -r1.33 generator.c --- generator.c 7 Feb 2002 16:36:12 - 1.33 +++ generator.c 13 Mar 2002 00:25:45 - @@ -42,6 +42,7 @@ extern int always_checksum; extern int modify_window; extern char *compare_dest; +extern int link_dest; /* choose whether to skip a particular file */ @@ -51,6 +52,15 @@ if (st-st_size != file-length) { return 0; } + if (link_dest) { + if((st-st_mode ~_S_IFMT) != (file-mode ~_S_IFMT)) { + return 0; + } + if (st-st_uid != file-uid || st-st_gid != file-gid) { + return 0; + } + } + /* if always checksum is set then we use the checksum instead of the file time to determine whether to sync */ @@ -352,6 +362,17 @@ statret = -1; if (statret == -1) errno = saveerrno; +#if HAVE_LINK + else if (link_dest) + if (do_link(fnamecmpbuf, fname) != 0) { + if (verbose 0) + rprintf(FINFO,link %s = %s : %s\n, + fnamecmpbuf, + fname, + strerror(errno)); + fnamecmp = fnamecmpbuf; + } +#endif else fnamecmp = fnamecmpbuf; } Index: options.c === RCS file: /cvsroot/rsync/options.c,v retrieving revision 1.80 diff -u -r1.80 options.c --- options.c 27 Feb 2002 22:49:57 - 1.80 +++ options.c 13 Mar 2002 00:25:47 - @@ -105,6 +105,7 @@ int quiet = 0; int always_checksum = 0; int list_only = 0; +int link_dest = 0; char *batch_prefix = NULL; @@ -224,6 +225,7 @@ rprintf(F, --modify-window=NUM Timestamp window (seconds) for file match (default=%d)\n,modify_window); rprintf(F, -T --temp-dir=DIR create temporary files in directory DIR\n); rprintf(F, --compare-dest=DIR also compare destination files relative to DIR\n); + rprintf(F, --link-dest=DIR create hardlinks to DIR for unchanged +files\n); rprintf(F, -P equivalent to --partial --progress\n); rprintf(F, -z, --compress compress file data\n);
Re: ssh + permissions
On 12 Mar 2002, C.Zimmermann [EMAIL PROTECTED] wrote: The command I am using is: rsync -avx --hard-links --links --ignore-errors --perms --devices and the permissions on the source are not appearing on the destination and the destination ssh-account has no root-rights. Perhaps you mean that the file ownership is not the same on the destination machine? On most Unix systems, only root can change the ownership of a file. rsync cannot get around this restriction. So if you need to transfer files owned by multiple users and have the permissions be the same, then you must make the destination ssh account be root. Similarly only root can create device nodes. --devices cannot do anything unless the destination runs as root. Best regards, -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Compile error
The patch Jos gave to me works successfully, I can compile rsync2.5.3 on Solaris5.5.1 and Solaris5.7. Also, I don't see any error after I tried to run new rsync between 5.5.1 and 5.8. Thanks a lot to Jos. Jennifer Delivered-To: [EMAIL PROTECTED] From: Jos Backus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Compile error Mail-Followup-To: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.3.27i X-BeenThere: [EMAIL PROTECTED] X-Mailman-Version: 2.0.8 List-Help: mailto:[EMAIL PROTECTED]?subject=help List-Post: mailto:[EMAIL PROTECTED] List-Subscribe: http://lists.samba.org/mailman/listinfo/rsync, mailto:[EMAIL PROTECTED]?subject=subscribe List-Id: rsync user list rsync.lists.samba.org List-Unsubscribe: http://lists.samba.org/mailman/listinfo/rsync, mailto:[EMAIL PROTECTED]?subject=unsubscribe List-Archive: http://lists.samba.org/pipermail/rsync/ Date: Mon, 11 Mar 2002 22:10:50 -0801 On Mon, Mar 11, 2002 at 08:45:44PM -0800, Jennifer Lu wrote: I tried to compile rsync2.5.3 on Solaris5.7, and I still got the same errors as Solaris5.8, can you please help me to look at the problem? I got error messages: Configure was run successfully, then I ran make, I got: batch.c, line 408: operands have incompatible types: pointer to unsigned long : pointer to unsigned int cc: acomp failed for batch.c *** Error code 2 make: Fatal error: Command failed for target `batch.o' Does this patch help? Index: batch.c === RCS file: /cvsroot/rsync/batch.c,v retrieving revision 1.13 diff -u -r1.13 batch.c --- batch.c 6 Feb 2002 21:20:48 - 1.13 +++ batch.c 12 Mar 2002 06:16:49 - @@ -396,7 +396,7 @@ struct sum_struct *s) { size_t i; -unsigned int int_zero = 0; +size_t int_zero = 0; extern int csum_length; fdb_open = 1; -- Jos Backus _/ _/_/_/Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/_/ [EMAIL PROTECTED] _/_/ _/_/_/use Std::Disclaimer; -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html Jennifer -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
no files are transferred?
Hi Julie, I am setting up rsync via the server method and am having a problem with syncing from a local server to the remote server. The command lists the files that should be transferred but they never are. However if I am on the remote machine and request an rsync from the local then this works. ie: # rsync -avz /local/fs remote::test This is not working, it lists the files that are to be transferred but they are not received on the server remote in the test user. # rsync -avz remote:test /local/fs This is working. Do you have any advice on the matter? Basically I want the local machine to put files on the remote system, I do not want the remote system to get the files. Please check that you set the read only = no option on the server's rsyncd.conf. To promote security, the default setting is read-only. Also please look in the log file on the server. What version of rsync and platform are you using? -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Need help getting rsync working...
Thanks for your reply Martin. Here are the results: [root@Linuxstation tmp]# rsync sheepb.jpg RH72TB::testmodule /tmp link_stat RH72TB::testmodule : No such file or directory Regards, Brad - Original Message - From: Martin Pool [EMAIL PROTECTED] To: Brad [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:53 PM Subject: Re: Need help getting rsync working... On 13 Mar 2002, Brad [EMAIL PROTECTED] wrote: Thanks for the reply Dave. I have added your recommended, read only = no to rsyncd.conf and put 2 colons as you suggested, and now I get: rsync /tmp/sheepb.jpg RH72TB::tmp/ That should be testmodule -- the first word after the quadraspot is a module name, followed by a path within the module. -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Need help getting rsync working...
Thanks for your reply Greg. As you suggested, I have typed in: rsync /tmp/sheepb.jpg RH72TB::testmodule/ and it just does a CR-LF with no errors, but the file is not on the server hard drive. I wonder where it has gone? :-)) Regards, Brad - Original Message - From: Greg Burley [EMAIL PROTECTED] To: Brad [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Dave Dykstra [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:51 PM Subject: Re: Need help getting rsync working... hi Brad, Since dave is probably sleeping right now and I am in avoidance mode Brad [EMAIL PROTECTED] writes: rsync /tmp/sheepb.jpg RH72TB::tmp/ @ERROR: Unknown module 'tmp' From your earlier rsync.conf the module name is testmodule so try $ rsync /tmp/sheepb.jpg RH72TB::testmodule/ If you want to lst the the modules available try rsync /tmp/sheepb.jpg RH72TB:: Should I be able to see the server listening on Port 873? its there but netstat has kindly written in the text for 873 from the /etc/services file Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 *:rsync *:* LISTEN hth greg -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: Need help getting rsync working...
On 13 Mar 2002, Brad [EMAIL PROTECTED] wrote: Thanks for your reply Greg. As you suggested, I have typed in: rsync /tmp/sheepb.jpg RH72TB::testmodule/ and it just does a CR-LF with no errors, but the file is not on the server hard drive. I wonder where it has gone? :-)) Now try rsync -avvP /tmp/sheepb.jpg RH72TB::testmodule/ The first one probably worked, but the second will show you what's happening. -- Martin -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
delete files from source after download.
hi, i am into a client server programming. in that it is absolutely necessary for the rsync server to be installed at the client and rsync client at the server. The server(rsync client) needs to download from the client(rsync server) and then delete the source file at the rsync server. right now i am doing this as, download the file and rsync back a zero byte file to the source. is there an atomic operation to delete the file at source after client downloads it. thanking you. -- regards, hari -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html