Re: how to start rsync daemon on fedora

2008-10-11 Thread Matt McCutchen
On Fri, 2008-10-10 at 13:49 +0100, michael wrote: > Although how do I start and restart it? I tried > kill -HUP > but that seems to have half killed it since now I can't restart: > [EMAIL PROTECTED]:~$ ps -elf|grep rsyncd > 0 R mkb 11929 11392 0 80 0 - 17433 - 13:48 pts/2 > 00:00:0

Re: rsync backup permissions

2008-10-10 Thread Matt McCutchen
On Fri, 2008-10-10 at 18:43 -0400, Matthew Monaco wrote: > So would the receiving end need to be running in daemon mode? There > would be no way to set the proper ownership if it isn't? Not necessarily. The receiving end just needs to run as root, and that can be accomplished on a run over remot

Re: Possible 3.0.4 bug with -s (--protect-args) - protocol error

2008-10-09 Thread Matt McCutchen
On Thu, 2008-10-09 at 18:44 +0100, Giuliano Procida wrote: > Two different hosts with 3.0.4 compiled from source, no patches. > > It seems fine except that -s causes protocol failures. See below. I can reproduce this: [EMAIL PROTECTED]:~ $ rsync -n . localhost: skipping directory . [EMAIL PROTEC

Re: how to start rsync daemon on fedora

2008-10-09 Thread Matt McCutchen
On Thu, 2008-10-09 at 15:29 +0100, michael wrote: > Maybe the daemon is running but I don't think so: > > [EMAIL PROTECTED]:/var/log$ ps -elf|grep rsync > 0 S mkb 24869 21866 0 80 0 - 17433 pipe_w 15:26 pts/4 > 00:00:00 grep rsync > > and this is when I've tried both of > a) /usr/bin/rsy

Re: rsync backup permissions

2008-10-09 Thread Matt McCutchen
On Thu, 2008-10-09 at 14:38 +0100, michael wrote: > On Thu, 2008-10-09 at 14:17 +0100, michael wrote: > > I wish to use rsync to backup users' home dirs from machineA (Debian) to > > machineB (Fedora). I have a script, say backup.sh, in my own home dir > > and linked to from /etc/cron.daily and hav

Re: Compression error? -- "Inflate (token) returned -5"

2008-10-09 Thread Matt McCutchen
On Thu, 2008-10-09 at 07:54 -0700, Wayne Davison wrote: > I wonder if there was a false checksum > match in the file? In such a case, the sender and the receiver would > compress different "matching" data, and could potentially get out of > sync. That would explain it. > If so, I doubt there's a

Re: rsyncd.conf to control unix permissions

2008-10-08 Thread Matt McCutchen
On Wed, 2008-10-08 at 13:08 +0200, Thomas Heil wrote: > I was looking for a solution to force special unix permissions in > conjunction with rsync. I want to use > it for a webserver upload which is served by a rsync server. There I > need the special unix permissions to make sure > apache is fun

Re: Why is -e sent to the remote rsync side?

2008-10-06 Thread Matt McCutchen
On Mon, 2008-10-06 at 18:01 +0200, Shachar Shemesh wrote: > Personally, and this is not something that any shell can solve, I would > love for a way to limit the files that the --server side rsync allows > access to. It's called an rsync daemon. It can be invoked over ssh; the command to force

Re: --delete

2008-10-05 Thread Matt McCutchen
On Sun, 2008-10-05 at 01:03 -0400, Franck Y wrote: > Quick Question i will have to download the source [to use a backup > dir] ? > > It is already running on my system ? I have installed though a rpm ? Your RPM-installed rsync should support the --backup-dir option out of the box. You only need

Re: --link-dest behavior

