Can scp be used to update a directory?
Anne Wilson
cannewilson at tiscali.co.uk
Tue Mar 21 17:51:38 UTC 2006
On Tuesday 21 March 2006 07:28, James Wilkinson wrote:
>
> I should have thought --exclude .[a-z]* or --exclude .??* would have got
> rid of most hidden files and directories. A quick check on my home
> directory suggests both would do the job [1]
>
For the test I dropped the '-r', but forgot to exclude ~/Desktop, though it
wasn't important at this point because it was being re-directed to another
directory. Here is what I gave:
rsync -e "/usr/bin/ssh" --exclude=.[a-z]* -auvz /home/anne/
anne at borg:/home/anne/Test
yet it started to act recursively. Most of the hidden files were excluded by
the filter, but it let .DOCPSERVER_box.domain.lan, .ICEauthority
and .Xauthority. I don't think that the first one is a problem, since it is
linked to the box, but the other ones probably are. What do you think?
> I'd also suspect that for the test, you need to --exclude ~/Desktop :
> things could get odd if you repeatedly try to syncronise all of your
> home directory to somewhere underneath it.
>
I haven't spotted the relevant bit in the man page, so do you list the two
excludes simply space-separated?
Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060321/e93f92be/attachment-0001.sig>
More information about the fedora-list
mailing list