You should be able to use this command:

rsync -avH --progress --exclude '.*' /home/joe/ \
        [email protected]:/home/joe

Also try adding the -n or --dry-run flag before running your rsync show what it's going to do without actually doing it, so that you can make sure it's going to do what you think it going to do before it actually does it.

Brian Cluff

On 04/29/2010 04:12 PM, [email protected] wrote:

Thanks to the always excellent help and advice from my plug friends,
I've been able to use 'rsync' to copy files between my Linux boxes,
and it has been a tremendous help.

However, from studying the man page, I can't figure out what the
syntax should be to exclude hidden files. When I use this:

rsync -avH --progress /home/joe/ [email protected]:/home/joe/

It copied all the hidden files and kind of messed up my laptop.

How can I modify that command to exclude hidden files?




---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Reply via email to