Rodolfo Medina <rodolfo.med...@gmail.com> writes: > I wish to copy all my home directory into another machine with the --delete > option, but: > > 1) I dont't want hidden files, i.e.: `.*' to be copied; > > 2) on the other hand, there are some symlinks, beginning with `.', that I > want to be copied. > > The --exclude option won't help.
The following seems to be fine for me: $ cd $ rsync -vrtu --delete --exclude='/.*' . 192.168.0.2:/home/rodolfo , where `192.168.0.2' is the address of the destination computer. Hidden files from the top level directory are not tansferred, all the others are, which is what I want. Symlinks are better created by hand. I *highly* recommend anyone to first use the `--dry-run' option before actually run the command, as the --delete option is very dangerous! Bye Rodolfo -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87k4m0gap2....@gmail.com