Re: redirect rsync's log to a log file together with other program

2014-03-26 Thread TJ Luoma
On Wed, Mar 26, 2014 at 6:00 AM, Tuma Wang wrote: > Hi, > > I'm writing a program to use rsync to do something, and I want to keep the > output of both in the same log file. My program is writing log to > /var/log/my.log via syslog() LOG_LOCAL0. I tried to use rsync's > '--log-file=/var/log/my.log

Re: Fwd: How would I make dir2 a copy of dir1 w/hardlinks for the files?

2014-03-26 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The rsync equivalent to cp -al would be: rsync -a --link-dest=/path/to/dir1 /path/to/dir1/ /path/to/dir2/ Note that I switched to absolute paths since rsync considers - --link-dest relative paths to be relative to the target so the relative example wo

Fwd: How would I make dir2 a copy of dir1 w/hardlinks for the files?

2014-03-26 Thread Linda A. Walsh
Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync not needed: cp -al dir1 dir2 Right now, neither is 'cp' (as of V8.21 - V10 inclusive) -- "apparently" (?) in response to this article: http://danwalsh.livejournal.com/64493.html. Right now, 'cp' tries to 'hardlink' to sym

[Bug 10518] rsync hangs (100% cpu)

2014-03-26 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10518 --- Comment #2 from Bram Matthys 2014-03-26 20:24:14 UTC --- And obviously I meant I'm using 3.1.1pre1, not beta1... Anyway, if you need the (gzip'ed) core file, just let me know. I don't want to attach it here due to it likely containing sensiti

[Bug 10518] rsync hangs (100% cpu)

2014-03-26 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10518 --- Comment #1 from Bram Matthys 2014-03-26 20:18:05 UTC --- Just realized I ls'd the wrong file. Not that it matters much, so just FYI: # ls -al /data/vm/green/data-ll.img -rw-r--r-- 1 libvirt-qemu libvirt-qemu 214748364800 Mar 26 21:18 /data/vm/

[Bug 10518] New: rsync hangs (100% cpu)

2014-03-26 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10518 Summary: rsync hangs (100% cpu) Product: rsync Version: 3.1.1 Platform: All OS/Version: Linux Status: NEW Severity: critical Priority: P5 Component: core

Re: How would I make dir2 a copy of dir1 w/hardlinks for the files?

2014-03-26 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync not needed: cp -al dir1 dir2 On 03/26/2014 02:22 PM, Linda A. Walsh wrote: > I have a dir "dir/" with 2 dirs in it "a/" and "b/". > > dir b/ has a file in it 'file' > > dir a has a relative symlink to that file: > > Ishtar:/tmp> ll dir total

How would I make dir2 a copy of dir1 w/hardlinks for the files?

2014-03-26 Thread Linda A. Walsh
I have a dir "dir/" with 2 dirs in it "a/" and "b/". dir b/ has a file in it 'file' dir a has a relative symlink to that file: Ishtar:/tmp> ll dir total 0 drwxrwxr-x 2 20 Mar 26 10:51 a/ drwxrwxr-x 2 17 Mar 26 10:49 b/ Ishtar:/tmp> ll dir/{a,b} dir/a: total 0 lrwxrwxrwx 1 9 Mar 26 10:51 symfile

redirect rsync's log to a log file together with other program

2014-03-26 Thread Tuma Wang
Hi, I'm writing a program to use rsync to do something, and I want to keep the output of both in the same log file. My program is writing log to /var/log/my.log via syslog() LOG_LOCAL0. I tried to use rsync's '--log-file=/var/log/my.log' option; it seems to work to some extent, but have some probl

Re: Intermittent make_bak_dir mkdir "" failed: File exists (17)

2014-03-26 Thread Charles
Thanks Helmut :) Normally I would try a suggestion before replying to a mailing list but it will take a while to know the outcome as the messages are intermittent and rare. So saying thanks now :) On 26/03/14 13:36, Helmut Schweinzer wrote: > Hi Charles, > > Am 25.03.2014 05:34, schrieb Charles

Re: Intermittent make_bak_dir mkdir "" failed: File exists (17)

2014-03-26 Thread Helmut Schweinzer
Hi Charles, Am 25.03.2014 05:34, schrieb Charles: > Here's the pattern of messages: > > rsync: make_bak_dir mkdir failed: File exists (17) > rsync: keep_backup failed: -> : No such file or directory (2) > rsync: stat failed: No such file or directory (2) > > Versions: > * rsync: 3.0.7 and 3.0