how do i scp .dotfiles??

Gary Kline kline at thought.org
Fri Aug 27 18:15:21 UTC 2010


On Fri, Aug 27, 2010 at 10:54:52AM -0700, Jason wrote:
> On Fri, Aug 27, 2010 at 10:51:41AM -0700, Gary Kline thus spake:
> >On Fri, Aug 27, 2010 at 10:25:01AM -0700, Jason Helfman wrote:
> >>On Fri, 27 Aug 2010 13:19:40 -0400
> >>Glen Barber <glen.j.barber at gmail.com> wrote:
> >>
> >>> On 8/27/10 1:07 PM, Gary Kline wrote:
> >>> >
> >>> > guys,
> >>> >
> >>> > this is the start of my master switchover.  how to i copy/scp,say,
> >>> > ~/.purpur to home/kline/.purple?  along with many hundreds of other
> >>> > dot files? scp doesn't do it.
> >>> >
> >>> > tx,
> >>> >
> >>>
> >>> scp user at foo:\.dotfile .dotfile
> >>>
> >>> Regards,
> >>>
> >>
> >>Use rsync over ssh.
> >>
> >>
> >
> >
> >	i've already done 98 or so straight scp copies.   the thing is how
> >	to use rsync over to an empty ethic? [[ empty == "there are no \
> >	dot files not .directories"]  i want EVERYTHING from this desktop,
> >	tao, temp on ethic.
> >
> >	thanks
> >
> >
> You can just use rsync in cooperation with find command.
> 
> I've used it before, but found this as an example with a web search.
> rsync -avR remote:'`find /home -name "*.[ch]"`' /tmp/
> 
> Just reverse the order.



	this may be close.  use the unix tools and glue them together:-)

	i have this, cobbled together from a prev script:



   echo "rsync with checksum from  directory [${PWD}] to
[kline at ethic:${EPWD}]";

   rsync --perms --times --update  --compress  --verbose \
        --checksum -e "ssh -i /home/kline/.ssh/tao_nopasswd-id" \
       ${PWD}  kline at ethic:${EPWD};
   if [ $? =  0 ]
   then
      echo "rsync transfer went okay, tao to ethic"|mail
kline at thought.org
   else
      echo "rsync failed to ethic from /home/kline"|mail
kline at thought.org
   fi

   exit;

	but this fails ......

	any clues??
> 
> -jgh
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
 Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
    The 7.83a release of Jottings: http://jottings.thought.org/index.php
                           http://journey.thought.org
                                        



More information about the freebsd-questions mailing list