Re: --include=PATTERN not working!
On Mon, Nov 17, 2003 at 09:14:46PM -, Haisam K. Ido wrote: but I do have the recursive option on -rvaz Then you procede to exclude all subdirs not matching *.lis READ the EXCLUDE PATTERNS section a few more times and/or read the list archives. On Fri, Nov 14, 2003 at 10:02:56PM -, Haisam K. Ido wrote: Why does'nt this work? rsync -rvaz --include=*.lis --exclude='*' [EMAIL PROTECTED]:/path/ . receiving file list ... done client: nothing to do: perhaps you need to specify some filenames or the --recursive option? Looks like it is working perfectly. You ask it to only rsync file matching *.lis only if they are directly in the directory specified but not in any subdirs. There aren't any so there is nothing to do. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: rsync --daemon and logfile that can't be created
On Mon, Nov 17, 2003 at 01:35:09PM +0100, Paul Slootman wrote: If the rsyncd.conf has a line such as: log file = /var/log/rsync/log and /var/log/rsync doesn't exist or isn't a directory (or the log file can't be opened for any other reason), then there's no warning whatsoever, as rsync forks itself into the background before checking the config, opening the log file, etc. Worse still, it gets a SIGSEGV, and dumps core. Here's a strace from a fairly recent CVS: 15154 umask(022)= 0 15154 open(/var/log/rsync/log, O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = -1 ENOTDIR (Not a directory) 15154 umask(0) = 022 15154 umask(022)= 0 15154 open(/var/log/rsync/log, O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = -1 ENOTDIR (Not a directory) 15154 umask(0) = 022 15154 getpid() = 15154 15154 time(NULL)= 1069070906 15154 --- SIGSEGV (Segmentation fault) @ 0 (0) --- 15154 +++ killed by SIGSEGV +++ 15153 --- SIGCHLD (Child exited) @ 0 (0) --- 15153 waitpid(-1, [WIFSIGNALED(s) WTERMSIG(s) == SIGSEGV WCOREDUMP(s)], WNOHANG) = 15154 15153 waitpid(-1, 0xb864, WNOHANG) = -1 ECHILD (No child processes) 15153 sigreturn() = ? (mask now []) 15153 exit_group(0) = ? 1) It's a bother that it first daemonizes itself and then checks the config etc., giving no feedback whatsoever that it's not running. True. 2) core dumps are never good :-( Also true. Here'a a proposed patch to fallback to syslog if opening the log file fails: Much better would be to test the status of open() in openlog and if there is an error kick out a message and exit. If log_init() were called just a little earlier in clientserver.c:daemon_main(), specifically before closing stderr then the error message could be sent to stderr. That would be much better, and simpler than assuming syslog is available as a fallback. Perhaps someone more familiar with the daemon code could consider this. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Special files and Cygwin
On Fri, Nov 14, 2003 at 09:08:12AM -0800, Pier Paolo Glave wrote: Hi, I'm trying to use rsync to backup a linux filesystem to a windows server. I followed the hints that I found at http://www.tiarnan.phlegethon.org/rsyncntdoc.html to run rsync on windows, and it works quite well. The only problem I found is that windows is not able to backup linux special files (/dev/*). I don't know if the problem is in the way rsync has been compiled, or simply in the fact that mknod.exe is missing. Ultimately the problem is that Windows doesn't have special files. Not in the OS nor in the filesystems. The fact that there is no mknod.exe is irrelevant though indicative. UNIX/Linux and Windows have completely different semantics so there will be some loss of metadata going either direction. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: How to change the rsync default tcp port 873 to some other port
On Wed, Nov 12, 2003 at 02:59:27PM +0800, Sethu Subramanian Rengarajan wrote: Hi, I would like to change the rsync default port to something other than 873. I changed in the rsyncd.conf file. But, still it listens to 873 only. How to fix this issue. Given that rsyncd.conf doesn't have a port parameter that is no suprise. You must specify the port on the rsync command line when launching the daemon. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Special files and Cygwin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pier Paolo Glave wrote: | The only problem I found is that windows is not able to backup | linux special files (/dev/*). I suggest to tar them up, in order to preserve full infos. If you avoid compression of the tar file or use gzip with the option that resets the dictionary more often, you can rsync them quite as well, AFAIK (never tried it). - -- Lapo 'Raist' Luchini [EMAIL PROTECTED] (PGP X.509 keys available) http://www.lapo.it (ICQ UIN: 529796) -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAj+5/u8ACgkQaJiCLMjyUvu0XgCg4l2oHNlxEHWzbF1SPEtC5dB0 3o4AnR6lDlwvNqRuwriUtqxC6YmfcMgf =6QZI -END PGP SIGNATURE- -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
IPv6 literal addresses on command line
Hello all, Just to get some er, 'closure' on this, if you will (spot the thinly disguised, desperate repost)... To summarise: no-one is currently using rsync over IPv6 on linux. I superficially applied a patch suggested by a list member and while this fixed the problem of correctly parsing the IPv6 literal address, linux was still unable to find the host and appeared, unlike BSD, to ignore the /etc/hosts file. Several items are mentioned in the TODO file with regard to these issues so I suppose that, short of myself or someone else finding the time to engross themselves in the rsync code, this is the way it shall remain. Cheers, cam __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: IPv6 literal addresses on command line
On Tue 18 Nov 2003, cam wrote: To summarise: no-one is currently using rsync over IPv6 on linux. I just tried a simple test, and it sure seems to work. For lack of an rsync server that talks IPv6 and wants to talk to me, I can't actually verify the working. However, I see that it initiates an IPv6 connection: $ strace -o strace.out -f rsync bla www.x.net::bla excerpt from strace.out: 3006 recvfrom(3, \f}\201\200\0\1\0\1\0\2\0\2\3www\5x\3net\0\0\1\0\1..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr(192.168.1.2)}, [16]) = 121 3006 close(3) = 0 3006 socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = 3 3006 connect(3, {sa_family=AF_INET6, sin6_port=htons(873), inet_pton(AF_INET6, 3ffe::2000:1820::2, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = ? ERESTARTSYS (To be restarted) (hostname and IPv6 address mangled a bit to protect the innocent.) unable to find the host and appeared, unlike BSD, to ignore the /etc/hosts file. I don't have any IPv6 addresses in my hosts file... Paul Slootman -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Windows XP date/timestamp issues
Hello all! Long time listener, first time caller. I have an issue I hope someone has seen before. I have a NetWare6 server running RSYNC server, and a LINUX box running RSYNC client from CRON to get the files from the NetWare server. The command is rsync -qrtu --delete --exclude (some excludes here)and all works well. Except... Whenever a Windows XP system opens a file on the NW server, and then saves the changes, the date/time stamp doesn't change, and RSYNC (with the switches I'm using) doesn't copy the delta over. Mac OSX clients and files ftp-d in don't have this problem, nor do XP edited files saved into different directories or with different names (no surprise there). Just when they're opened and saved with the same name in the same directory. M$'s knowledge base, Novell's, and Google have turned up nothing useful. I've checked client caching, XP settings, NetWare NSS3 volume settings, everything I can think of. Now, I have RTFM, tried other switches, and I either get a process that runs constantly, or the same behavior. I'm at a loss and hoping someone will be generous with advice. Please tell me my switch interpretation (from rsync.samba.org/ftp/rsync/rsync.html mainly) is the issue. :) Thanks for your time... Gavin Durman --- Xavier University Systems Administrator === [EMAIL PROTECTED] (513)745-1905http://staff.xu.edu/~durman I'm not tense, just terribly, terribly alert. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: --include=PATTERN not working!
Thank you. I got it. It should have been: rsync -rvaz --include=*.lis --include=*/ --exclude='*' [EMAIL PROTECTED]:/path/ . On Mon, Nov 17, 2003 at 09:14:46PM -, Haisam K. Ido wrote: but I do have the recursive option on -rvaz Then you procede to exclude all subdirs not matching *.lis READ the EXCLUDE PATTERNS section a few more times and/or read the list archives. On Fri, Nov 14, 2003 at 10:02:56PM -, Haisam K. Ido wrote: Why does'nt this work? rsync -rvaz --include=*.lis --exclude='*' [EMAIL PROTECTED]:/path/ . receiving file list ... done client: nothing to do: perhaps you need to specify some filenames or the --recursive option? Looks like it is working perfectly. You ask it to only rsync file matching *.lis only if they are directly in the directory specified but not in any subdirs. There aren't any so there is nothing to do. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
daily back (incremental backup )
Hello, I have Novell Netware File server. Which is mounted as /mnt/novell on one of my Linux m/c. I want to take backup of Novell Server to my Linux m/c. I need everyday backup of Novell server to be taken on Linux m/c. I don't want full backup every day but I need an incremental backup. I do not want to delete any old directory or files. I have taken script from rsync examples, and made changes. . But it doesn`t work can someone help me. #directory to backup (source) /mnt/novell # novell server mounted everyday just ## for backup purpose #directory on which backup back to be taken(destination) BSERVER=/home/bipin/ #sub-directory date wise for everyday's incremental backup??? BACKUPDIR=`date +%Y%m%d` OPTS=--backup --backup-dir=/home/bipin/$BACKUPDIR -a rsync $OPTS $BDIR $BSERVER/current above command creates directory current but doesnot create any sub-directory backup-dir (date wise where only latest updated or newly created files get backedup). Can I get some guidance. Thanking you in advance. Bipin __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: daily back (incremental backup )
On Tue, 2003-11-18 at 13:21, Bipinchandra Ranpura wrote: Hello,... I have taken script from rsync examples, and made changes. . But it doesn`t work can someone help me. ... Here is my script. It copies $1 to $2/date/ and deletes the mod(today, $3) version from $3. The clean up scheme leaves me with some old, more more recent copies. It is fast. I mount windows machines vai smb and after the first backup, can backup a whole 1.3GB machine in just a few minutes. The results are similar to faubackup, without the reliance on inode numbers. There is a directory for each day, but files are only copied when changed and unchanged files are all hard links to the same file. I think storeBackup works like this (just found it yesterday). #!/bin/sh src=$1 dest=`dirname $2/dummy` count=$3 shift shift shift last=`/bin/ls -d $dest/* | sort | tail -1` last=`basename $last` tmp=$dest/backup.$$.backup/ now=`date +%Y-%m-%d %H.%M.%S` rm -rf $tmp /usr/local/bin/rsync -a $@ --link-dest=../$last/ $src $tmp mv $tmp $dest/$now # clean up dir=$dest mod=$[ `date +%d` % $count] while [ `/bin/ls $dir | wc -l` -gt $count ] do file=`/bin/ls $dir | awk 'NR=='$count'{print $0}'` rm -rf $dir/$file done -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Windows XP date/timestamp issues
On Tue, Nov 18, 2003 at 09:03:42AM -0500, Gavin Durman wrote: Whenever a Windows XP system opens a file on the NW server, and then saves the changes, the date/time stamp doesn't change, That is a serious bug. It isn't an rsync problem per se. If the file sizes don't change to work around this in rsync will require using checksums to identify changed files. A real performance killer. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html