[NTLUG:Discuss] rsync and non-regular files
Kenneth Loafman
kenneth at loafman.com
Mon Dec 4 13:18:20 CST 2006
Ed Leach wrote:
> When I run rsync to copy a local directory to another machine it is
> skipping some of what it calls "non-regular files" that are directories.
> When I copied one of these directories and ran rsync again, rsync copied
> the new directory with no problem.
How are your running rsync? My normal method is to use:
rsync -avz -e ssh --delete <source> <target>
This gets directories, permissions, synch's dirs, etc. Read the man
page for full options, but -a generally means archive, -v means verbose,
and -z means compress, -e is the transport method, and --delete says to
delete anything on the target that's not in the source.
> Does this indicate some problem with my local file system? There is no
> other evidence of problems. I'm running Ubuntu with a default (ext3)
> install.
No, probably just rsync flags.
> It does fsck regularly after some number of reboots. (I think it's 30 -
> again the default.) Where is this setting in the system if I wanted to
> change it?
'man tune2fs' will show you how to set this and other parameters. 30 is
about right and I think there is a time limit as well. I rarely get hit
with the count limit.
...Ken
More information about the Discuss
mailing list