2008-10-04 Thread Matt McCutchen
On Sat, 2008-10-04 at 18:41 -0400, Matthew Monaco wrote: > > Note (if you haven't already) that you can do the "cp" in the > > --rsync-path rather than in a separate ssh session. > > Thanks for the tip, Matt, but this does not appear to be working for me. > > I've tried rsyncing to various places

Re: --link-dest behavior

2008-10-04 Thread Matt McCutchen
On Sat, 2008-10-04 at 17:26 -0400, Matthew Monaco wrote: > In the event that --link-dest=DIR is the option taking on the new > behavior (and thus is affected by --delete), I think that the lines > given by --itemize-changes should not indicate the creation of "old" > directories. I agree. > In th

Re: --link-dest behavior

2008-10-04 Thread Matt McCutchen
On Fri, 2008-10-03 at 01:14 -0400, Matthew Monaco wrote: > I've been thinking about the current behavior of the --link-dest=DIR > option. In the absence of --delete, ALL members of DIR should be linked > to the destination (aside from those that are changed). If not, there > should at least be a

Re: feature request: create remote directory

2008-10-02 Thread Matt McCutchen
On Sun, 2008-09-28 at 19:55 +0200, Tim Newsome wrote: > I have a program that copies pictures to a web server using rsync. > Typically it will do something like copy IMG_1234.JPG to > server:/www/docroot/YEAR/MONTH/DAY, where the appropriate numbers are > inserted for YEAR/MONTH/DAY. Currently the

Re: --delete

2008-10-02 Thread Matt McCutchen
On Thu, 2008-10-02 at 21:28 -0400, Franck Yelles wrote: > On 2-Oct-08, at 21:01, Matt McCutchen <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-10-02 at 20:59 -0400, Franck Y wrote: > >> Is there anyway to move the deleted files/folder to another place ? > >> I have

Re: Question on "Resource temporarily unavailable" error

2008-10-02 Thread Matt McCutchen
On Tue, 2008-09-30 at 14:20 -0600, Rob Bosch wrote: > 2008/09/30 12:09:55 [12508] rsync: write failed on "/EDrive/testfile.edb" > (in Test.Backup):Resource temporarily unavailable (11) That error is coming from the destination filesystem. What happens if you copy the files to another place on the

Re: --delete

2008-10-02 Thread Matt McCutchen
On Thu, 2008-10-02 at 20:59 -0400, Franck Y wrote: > Is there anyway to move the deleted files/folder to another place ? > I have googled a little bit but nothing comes out. It's the --backup-dir option. If you want to treat deleted files differently from overwritten ones, use this patch: http:

Re: rsync hangs after counting some file list

2008-10-02 Thread Matt McCutchen
On Mon, 2008-09-29 at 10:37 +0530, Ravi Thati wrote: > I have written script to download a directory from remote machine > which contains the always the updated data. I want to download that > directory onto my local machine periodically with --link-dest option > to my old download directory. >

Re: feature request: restart on timeout

2008-10-01 Thread Matt McCutchen
On Sun, 2008-09-28 at 19:52 +0200, Tim Newsome wrote: > I'm currently in Egypt, and my Internet connection goes up and down a > lot. rsync --partial --timeout is great, especially when combined with a > little script that checks whether it failed due to timeout, and in that > case starts the transf

Re: without passwd

2008-10-01 Thread Matt McCutchen
On Mon, 2008-09-29 at 16:23 +0530, Rajiv Nair wrote: > On Wed, Sep 24, 2008 at 6:39 AM, Rajiv Nair <[EMAIL PROTECTED]> > wrote: > dear thanks..Got another error and not able to understand > > ERROR: auth failed on module detailing > rsync error: error starting client-server protocol (code 5) at >

Re: Does "--link-dest" option supports link to remote backup server?

2008-09-28 Thread Matt McCutchen
On Sun, 2008-09-28 at 15:39 +0800, Zhiming Zhou wrote: > Today I have a remote rsync server, I suppose the "--link-dest" option > should also works in remote server, so I use rsync like this: > > rsync -a --link-dest=/remote/old /tmp/myfile > [EMAIL PROTECTED]::backup/remote/new > > and "/remote/

Re: automated Rsync to remote host, preserve owner

2008-09-25 Thread Matt McCutchen
Ray, please CC rsync@lists.samba.org so that others can help you and your messages are archived for others' future benefit. On Thu, 2008-09-25 at 17:12 -0600, RAY wrote: > This is what I have done so far: > I have enabled rsync --daemon in inetd, created a rsyncd.conf file. > > I used the followi

Re: automated Rsync to remote host, preserve owner

2008-09-25 Thread Matt McCutchen
On Thu, 2008-09-25 at 14:58 -0600, RAY wrote: > I'm trying to set up a backup server using rsync. > I would prefer to push data from one server to another, automated through a > cron job. It is quite important to preserve the owner/group and permissions. > > google and the archives haven't gotte

Re: INCLUDE/EXCLUDE PATTERN RULES problem on MAC OS

2008-09-25 Thread Matt McCutchen
On Thu, 2008-09-25 at 14:12 +0200, mathias lambeau wrote: > I would like to back up several desktop computer, and notebooks who > are running under Mac OS, on a linux server with ext3 filesystem. > > I try several times with rsync, using include lists > ( --include-from=my_include_file). > The inc

Re: --files-from= and --delete corrent options

2008-09-24 Thread Matt McCutchen
On Wed, 2008-09-24 at 15:41 +1000, James Robertson wrote: > >> [EMAIL PROTECTED]:~# rsync -ah --delete --numeric-ids --stats > >> --delete-excluded -include-from=/tmp/BACKUPFILE --exclude='*' > >> /tmp/source/ /tmp/destination/ > If /tmp/BACKUPFILE contained a directory e.g. > > [EMAIL PROTECTE

Re: howto backup a Solaris 7 Server without its OS

2008-09-23 Thread Matt McCutchen
On Mon, 2008-09-22 at 15:56 +0200, Jende, Niels wrote: > I haven't used rsync as yet but today I have to. Basically I need to > backup all datas from one Server to another machine with the whole > structure. Here is what I have on mind and I am wondering if that might > be a way to go... > > Conne

Re: --files-from= and --delete corrent options

2008-09-23 Thread Matt McCutchen
On Wed, 2008-09-24 at 13:00 +1000, James Robertson wrote: > I tried this but it doesn't seem to work for me as you describe. I just > created a test setup. The commands I'm running are as follows: > > [EMAIL PROTECTED]:~# rsync --version > rsync version 2.6.9 protocol version 29 > [EMAIL PROT

Re: --files-from= and --delete corrent options

2008-09-23 Thread Matt McCutchen
On Mon, 2008-09-22 at 15:43 +1000, [EMAIL PROTECTED] wrote: > I am running the following command to backup a specific file from > /tmp/BACKUPFILE which contains the name "Friday2008-09-19.bkf". > > rsync -ah --delete --numeric-ids --stats --delete-excluded > --files-from=/tmp/BACKUPFILE /var/data/

Re: simple incremental backup woes. solutions?

2008-09-23 Thread Matt McCutchen
On Mon, 2008-09-22 at 11:46 +0200, The Peach wrote: > Just an info: will this patch be merged in the stable branch of rsync? Most likely not, as it's a quick hack. Matt -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.s

Re: error receiving files from protocol 29 server

2008-09-23 Thread Matt McCutchen
On Tue, 2008-09-23 at 12:58 +0200, Paul Slootman wrote: > In debian bug #493559 (http://bugs.debian.org/493559) the problem is > that when requesting a file from an older version rsync, the remote > server gives an error: > > $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp >

Re: help required for passing parameters to rsync within a script

2008-09-23 Thread Matt McCutchen
On Tue, 2008-09-23 at 22:22 +0100, michael wrote: > I'm attempting to write a short script to copy all 'CONC*' files in any > subdir under ./ using rsync and filters but I can't get the correct > quoting/escaping... any ideas? > # filter: all subdirs but only CONC* files > FILTER="--filter=+ \* --

Re: using rsync to transfer only files and not sub-directories

2008-09-17 Thread Matt McCutchen
the subdirectories themselves: rsync -r --exclude='*/*' SRC/ DEST/ or the following if you don't: rsync -r --exclude='*/' SRC/ DEST/ Matt > Matt McCutchen-7 wrote: > > > > On Tue, 2008-09-16 at 12:30 -0700, Meeaz wrote: > >> I am trying to rs

Re: using rsync to transfer only files and not sub-directories

2008-09-16 Thread Matt McCutchen
On Tue, 2008-09-16 at 12:30 -0700, Meeaz wrote: > I am trying to rsync contents of a directory while making sure that > "only" files under that directory are synched and "not" the contents > of any sub-directory under that dir. I know that I will have to use > the include/exclude option but not sur

Re: fixing user, group, and mtime with rsync?

2008-09-16 Thread Matt McCutchen
On Tue, 2008-09-16 at 10:02 +0200, Sven Hartrumpf wrote: > Mon, 15 Sep 2008 15:21:37 -0400, matt wrote: > > > On Mon, 2008-09-15 at 14:05 +0200, Sven Hartrumpf wrote: > > > I prepared a mirror (that is intended to be updated by rsync) > > > by doing the initial copy using cpio (for efficiency on 1

Re: Feature request: save-as-user

2008-09-13 Thread Matt McCutchen
On Sat, 2008-09-13 at 15:53 -0300, Carlos Carvalho wrote: > Quey ([EMAIL PROTECTED]) wrote on 13 September 2008 07:10: > >Is it possible to request a new feature that will help out some of us > >doing many mirrors, that is each mirror has their own system uid for > >security puroposes, it wo

Re: tricky rsync setup quit working

2008-09-13 Thread Matt McCutchen
On Sat, 2008-09-13 at 15:14 +0200, Peter Daum wrote: > client: > $rsync $rsync_opts --rsh="'ssh -i $ssh_key'" $filesystems > $bak_host::backup_module/path > and eventually invoked rsync with the command line: > rsync --daemon --no-detach --config $cfg_file > After looking through the documentati

Re: Strategy

2008-09-09 Thread Matt McCutchen
On Mon, 2008-09-08 at 23:06 -0400, Franck Y wrote: > I am building another backup server. > I want to copy the data to be able to have a perfect copy on both > server. > > If i tar the folder (that i want to sync) on my current computer and i > move it to the new one and untar it. > When i will sy

Re: New bie Q

2008-09-08 Thread Matt McCutchen
On Mon, 2008-09-08 at 13:49 +0530, Ravi Thati wrote: > I have a doubt regarding the fault tolerance of the rsync tool. > > What happens if the network goes down for some time and comes back > after few seconds? > Will rsync retry ? If yes, how many times/ how much time it will keep > retrying

Re: Problem using rsync for backing up on to a NAS

2008-09-07 Thread Matt McCutchen
On Sat, 2008-09-06 at 08:22 -0700, Wayne Davison wrote: > On Mon, Aug 25, 2008 at 04:43:29PM +0200, Thomas Ebert wrote: > > rsync: stat > > "/home/thomas/DiskStation/Thomas/backup/molungus-root/2008-08-25/usr/share/terminfo/L/LFT-PC850" > > > > failed: No such file or directory (2) > > usr/share

Re: keep rsync from removing unfinished source files?

2008-09-07 Thread Matt McCutchen
On Sun, 2008-09-07 at 16:42 -0400, Matt McCutchen wrote: > On Sun, 2008-09-07 at 16:16 -0400, Aaron Swartz wrote: > > > IMO, a proper solution is to have the crawler indicate somehow which > > > files are unfinished so rsync can avoid copying those. E.g., the > > >

Re: keep rsync from removing unfinished source files?

2008-09-07 Thread Matt McCutchen
Aaron, please CC rsync@lists.samba.org so that others can help you and your message is archived for others' future benefit. On Sun, 2008-09-07 at 16:16 -0400, Aaron Swartz wrote: > > IMO, a proper solution is to have the crawler indicate somehow which > > files are unfinished so rsync can avoid co

Re: keep rsync from removing unfinished source files?

2008-09-07 Thread Matt McCutchen
On Sun, 2008-09-07 at 10:59 -0400, Aaron Swartz wrote: > I have two machines, speed and mass. speed has a fast Internet > connection and is running a crawler which downloads a lot of files to > disk. mass has a lot of disk space. I want to move the files from > speed to mass after they're done down

Re: simple incremental backup woes. solutions?

2008-09-05 Thread Matt McCutchen
On Fri, 2008-09-05 at 20:29 +0200, The Peach wrote: > Right now: > if the directory in the source is deleted, in the destination the files > contained in the directory are renamed, while the directory itself > is not. > > So... is it possible to have both renamed instead of only the files? Yes.

Re: simple incremental backup woes. solutions?

2008-09-05 Thread Matt McCutchen
On Fri, 2008-09-05 at 13:15 +0200, The Peach wrote: > On Thu, 04 Sep 2008 22:48:28 + > Matt wrote: > > > It's not clear to me what the problem is, since the "cannot delete a > > non-empty dir" message is pretty harmless. Do you want the directories > > to be renamed? If so, should the indivi

Re: simple incremental backup woes. solutions?

2008-09-04 Thread Matt McCutchen
On Wed, 2008-09-03 at 17:59 +0200, The Peach wrote: > I've finally hit rsync limit. As someone already addressed the > problem in this list the problem regards the impossibility for rsync > to rename directories. > The situation is as follow: > every night I backup my samba dir with this command:

Re: Moved files

2008-09-04 Thread Matt McCutchen
On Thu, 2008-09-04 at 17:52 +0200, Julian Pace Ross wrote: > Is it possible to perform the following for moved files (i.e. files that > already exist on destination, but are moved into a different or new dir on > the source): > > - generate filelist including deleted files (without deleting) > -

Re: rsync with --backup

2008-09-04 Thread Matt McCutchen
On Thu, 2008-09-04 at 13:46 +0300, Paul -Spawn- Rysevets wrote: > here is the deal: we have an ant-script.. that uses rsync to > update our server's files.. i.e. patch-script >and request is.. to save files, that are updated... >and when the patch-script is run again (like, the same one) >

Re: accented characters in filenames mangled when rsyncing to a samba share

2008-09-01 Thread Matt McCutchen
On Tue, 2008-08-26 at 23:46 +0200, Ben Kenward wrote: > I am having a problem rsyncing files with accents in the names. > I am running rsync on a QNAP > TS-109 which is a NAS device running a kind of debian linux. Also on > the network is a Lacie network drive formatted with FAT32, which I > mount

Re: Strange sender log file characters

2008-08-31 Thread Matt McCutchen
On Sat, 2008-08-30 at 20:24 -0400, Matt McCutchen wrote: > That can happen if the statistics somehow become negative because the > "big_num" function doesn't handle negative numbers. The following patch > makes it handle them: > > http://mattmccutchen.net/rsync

Re: most recent updated files on destination

2008-08-31 Thread Matt McCutchen
Ivan, please CC rsync@lists.samba.org so that your messages are archived for others' future benefit. On Sun, 2008-08-31 at 11:40 +0200, Tyler Durden wrote: > I already now the behavior of the -u option, but I want to know if > other option exist to do this. How you say me that is not possible I >

Re: Strange sender log file characters

2008-08-30 Thread Matt McCutchen
On Sat, 2008-08-30 at 00:52 -0700, dfirth wrote: > Is there a reason I get the following strange characters in my log file? > > 2008/08/29 19:48:13 [7138] Total file size: +)*)/.+),00//,+)),( bytes > 2008/08/29 19:48:13 [7138] Total transferred file size: +)*)/.+),(*0,+-.,0' > bytes > 2008/08/29

