Re: Re: scp+find, a little help please

2003-07-16 Thread jan.muenther

Hello,
   Well, I tried both the standford tarballs and the ports'
   stuff.  Both fail with this.  Does anybody know what I
   need to do to fix this?  ...Before I scrounge around in
   the code, that is... .

Well, dunno, really - I didn't cvsup my ports and tried to build it,
since I'm currently on site at a client where I can only get HTTP
access. I only read about it on the ports mailing list - looks like some
GNU automake fubar to me, wouldn't come too surprising.

I suggest you take the good advice from Chuck and stick with rsync,
which of course *does* synchronize directories and symlinks as well (and
is a very popular solution for such things). 

Simply use rsync's archive mode (see manpage and Chuck's posting,  -a),
which implies -r for recursion. 

Cheers, 
Jan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


scp+find, a little help please

2003-07-15 Thread Per olof Ljungmark
Hi,

Need to set up scp to copy only newer files and directories between two 
computers.

The basic setup is like:
scp -pr [EMAIL PROTECTED]:find command host2:/dir
What would be a suitable find command here?

Thanks,

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp+find, a little help please

2003-07-15 Thread jan.muenther

Hi there,

 Need to set up scp to copy only newer files and directories between two 
 computers.
 
 The basic setup is like:
 scp -pr [EMAIL PROTECTED]: host2:/dir
 
 What would be a suitable find command here?

Erm, newer than *what*? find needs a file as a comparison parameter to
detetermine whether another file is newer than it or not. I assume you
mean you want to copy only files from host1 to host2 which exist on both
machines, with host1 potentially holding newer versions that should get
synchronized to host2. 

Before you break your neck with (absolutely well possible) scripting
solutions, I suggest you have a look at rsync, which uses SSH for
transport by default now as well.
Or maybe check out rdiff-backup, of which a port has just been submitted
(AFAIK) if a backup is what you're after:

http://rdiff-backup.stanford.edu/

Cheers, Jan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp+find, a little help please

2003-07-15 Thread Per olof Ljungmark
Erm, newer than *what*? find needs a file as a comparison parameter to
detetermine whether another file is newer than it or not. I assume you
mean you want to copy only files from host1 to host2 which exist on both
machines, with host1 potentially holding newer versions that should get
synchronized to host2. 

Before you break your neck with (absolutely well possible) scripting
solutions, I suggest you have a look at rsync, which uses SSH for
transport by default now as well.
Or maybe check out rdiff-backup, of which a port has just been submitted
(AFAIK) if a backup is what you're after:
Last time I looked at rsync it did not create new directories, perhaps 
that changed? Or maybe I'm completely wrong... I'll have a look at rdiff 
then.

But as you say, it should be perfectly possible with scp too -

Thanks,

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp+find, a little help please

2003-07-15 Thread Chuck Swiger
Per olof Ljungmark wrote:
[ ... ]
Last time I looked at rsync it did not create new directories, perhaps 
that changed? Or maybe I'm completely wrong... I'll have a look at rdiff 
then.
rsync -a should do what you've asked for, including creating new directories 
and dealing with symlinks properly.

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scp+find, a little help please

2003-07-15 Thread Gary Kline
On Tue, Jul 15, 2003 at 05:48:01PM +0200, [EMAIL PROTECTED] wrote:
 
 Hi there,
 
  Need to set up scp to copy only newer files and directories between two 
  computers.
  
  The basic setup is like:
  scp -pr [EMAIL PROTECTED]: host2:/dir
  
  What would be a suitable find command here?
 
 Erm, newer than *what*? find needs a file as a comparison parameter to
 detetermine whether another file is newer than it or not. I assume you
 mean you want to copy only files from host1 to host2 which exist on both
 machines, with host1 potentially holding newer versions that should get
 synchronized to host2. 
 
 Before you break your neck with (absolutely well possible) scripting
 solutions, I suggest you have a look at rsync, which uses SSH for
 transport by default now as well.
 Or maybe check out rdiff-backup, of which a port has just been submitted
 (AFAIK) if a backup is what you're after:
 
 http://rdiff-backup.stanford.edu/
 


Well, I tried both the standford tarballs and the ports'
stuff.  Both fail with this.  Does anybody know what I
need to do to fix this?  ...Before I scrounge around in
the code, that is... .

thanks guys.

gary


===  Building for librsync-0.9.5.1
cd .  automake --gnu --include-deps Makefile
Makefile.am:21: `#' comment at start of rule is unportable
Makefile.am:22: `#' comment at start of rule is unportable
Makefile.am:23: `#' comment at start of rule is unportable
Makefile.am:24: `#' comment at start of rule is unportable
automake: configure.in: required file `./depcomp' not found
/usr/local/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake/am/lang-compile.am: AMDEP does not appear in
AM_CONDITIONAL
gmake: *** [Makefile.in] Error 1
*** Error code 2

Stop in /usr/ports/net/librsync.
*** Error code 1


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]