Logging problem

2003-07-29 Thread René van der Kroft


Hi,

I'm using rsync version 2.5.5 on OpenBSD 3.3 to backup the users /home 
directory over the Internet. It's started by a cron job every night. For 
logging I've add the -vv parameter and redirect the output to a logfile. 
Like this:

rsync -vv --stats --archive --delete --backup --backup-dir=/home/backupdir 
--compress --rsh 'ssh -2 -i keyfile.key' /home 
[EMAIL PROTECTED]:/home/backup/current >/home/logs/date.log 2>&1

All the files are transferred successfully but logging doesn't work OK. 
When I add a file into the /home directory rsync picks him up and transfers 
him to the server, but when I look into the logfile he says that the file 
is uptodate and did not transfer anything. That's strange because the new 
file is on the server...

Also when I check the server Internet statistics I see that the outgoing 
traffic is much bigger than the incoming traffic (23M IN, 35M OUT). Is this 
correct???

Does anybody know a solution?

Thanks for the help.

René
The Netherlands
 

--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Logging problem

2003-07-29 Thread jw schultz
On Tue, Jul 29, 2003 at 10:55:56AM +0200, René van der Kroft wrote:
> 
> 
> Hi,
> 
> I'm using rsync version 2.5.5 on OpenBSD 3.3 to backup the users /home 
> directory over the Internet. It's started by a cron job every night. For 
> logging I've add the -vv parameter and redirect the output to a logfile. 
> Like this:
> 
> rsync -vv --stats --archive --delete --backup --backup-dir=/home/backupdir 
> --compress --rsh 'ssh -2 -i keyfile.key' /home 
> [EMAIL PROTECTED]:/home/backup/current >/home/logs/date.log 2>&1
> 
> All the files are transferred successfully but logging doesn't work OK. 
> When I add a file into the /home directory rsync picks him up and transfers 
> him to the server, but when I look into the logfile he says that the file 
> is uptodate and did not transfer anything. That's strange because the new 
> file is on the server...

The "is uptodate" is reporting that the file metadata was
not changed.

> Also when I check the server Internet statistics I see that the outgoing 
> traffic is much bigger than the incoming traffic (23M IN, 35M OUT). Is this 
> correct???

If the size or modtime differs the receiver will
send approximately 6 bytes for every 700 (0.9%) to the
sender.  If there isn't any change in the file the sender
only instructs the receiver to do a local copy of the data
in huge chunks.  Those copy instructions don't take much
bandwidth.  Even accounting for the file-list with metadata
the sender transmits it is perfectly reasonable to see what
you report.


> Does anybody know a solution?

Take 2 drachms of sulphuret of lime and 2 drachms tartaric
acid; powder, mix and shake in a stoppered bottle with a
pint of water; let it settle, pour off the clear liquid and
add 1 1/2 ounces tartaric acid.
-- to be used for the detection of lead in wine.


-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: compression and encryption

2003-07-29 Thread cbarratt
> I've been thinking about adding the capability to store files compressed 
> and/or encrypted on either side of the rsync transfer. Let's say there's 
> a storage space provider. I want to store my files on that server 
> compressed (so I don't use more paid space than I need), and encrypted 
> (so they can't read my data).
>
> [snip]
>
> Any thoughts or opinions? Any existing work that I should be aware of? 

You could look at BackupPC, http://backuppc.sourceforge.net, which does
compression of server side files with rsync.  It stores file attributes
separate from the compressed files, so it can compare the correct size
to the sender's side file list.  It also only stores identical files
once, including files with different names or from different machines.

Craig
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Basic doubts

2003-07-29 Thread Abhilash Vantaram
Hi all,
   I am very new to the rsync world (as well as the linux world) and have 
some really basic doubts. Please bear with me.
   I installed RH 9 on two systems in the same network and Rsync 2.5.5 was 
automatically installed with it. When I executed the command “rsync –avz 
test.txt /backupdir/ ”, it backed up the file test.txt into 
backupdir/test.txt. But when I tried the command “rsync –avz test.txt 
system2::home/” , it gave me the following:
“system2 connection refused.
 Rsync: connection unexpectedly closed.
 Rsync error: error in protocol data stream(code 12) at 
IO.c(150)”
System2 has a fully qualified domain name.
Could anyone please tell me if I have to start the Rsync server and if yes, 
how to do it.
Thank you,
AV

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Basic doubts

2003-07-29 Thread jw schultz
Please fix your mailer.  The text contains garbage
characters.  Also, don't indent the start of paragraphs.

On Wed, Jul 30, 2003 at 12:18:52AM +, Abhilash Vantaram wrote:
> 
> Hi all,
>I am very new to the rsync world (as well as the linux world) and have 
> some really basic doubts. Please bear with me.
>I installed RH 9 on two systems in the same network and Rsync 2.5.5 was 
> automatically installed with it. When I executed the command ?rsync ?avz 
> test.txt /backupdir/ ?, it backed up the file test.txt into 
> backupdir/test.txt. But when I tried the command ?rsync ?avz test.txt 
> system2::home/? , it gave me the following:
> ?system2 connection refused.
>  Rsync: connection unexpectedly closed.
>  Rsync error: error in protocol data stream(code 12) at 
> IO.c(150)?
> System2 has a fully qualified domain name.
> Could anyone please tell me if I have to start the Rsync server and if yes, 
> how to do it.
> Thank you,
> AV

You don't have an rsync service running.

Take your time reading the manpage section about the eight
different ways of using rsync.  Anything i said here would
just be duplicating that document.


-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


EOF error at io.c line 165

2003-07-29 Thread Thomas Cort
Hello All,
I keep getting rsync: connection unexpectedly closed (1074142 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165). Does
anyone have any idea of what could cause this? I've gotten the same error on
two seperate machines. One UltraSparc running Linux and the other a 
SparcStation running OpenBSD. We have an x86-SMP system running linux on the
same network, and it works fine.
-Thomas <[EMAIL PROTECTED]>
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: EOF error at io.c line 165

2003-07-29 Thread jw schultz
On Wed, Jul 30, 2003 at 12:33:45AM -0400, Thomas Cort wrote:
> Hello All,
> I keep getting rsync: connection unexpectedly closed (1074142 bytes read so far)
> rsync error: error in rsync protocol data stream (code 12) at io.c(165). Does
> anyone have any idea of what could cause this? I've gotten the same error on
> two seperate machines. One UltraSparc running Linux and the other a 
> SparcStation running OpenBSD. We have an x86-SMP system running linux on the
> same network, and it works fine.
> -Thomas <[EMAIL PROTECTED]>

It means the connection was unexpectedly closed.  This
message is often preceded with a message telling why the
other end of the connection closed it.  If not, you will
need to look to the other end for info.

-- 

J.W. SchultzPegasystems Technologies
email address:  [EMAIL PROTECTED]

Remember Cernan and Schmitt
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html