Re: rsync fails to retrieve file (if local file is incorrect)

2010-11-09 Thread Norbert van Bolhuis
nvbolh...@aimvalley.nl wrote: I'm using rsync on an embedded powerpc platform with flash filesystem. Because of a power-cycle a local file got corrupted. This file is /flashfs/isd1, it has the correct size but wrong MD5SUM (cd5...). Using rsync to retrieve the right file (from a remote machine)

Re: Changes made to main.c on implementing real time Rsync

2010-11-09 Thread Wayne Davison
On Tue, Nov 9, 2010 at 11:04 AM, Steven Xu wrote: > Example "rsync -av source/l1/l2/l3/abc.txt dest::Worksheets/l1/l2/l3/" > Do this instead: rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/ The use -f -R (--relative) along with the /./ path element to signal how much of the source p

Changes made to main.c on implementing real time Rsync

2010-11-09 Thread Steven Xu
Hi, All, I am implementing real-time Rsync on Windows 2008 system. I set up Rsync server and Rsync client on two machines. An windows service is watching all the Windows file events with FileSystemWatcher. However, the service cannot tell the exactly what happened to folders such as create, de

Re: How to copy just some subdirectories using filter rules

2010-11-09 Thread Iñaki Baz Castillo
2010/11/9 : > sync -vva --force --delete-excluded -f 'merge /etc/backup.filter' \ > 99.99.99.99:/ /home/server_backup/ > > /etc/backup.filter: > #---# > + /etc/ > + /usr/ > + /usr/local/ > - /usr/* > + /usr/local/etc/ > + /usr/local/bin/ > + /usr/local/sbin/ > - /usr/local/* > - /*

Re: How to copy just some subdirectories using filter rules

2010-11-09 Thread edacval
On 11/09/2010 03:19 PM, Iñaki Baz Castillo wrote: > Hi, I always find the same problem when trying to properly configure > my remote backups so have decided to ask here since, surely, I miss > something :) > > I just want to copy some directories (and their full content) from a > server to my PC.

Re: fadvise DONTNEED implementation (or lack thereof)

2010-11-09 Thread Ben Gamari
On Tue, 9 Nov 2010 16:28:02 +0900 (JST), KOSAKI Motohiro wrote: > So, I don't think application developers will use fadvise() aggressively > because we don't have a cross platform agreement of a fadvice behavior. > I strongly disagree. For a long time I have been trying to resolve interactivity

How to copy just some subdirectories using filter rules

2010-11-09 Thread Iñaki Baz Castillo
Hi, I always find the same problem when trying to properly configure my remote backups so have decided to ask here since, surely, I miss something :) I just want to copy some directories (and their full content) from a server to my PC. This is what I "try" to use: rsync -vv -a --relative --delet