rsync doesn't copy dotfiles?

Vic Gedris vic-2vUEnoANFF8dnm+yROfE0A at public.gmane.org
Fri Jul 30 18:03:43 UTC 2010


On Fri, Jul 30, 2010 at 2:00 PM, William O'Higgins Witteman
<william.ohiggins-H217xnMUJC0sA/PxXw9srA at public.gmane.org> wrote:
> I find a vexing problem - I am backing up my home directory with rsync
> "rsync -rlptoD --exclude 'vids' --exclude 'crap' /home/willyyam/*
> /mnt/mybook/.", and it does what I would hope it does, except that it
> does not copy any dotfiles or dotdirectories.  Reading through the
> documentation, it seems like it should copy dotfiles, but something is
> amiss, because it is not.
>
> Anyone have a suggestion as to what I'm doing wrong?

When you say "*", that excludes .dotfiles.

Try:
rsync -rlptoD --exclude 'vids' --exclude 'crap' /home/willyyam/ /mnt/mybook/

-Vic

Vic Gedris - http://vic.gedris.org
Toronto, Ontario, Canada - http://www.junctiontriangle.ca
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list