Re: most recent updated files on destination

2008-08-30 Thread Matt McCutchen
On Sat, 2008-08-30 at 19:18 +0200, Tyler Durden wrote: > I want to synchronize two local directories, but if in the destination > directory there are some files that has most recent modified time than > the source directory I want that the source old files than the > destination will be updated. I

Re: logging rsync transfers in processable format

2008-08-30 Thread Matt McCutchen
On Sat, 2008-08-30 at 18:25 +0200, Keld Jørn Simonsen wrote: > For my rsync daemon, I would like it to log in a format that I could run > some stats on, eg by webalizer that I use for http and ftp transfers. You can customize the format with the "log format" daemon parameter (see the rsyncd.conf(5

Re: running rsync daemon as unpribileged

2008-08-30 Thread Matt McCutchen
On Sat, 2008-08-30 at 18:23 +0200, Keld Jørn Simonsen wrote: > I run a mirror service where for gentoo I run rsync as a daemon. > Currently the daemon runs root to get the 873 port opened. > And when transfers then run, they run as nobody. > > I would like the rsync daemon to connect to 873 (as ro

Re: rsync and kerberos

2008-08-29 Thread Matt McCutchen
On Fri, 2008-08-29 at 18:50 +0200, Bacchella Fabrice wrote: > Still working on my gss patch. Please remember to attach the updated patch! To generate a single diff, you can "git add" the files you added/changed and then run "git diff HEAD". You could also look into maintaining a git repository c

Re: Rsync Error Code 23?

2008-08-27 Thread Matt McCutchen
On Wed, 2008-08-27 at 10:45 -0700, [EMAIL PROTECTED] wrote: > Thank you for your response Matt. > On the source server, "/snapshots/fs/tce_data/pc-software/pc" is a symlink > to the directory "/snapshots/fs/tce_data/pc". > > On the destination server, > "/drp/fmttcesrv1/snapshots/fs/tce_data/pc-so

Re: Rsync Error Code 23?

2008-08-26 Thread Matt McCutchen
On Tue, 2008-08-26 at 16:29 -0700, [EMAIL PROTECTED] wrote: > Regarding "rsync error code 23" could the below "delete_file: ...file > exist" failures cause the error code 23? Or, how can I resolve this as > these are the only errors I see in the log files. > Thank you! > > START Tue Aug 26 11:1

Re: Rsync of LVM Snapshots copies whole file

2008-08-26 Thread Matt McCutchen
On Tue, 2008-08-26 at 15:02 +0200, Peter P GMX wrote: > does nobody has a clue about this? As Paul said, the bottleneck appears to be disk I/O rather than network bandwidth, so you should not expect any speedup from the delta-transfer algorithm. (Even though only 3% of the data differs, rsync nee

Re: Copying a list of files

2008-08-24 Thread Matt McCutchen
On Sun, 2008-08-24 at 17:54 +0200, Leslie Jensen wrote: > Copy system configuration files to a directory on my > (/home/user/configuration) home drive. > > I've made a text file with the files I want to copy, one file on each row. > > The command: > > rsync -tv --files-from="my list of files" /

Re: mtime, atime, ctime

2008-08-24 Thread Matt McCutchen
On Sun, 2008-08-24 at 14:24 +0200, Mikel Jimenez wrote: > I am making backup of a Plesk Debian server to /backup using Rsync. > > My questioin is how can I preserve the ctime, mtime, and atime of > original files? - Preserving the mtime is just rsync's --times (-t) option. - To preserve the ati

Re: How to escape spaces in rsync source and destination paths

2008-08-22 Thread Matt McCutchen
the command into a no-op for my own testing. Oops. The last part of the script should read: - # DO IT! "[EMAIL PROTECTED]" echo Done. # the end. - Sorry about that. Matt > On 8/21/08 9:32 PM, "Matt McCutchen" <[EMAIL PROTECTED]> wrote: > > #

Re: How to escape spaces in rsync source and destination paths

2008-08-21 Thread Matt McCutchen
On Thu, 2008-08-21 at 16:32 -0400, Carney Mimms wrote: > Thank you for taking an interest in my problem of escaping spaces. > Here is the entire script and the entire output. I am at my wits end > as I have tried every every trick I know or have heard of, including \ > \\ and adding single quotes.

Re: Partial Transfer Problem

2008-08-21 Thread Matt McCutchen
On Thu, 2008-08-21 at 13:05 -0500, [EMAIL PROTECTED] wrote: > I am using the command options listed below. If I set --partial or > --partial-dir, I see the partial file appear as expected. However, > even with --partial-dir set as you see below, the .rsync-partial > directory is never created. I

Re: rsync --delete problem with accent characters on Mac OS X HFS

2008-08-19 Thread Matt McCutchen
On Wed, 2008-08-20 at 00:20 +0200, Komáromi Tamás wrote: > I would like to sync my Linux firewall to my Mac OS X. > The rsync deletes my files with accents and download it again. > $ /sw/bin/rsync --archive --update --verbose --delete firewall:teszt . > receiving incremental file list > deleting

Re: generating and using ssh keys with rsync

2008-08-19 Thread Matt McCutchen
On Tue, 2008-08-19 at 11:59 -0700, Tamara Temple wrote: > I don't have a program called "ssh-copy-id" on my system > > I scp'd the ~/.ssh/id_rsa.pub file from the local machine to the > remote machine, appended it to ~/.ssh/authorized_keys on the remote > machine, and it's still asking for

Re: generating and using ssh keys with rsync

2008-08-19 Thread Matt McCutchen
On Mon, 2008-08-18 at 17:26 -0700, Tamara Temple wrote: > I'm having troubles generating and using keys with rsync over ssh. The > server I'm backing up to has a different name and IP internally than > is seen by the external source machine running rsync. How do I set up > the keys in this ca

Re: rsync hangs after aborting a process

2008-08-19 Thread Matt McCutchen
On Mon, 2008-08-18 at 20:54 -0700, cewing wrote: > ${RSYNC_CMD} -aNHAXx --protect-args --fileflags --force-change > --rsync-path="/usr/local/bin/rsync" @:${CPY_SRC} > ${CPY_DEST} > Now, whenever I try to run the same script, rsync hangs. No data is > transferred. I can stop the process with the

Re: File Locking

2008-08-18 Thread Matt McCutchen
On Mon, 2008-08-18 at 10:36 -0500, [EMAIL PROTECTED] wrote: > I have an identical set of directories at two locations. When a file > is added to one location, I'll call it the source side, I want to run > a script that picks up that file and copies it to the other location, > say the destination s

Re: Windows client

2008-08-15 Thread Matt McCutchen
On Fri, 2008-08-15 at 11:15 -0400, Doug Lochart wrote: > Our biggest issues with using the windows client and server > combination was with fragmentation. That should be helped by the --preallocate option available in recent versions of cwRsync. Matt signature.asc Description: This is a digital

Re: (CCs and duplicate email)

2008-08-14 Thread Matt McCutchen
On Thu, 2008-08-14 at 12:45 -0400, Matt McCutchen wrote: > By way of a test, I subscribed [EMAIL PROTECTED] to the rsync > list and will be checking whether it gets a duplicate of this message > due to the case-differing "Cc" of [EMAIL PROTECTED] . Yes, the "nodupes&q

Re: (CCs and duplicate email)

2008-08-14 Thread Matt McCutchen
On Thu, 2008-08-14 at 13:20 +0100, Stuart Halliday wrote: > Please do not CC me with replies. It just clutters up my inbox with > duplicate email. Stuart, This was discussed before: http://lists.samba.org/archive/rsync/2008-March/020469.html The "nodupes" feature of Mailman is supposed to preve

RE: Rsync Auto Resume

2008-08-14 Thread Matt McCutchen
On Wed, 2008-08-13 at 23:53 -0500, Shane Uys wrote: > Is there any option for auto resume? I tried --timeout=1000 but it > still terminates after 60s (when the internet drops). No. If the OS tells rsync that its network connection has broken, there is no way rsync can reestablish the connection,

Re: Rsync Auto Resume

2008-08-13 Thread Matt McCutchen
On Wed, 2008-08-13 at 13:28 -0500, Shane Uys wrote: > I am trying to copy a 5GB file over the internet with two Win2003 > servers. The internet on ServerA occasionally drops the connection and > rsync terminates with error “connection reset by peer”. Is there a > way to keep alive, extend timeout

Re: no backup for excluded files?

2008-08-13 Thread Matt McCutchen
On Wed, 2008-08-13 at 16:19 +0200, Louis-David Mitterrand wrote: > I use rsync 3.0.2 for daily incremental backups: > > rsync -aAzHRxby -f '. -' --numeric-ids --delete-during --delete-excluded \ > --suffix='' --backup-dir=$BACKUP_ROOT/$BACKUP_HOST/${TODAY} \ > ${DESTINATION}$BACKUP

Re: Symlinks in source path with --relative

2008-08-13 Thread Matt McCutchen
On Wed, 2008-08-13 at 13:01 +0100, Phil Endecott wrote: > I have a fairly straightforward backup script that does something like this: > > cd / > rsync -a --delete --relative home/phil/important backupserver:/backup/foo/ > > This was working fine and, for example, /home/phil/important/file1 was

Re: rsync -m --compare-dest

2008-08-12 Thread Matt McCutchen
On Tue, 2008-08-12 at 19:11 +0800, Thomas Gutzler wrote: > I've recently noticed that running rsync -m --compare-dest creates > empty directories, even though it should be prevented by the -m flag. > Try rsync -avm --compare-dest=/path/to/dir/ /path/to/dir/ foo > and you get a nice copy of the dir

Re: Problems connecting to remote rsync daemon

2008-08-11 Thread Matt McCutchen
On Mon, 2008-08-11 at 13:44 -0700, Tamara Temple wrote: > Ok, but what should be *in* the rsyncd.conf file. the man page isn't > at all clear what should be included. See the rsyncd.conf(5) man page for details and examples: http://rsync.samba.org/ftp/rsync/rsyncd.conf.html > I just want to do

Re: Restoring from backup, preserving uids

2008-08-11 Thread Matt McCutchen
On Sun, 2008-08-10 at 00:04 -0600, lewis butler wrote: > On 2-Aug-2008, at 13:15, Matt McCutchen wrote: > > Do you know of any case in which breaking hard links makes a system > > work > > incorrectly (as opposed to just taking up more space)? > > I think it can. F

Re: Problems connecting to remote rsync daemon

2008-08-11 Thread Matt McCutchen
On Sun, 2008-08-10 at 21:20 -0700, Tamara Temple wrote: > I set up rsync in inetd.conf to respond on request. When I give a > remote request to the machine, I get the following error: > > paladin:~ tamara$ rsync -avr /Volumes/Music/Pictures/ rsync:// > [EMAIL PROTECTED]/Pictures/ > rsync: conne

Re: rsync --delete isn't deleting files

2008-08-10 Thread Matt McCutchen
On Sun, 2008-08-10 at 23:04 +0100, Tiago Marques wrote: > It worked, --delete-excluded was all that was missing. > I really think this should be the implied behavior and would like to > see it as default, if there really isn't a good reason for it being > this way. The current behavior is useful i

Re: rsync operation times out on excluded directory

2008-08-09 Thread Matt McCutchen
On Fri, 2008-08-08 at 16:57 +0200, Rob klein Gunnewiek wrote: > The problem was that I was copying /home (rsync server:/home ...), and the > exclude path needed to be relative to this. Newbie mistake :). So, now it > works, > using: --exclude=username/mnt (instead of --exclude=/home/username/mnt).

Re: Transfer resource forks (-X -E) but not data?

2008-08-09 Thread Matt McCutchen
On Sat, 2008-08-09 at 12:58 -0400, Gian Spicuzza wrote: > Our hard drive crashed and we restored a backup under Mac 10.3.9. > Unfortunately we lost the executability of the files. The icons do not > show up and we have to manually click "Open With" and choose Word/Excel/etc. > > I have an old b

Re: dir-merge in a subdirectory

2008-08-05 Thread Matt McCutchen
On Tue, 2008-08-05 at 16:10 -0400, Matt McCutchen wrote: > On Tue, 2008-08-05 at 15:26 +0100, Eduardo Suárez wrote: > > Is it possible to add a rule like > > > > dir-merge myconf/mybackuprules > > > > ? > > > > That is, the file to merge is in a sub

Re: dir-merge in a subdirectory

2008-08-05 Thread Matt McCutchen
On Tue, 2008-08-05 at 15:26 +0100, Eduardo Suárez wrote: > Is it possible to add a rule like > > dir-merge myconf/mybackuprules > > ? > > That is, the file to merge is in a subdirectory of directory where we > want the rules to apply. Rsync doesn't currently support that, but it would be a ver

Re: mirroring a huge file using rsync while it's being written to.

2008-08-05 Thread Matt McCutchen
On Tue, 2008-08-05 at 17:42 +0530, Yogesh Kumar wrote: > In the application that I am building, I've to "incrementally" copy > several files of large sizes (around 1 GB) from several machines (some > 300 in number) spread across various geographic locations. We've been > using scp until now and are

Re: Strange time in rsyncd logfile

2008-08-05 Thread Matt McCutchen
On Tue, 2008-08-05 at 14:17 +0400, Alexey Vlasov wrote: > What can it be, the rsyncd shows the wrong date or something is wrong > with my setings? > > rsyncd server: > # date > Tue Aug 5 14:14:12 MSD 2008 > > rsync client: > # date > Tue Aug 5 14:14:45 MSD 2008 > > Log from a server: > 2008/08

Re: rsync 2.6.9 uses a lot of memory; has that changed in rsync 3.0.3 ?

2008-08-04 Thread Matt McCutchen
On Mon, 2008-08-04 at 13:22 -0700, Aleksey Tsalolikhin wrote: > Has the issue with rsync using a lot of memory if there are a lot > of files been addressed in 3.0? > > I checked the rsync FAQ and it says this issue would require a major > rewrite of rsync, not sure if that entry is up to date or n

Re: refuse option = e

2008-08-04 Thread Matt McCutchen
On Mon, 2008-08-04 at 22:02 +0400, Alexey Vlasov wrote: > Upgrading 2.6 to 3 version in rsync daemon changed the "refuse option" > manner. > refuse options = e In version 3.0.0, the -e option was commandeered as a way for the rsync client to signal some compatibility information to the server

Re: Restoring from backup, preserving uids

2008-08-02 Thread Matt McCutchen
On Sat, 2008-08-02 at 15:50 -0500, Neil Gunton wrote: > The point of my original message wasn't so much to get a > workaround, as to suggest a new option for rsync that would make this > kind of task easier. Well, it looks like you really know what you want here. You're welcome to create and us

Re: Restoring from backup, preserving uids

2008-08-02 Thread Matt McCutchen
On Sat, 2008-08-02 at 20:42 +0200, Paul Slootman wrote: > Just a note: I'd recommend also using -H to preserve hard links. > Traditionally a unix / linux system will have many files hard-linked > (although a quick check shows less than I expected). Do you know of any case in which breaking hard li

Re: Restoring from backup, preserving uids

2008-08-02 Thread Matt McCutchen
On Sat, 2008-08-02 at 09:41 -0500, Neil Gunton wrote: > Thanks for the tip. I just took at look at the man page for rsyncd.conf > and it seems to warn you away from combining chroot: > > "... disadvantages of ... complicating the preservation of users and > groups by name (see below)." The "dis

Re: recommend great GUI rsync client for XP

2008-08-02 Thread Matt McCutchen
On Sat, 2008-08-02 at 10:55 -0400, Imran Hussain wrote: > Try DeltaCopy (www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp) The DeltaCopy UI looks good, but the rsync.exe bundled with it is version 2.6.6, which is quite old. Noah, I suggest that you replace it with the rsync.exe from cwRsync (http://it

Re: Restoring from backup, preserving uids

2008-08-02 Thread Matt McCutchen
On Sat, 2008-08-02 at 08:26 -0500, Neil Gunton wrote: > I think rsync could match up the "old" uids from > the backup with the "current" uids in the system if it had access to the > old /etc/passwd file, which maps the uids to usernames. So would it be a > good option to add to rsync to give it

Re: how to include an explicit list of files

2008-08-01 Thread Matt McCutchen
On Fri, 2008-08-01 at 10:38 -0400, Bruce Bauman wrote: > I want to rsync files between two machines, but only a subset of the > files on the server. I want to specify the subset explicitly via a > list of files to the rsync daemon. I've tried: > > filter = + */ \ > + foo/bar/file1 \ >

Re: Rsync sending files that haven't been updated.

2008-08-01 Thread Matt McCutchen
On Thu, 2008-07-31 at 14:20 -0700, becca23 wrote: > Yes, I assumed that was the problem, but I removed the -t option for a > reason. Well, to avoid resending the same files, you'll need the -t option (unless you want to use -u and count on source file mtimes never being touched to a time other tha

Re: Rsync sending files that haven't been updated.

2008-07-31 Thread Matt McCutchen
On Thu, 2008-07-31 at 11:24 -0700, becca23 wrote: > I have been playing with rsync for several weeks now, and this is the first > time I have encountered this problem. Rsync is including files that haven't > been updated since the last sync. In fact, it's sending every file in the > folder even if

Re: directory with space

2008-07-30 Thread Matt McCutchen
On Wed, 2008-07-30 at 12:43 +0530, Shashi Kanth Boddula wrote: > I am using the bellow version > > rsync version 2.6.9 protocol version 29 > > My directory looks like bellow > > $ls /data/Knowledge\ Center/ (Note: The backslash here is for the benefit of the shell's word splitting. The direc

Re: rsync --delete* Bug or feature-request

2008-07-29 Thread Matt McCutchen
On Tue, 2008-07-29 at 12:10 -0400, Matt McCutchen wrote: > You are welcome to request an option to make rsync delete destination > files that are matched in --compare-dest dirs. I would actually suggest > a more general option called --recheck-basis-dirs that also replaces a > dest

Re: rsync --delete* Bug or feature-request

2008-07-29 Thread Matt McCutchen
On Tue, 2008-07-29 at 17:19 +0200, Gabriel CORRE wrote: > I'm trying to do a differential backup. Each commands/scripts are launch on > backup server side. > > - rsync-ref: 1 script perform a complete backup to a directory "ref". >something like that: > rsync --archives \ >statio

Re: IO error encountered -- skipping file deletion

2008-07-29 Thread Matt McCutchen
helpful. My RPM installs it under /usr/share/doc/rsync-3.0.3 . Matt > Matt McCutchen wrote: > > On Sat, 2008-07-26 at 13:06 -0300, Manuel Kissoyan wrote: > > > >> Im not finding any useful infothis is the only thing that did show: > >> > >> rs

Re: directory with space

2008-07-29 Thread Matt McCutchen
On Tue, 2008-07-29 at 10:47 +0530, Shashi Kanth Boddula wrote: > I am facing one problem with rsync. in /etc/rsyncd.conf file , one of > my entry is like bellow. > > path = /data/Knowledge Centre > > With this, rsync report an error "chdir failed, no such directory". > > Even i tried like bellow

<    1   2   3   4   5   6   7   8   9   10   >