Date: Sun, 12 Oct 2008 14:18:56 +1030 From: Andrew D <andrewd@webzone.net.au> To: Gary Kline <kline@thought.org>, 'FreeBSD Stable' <freebsd-stable@freebsd.org> Subject: Re: rsync or even scp questions.... Message-ID: <48F173A8.7000506@webzone.net.au> In-Reply-To: <20081011234612.GA5515@thought.org> References: <20081011234612.GA5515@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gary, Gary Kline wrote: > I have two "desktop" computers; three, if you count my new > ThinkPad. The TPad needs a new CAT5 cable, so for now I'm only > considereing the two tower computers. > > On the Ubuntu computer I am /home/kline; on my main computer, > my home is /usr/home/kline. The following sh script worked > perfected when my home on "tao" [FBSD] was /home/kline: > ~kline is an alias for the home directory for the user kline. You can use that in your scripts rather than the full path :) As far as I know it works in all *nix variants. Cheers cya Andrew > P > #!/bin/sh > > PWD=`pwd`; > echo "This directory is [${PWD}]"; > > scp -qrp ${PWD}/* ethos:/${PWD} > ###/usr/bin/scp -rqp -i /home/kline/.ssh/zeropasswd-id ${PWD}/* \ klin > e@ethos:/${PWD} > > Question #1: is there any /bin/sh method of getting rid of the > "/usr"? I switch off between my two computers especially when > get mucked up, as with my upgrade to kde4. (Otherwise, I do > backups of ~kline as well as other critical directories.) > > Is there a way of automatically using rsync rather that my > kwik-and-dirty /bin/shell script? > > thanks, people, > > gary > > > PS: Complete disclosure: it works one way [tao to ethos] because > I have created a /usr/home/kline/* tree on ethos. .... > > PPS: if this seems like a numbskull query, i only caught a few > hours sleep last night! > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48F173A8.7000506>