Re: include/exclude: I miss the point

2010-09-10 Thread Michal Soltys
On 10-09-10 21:13, Hans Troost wrote: So my exclude-files contains: .* the include file contains: .kde4/share/apps/kabc/distlists .kde4/share/apps/kabc/std.vcf Result: 1. Success: 2 .kde4/share/apps/kabc-files Are you sure about that part ? '.*' ('H, .*' as seen by sending rsync) should

Re: --delete-during acts like --delete-before

2010-09-09 Thread Michal Soltys
On 09.09.2010 02:05, Michal Soltys wrote: On 10-09-09 01:07, Craig Bell wrote: 1) 1st delete pass, honoring global (on B or sent from A, if rsync was executed on A) and per directory (on B) rules of what to protect/delete (see --filter's options R P) 2) 2nd transfer pass To be a bit more

Re: --delete-during acts like --delete-before

2010-09-09 Thread Michal Soltys
On 10-09-09 20:17, Craig Bell wrote: Michal Soltys wrote: As stated, I would prefer this, however I do not have enough space to keep two editions of the files. I must delete as I go along, however I don't want to delete everything up front, and risk exposure. My workaround was to run

Re: --delete-during acts like --delete-before

2010-09-08 Thread Michal Soltys
On 10-09-09 01:07, Craig Bell wrote: Hello, I use rsync v3.0.7 with --delete-during, but it appears to act more like --delete-before. I've checked the docs and list archives, but I am still discovering some of the subtleties of rsync, and I can't see where I'm going wrong. There's an

Re: Backups Directory Timestamps Not Preserved

2009-08-04 Thread Michal Soltys
Backup options are concered with files from what I can see after some tests. Extra directory (--backup-dir) is an addition to keep things more tidy. I guess the idea was to have some sort of protection against careless rsync invocation, etc. - not as a solution for incremental backups. I don't

Re: Local disk rsync

2009-04-10 Thread Michal Soltys
listserv.traf...@sloop.net wrote: I've done quite a bit of looking, but I haven't found an answer that answers this question. Environment: cygwin on Windows rsync 3.0.4 Using a native windows sync tool, a sync of the source to the destination takes perhaps 5 minutes. (~24G, 80K files) However

Re: best rsync for use with windows (client) and long file names

2009-03-27 Thread Michal Soltys
Fabian Cenedese wrote: I also use cwrsync but the few cases where the path was too long I just shortened the source. Of course that may not be possible for you. bye Fabi Remember about cygwin1.dll with utf8 support (using unicode win32 api). Side effect of it is that the paths are limited

Re: Backup to spare drive (rsync / crontab)

2009-01-30 Thread Michal Soltys
drc...@yahoo.com wrote: But the scheduled backups never happen. I must be doing something wrong, but can't figure out what. All help would be gratefully appreciated. Not sure if this is an rsync issue or a FreeBSD / Crontab issue. Cron might be ignoring $PATH, so the scripts called don't

Re: Some help with sudo on remote side of rsync

2009-01-28 Thread Michal Soltys
Carney Mimms wrote: I am now able to ssh from remote to local and local to remote without passwords using RSA keys, but if I run the script without sudo, i.e. Sudo /usr/local/bin/rsync ... It can’t copy files that need root permissions. If I leave out the sudo and run the script after becoming

Re: --compare-dest; I'm missing the boat

2009-01-15 Thread Michal Soltys
Harry Putnam wrote: I must be seriously misunderstanding the man page coverage of --compre-dest. My take was that if a file in compare-dest=dir matches a file in SOURCE/ then it won't be transferred to DEST/. I tried this test. (d1 has single files and 2 subdir with files) cp -a d1 d1a

Re: weird interaction between --delete-delay and --partial-dir when transfer is interrupted

2008-12-22 Thread Michal Soltys
Either way - as a workaround, you could drop delete-excluded, and then just finalize the thing with something like: find /bar/ -depth -name .rsync-partial -exec rm -rf {} \; I meant more like: -name .rsync-partial -prune -exec . Shivkumar Venkatasubrahmanyam wrote: Makes sense. And

Re: weird interaction between --delete-delay and --partial-dir when transfer is interrupted

2008-12-22 Thread Michal Soltys
Shivkumar Venkatasubrahmanyam wrote: ... then without -f 'R .rp/', dst/.rp is not removed. With -f 'R .rp/', it is removed but if dst/a is updated then we have the same issue (exit with code 23). This is entirely consistent with your strace i.e. code 23 whenever there are two separate

Re: weird interaction between --delete-delay and --partial-dir when transfer is interrupted

2008-12-20 Thread Michal Soltys
Shivkumar Venkatasubrahmanyam wrote: Hi, I'm not sure if this is a bug, but after reading the manual, this does not seem like expected behavior. I'm using the following rsync command to approximate an atomic update (I can't use --link-dest as hard links in hfsplus filesystems are fubar

Re: character set for Windows?

2008-12-01 Thread Michal Soltys
Steve Lefevre wrote: I'm using cygwin to backup files from a windows machine to a unix host with rsync. I originally uploaded the bulk of the files using a windows ftp client, and then planned on doing updates nightly with rsync. This can also be important, especially regarding how the ftp

Re: rsync command exclude option

2008-11-27 Thread Michal Soltys
Kaushal Shriyan wrote: Hi again I have a directory logfiles and inside it it has lots of sub directories. Inside it there are lots of .gz, .txt and .sql files I want only .sql files to be rsynced to the destination host is there a way to achieve it using rsync utility Assuming you won't

Re: rsync command exclude option

2008-11-26 Thread Michal Soltys
Kaushal Shriyan wrote: I want only .sql files to be rsynced to the destination host. when i do rsync -avz oldUnicelFiles hostB:/home/kaushal --include-from=include.txt it rsync all the files under oldUnicelFiles, I mean even .gz and .txt files too. ~/oldUnicelFiles $ ls

Re: rsync command exclude option

2008-11-26 Thread Michal Soltys
Kaushal Shriyan wrote: Hi I do rsync -avz oldUnicelFiles hostB:/home/kaushal --exclude-from=exclude.txt but it rsynced the excluded files too my exclude.txt file contains /home/kaushal/oldUnicelFiles/*.gz /home/kaushal/oldUnicelFiles/*.txt Any

Re: Configuring Rsync to run without any user input or Cron job.

2008-11-19 Thread Michal Soltys
Etienne D wrote: Hi ! I would like to know if it's possible for Rsync to automatically mirror a folder and it's content from one deamon to another. (or one client to a deamon) Basically I want users to drag and drop files in a folder and Rsync to mirror these files as soon as it sees them. A

Re: rsync for the brave

2008-11-09 Thread Michal Soltys
Ashley M. Kirchner wrote: It's not a folder that Windows will allow me to delete, so consequently rsync will attempt to do that and fail. Adding --exclude=Network Trash Folder has absolutely no effect what so ever. Any suggestions? You could use --ignore-errors - with this, rsync

Re: exclude vs hide

2008-11-02 Thread Michal Soltys
Matthew Monaco wrote: What is the difference between exclude and hide in the filter rules? Normally, 'hide' is interpreted only by the sender and the files will never show up in the file list sent to the receiver. 'Exclude' is both 'hide' (sender) and 'protect' (receiver) - so files that

Re: Is rsync copying over the entire file? Sent bytes matches actual file size.

2008-10-29 Thread Michal Soltys
Administrator wrote: Hi, [cut] Number of files: 2 Number of files transferred: 1 Total file size: 584742598 bytes Total transferred file size: 584742598 bytes Literal data: 584742598 bytes Matched data: 0 bytes File list size: 118 File list generation time: 0.002 seconds File list transfer

Re: Is rsync copying over the entire file? Sent bytes matches actual file size.

2008-10-29 Thread Michal Soltys
Hedley J. Phillips wrote: Question 2: The time taken to run the command is the same with or without the switch. Why is this? I would expect the command with the no whole file switch to run faster as it only has to transfer a portion of the entire file. Do you mean precisely the same, or

Re: Question regarding --delete-during/after and backup file cases

2008-10-28 Thread Michal Soltys
Matt McCutchen wrote: (It would have made my life easier if you had replied directly to that message so I didn't have to search for it.) Ahh yes - it was an old thread back from June - I kinda did, but the question was a bit weird different and the thread ended. Either way, sorry. If I

Question regarding --delete-during/after and backup file cases

2008-10-22 Thread Michal Soltys
A good while ago I asked about difference between --delete-during/delay and --delete-after, when per-directory files are updated (all is perfectly clear for me here), but during the discussion there was a hint made by Wayne, that the outcome can differ in more situations: It is useful for

Re: OS/X Leopard Server and rsync backups

2008-06-20 Thread Michal Soltys
Few remarks: Greg Shenaut wrote: --delete-excluded: delete files no longer present any excluded files Yes. You can achieve the same with 'H' or 'R' instead of '-', without having to specify --delete-excluded. 'H' is sender-only exclude, 'R' is receiver-only include. In your case:

Re: delete-delay vs. delete-after in 3.0.2 (and possible bug)

2008-06-18 Thread Michal Soltys
Wayne Davison wrote: Diffs are always welcomed. Please feel free. ..wayne.. Allright, tiny update to the rsync.yo file. I haven't included information about backup/suffix case you mentioned, as I'm not sure about the details yet. --- rsync.yo.org2008-05-17 18:45:28.0

Re: delete-delay vs. delete-after in 3.0.2 (and possible bug)

2008-06-15 Thread Michal Soltys
Wayne Davison wrote: On Tue, Jun 10, 2008 at 09:58:34PM +0200, Michal Soltys wrote: have per-dir filter files being updated, its works the same as --delete-after (if we disregard certain backup-file cases where the suffix is not excluded), just more optimally. You mean - the difference

Re: rsync and running scripts

2008-06-11 Thread Michal Soltys
becca23 wrote: I'm using the rsync protocol to keep a windows and linux system mirrored. I have set up the rsync and ssh to run properly, but I would like to know if there is an option, whether in the rsync command or placed in the rsyncd.conf file where I can call a script that runs each time

Re: rsync and running scripts

2008-06-11 Thread Michal Soltys
becca23 wrote: Would you do this using the ssh -s option? Just regular command, like ssh [EMAIL PROTECTED] 'ls -al /' also, would this run the script before or after rsync completes? That depends on your needs. -- Please use reply-all for most replies to avoid omitting the mailing list.

delete-delay vs. delete-after in 3.0.2 (and possible bug)

2008-06-10 Thread Michal Soltys
Hello I've noticed today, that --delete-delay introduced in 3.0.2 is not functionally equivalent of --delete-after (I was under impression it should work this way). Looking at following example: /src /src/testfile /src/.rf /dst /dst/testfile .rf consists of following lines: S, .rf H, *

Re: delete-delay vs. delete-after in 3.0.2 (and possible bug)

2008-06-10 Thread Michal Soltys
Wayne Davison wrote: per-dir rules set right for both the on-going copying, and a late delete scan). I don't think this is likely to change any time soon, but it would be nice to have a way of doing something like early per-dir filter copying or something. ..wayne.. Oki, thanks for