I want to sync/mirror various directories between 2 servers. I want to exclude
most of the system specific stuff. But the stuff to be synced is significant and
it is scattered here and there. I am trying to use the -F switch with an
/.rsync-filter file to exclude what I don't want synced. The servers in
question are pretty much identical 8.04 installations, even the hardware.
I have 2 problems with this: the same syntax seems to work for some directories
not others. Secondarily, it seems to find things that are identical, and rsync
seems to want to delete them. In many cases these are system files like
So in /.rsync-filter I have statements like:
Mostly this works as expected, but not for /etc/, /bin,/dev/, or /proc. I've
tried variations on '*' or not '*'. It helps in some cases and not others.
For instance, I get this kind of output ...
All of which exist on both machines and appear to be identical, including
And then later ...
So those latter ones are properly ignored. I am running in --dry-run mode, so
its harmless at this point, but I can't find the magic words to make this
The command line I am using is:
rsync -vazSHF --no-blocking-io --partial --delete-during --delete-excluded
--timeout 600 --dry-run / $sync_dst:/
ubuntu-users mailing list
Modify settings or unsubscribe at: