Re: backup file to win98 system

2008-09-17 Thread Fabian Cenedese
At 14:35 17.09.2008 +0530, you wrote:
Hi...rsync working fine for my fedora 5 box to fedora 9 box.  Now i want to 
take back of my folder /home/rajiv to a windows 98 box...Shared a folder in 
win98 system for full access but do not know how to take backup...tried with 
the following but got error message
[EMAIL PROTECTED] ~]# rsync -aPrv /data/stock/ 
//http://192.168.1.75/dir192.168.1.75/dir
sending incremental file list
rsync: mkdir //http://192.168.1.75/dir192.168.1.75/dir failed: No such 
file or directory (2)
rsync error: error in file IO (code 11) at main.c(567) [receiver=3.0.2]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(635) 
[sender=3.0.2]

rsync -aPrv /home/rajiv/ //http://192.168.1.75/dir/192.168.1.75/dir/

ip 75 is my win98 systemis it possible to do this?

You need to mount your Win98 partition, then you can access it like:

rsync /source /mnt/Win98partition

If you don't want that you need to run rsync on Win98 as server.
Look out for cwrsync (rsync with cygwin). But I don't know if
or how good that works on Win98.

bye  Fabi


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


backup file to win98 system

2008-09-17 Thread Rajiv Nair
Hi...rsync working fine for my fedora 5 box to fedora 9 box.  Now i want to
take back of my folder /home/rajiv to a windows 98 box...Shared a folder in
win98 system for full access but do not know how to take backup...tried with
the following but got error message
[EMAIL PROTECTED] ~]# rsync -aPrv /data/stock/ //192.168.1.75/dir
sending incremental file list
rsync: mkdir //192.168.1.75/dir failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(567) [receiver=3.0.2]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(635)
[sender=3.0.2]



rsync -aPrv /home/rajiv/ //192.168.1.75/dir/

ip 75 is my win98 systemis it possible to do this?

Please post ur reply

Rajiv.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: using rsync to transfer only files and not sub-directories

2008-09-17 Thread Meeaz

Thanks. We have:-

rsync  version 2.6.3  protocol version 28

Does the -d option work for the version above?

Thanks



Matt McCutchen-7 wrote:
 
 On Tue, 2008-09-16 at 12:30 -0700, Meeaz wrote:
 I am trying to rsync contents of a directory while making sure that
 only files under that directory are synched and not the contents
 of any sub-directory under that dir. I know that I will have to use
 the include/exclude option but not sure how.
 
 The following will copy the subdirectories themselves but not their
 contents:
 
 rsync -d SRC/ DEST/
 
 If you don't want the subdirectories at all, do this:
 
 rsync -d --exclude='*/' SRC/ DEST/
 
 Matt
 
 -- 
 Please use reply-all for most replies to avoid omitting the mailing list.
 To unsubscribe or change options:
 https://lists.samba.org/mailman/listinfo/rsync
 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
 
 

-- 
View this message in context: 
http://www.nabble.com/using-rsync-to-transfer-only-files-and-not-sub-directories-tp19518813p19531958.html
Sent from the Samba - rsync mailing list archive at Nabble.com.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


corrupt copy a 10GB file with sparse option

2008-09-17 Thread Gerardo Exequiel Pozzi
Hi,

Filesystem is a XFS.

The source file isn't a sparse file, but have big chunks of \0's.

$ ls -lh probeta.vdi
-rw--- 1 djgera djgera 11G 2008-09-14 02:47 probeta.vdi
$ ls -l probeta.vdi
-rw--- 1 djgera djgera 10737459712 2008-09-14 02:47 probeta.vdi
$ du -h probeta.vdi
11G probeta.vdi

when copy with

$ rsync -aSv --progress probeta.vdi test-sparse.vdi
sending incremental file list
probeta.vdi
 10737459712 100%   44.91MB/s0:03:48 (xfer#1, to-check=0/1)

sent 10738770533 bytes  received 31 bytes  46996807.72 bytes/sec
total size is 10737459712  speedup is 1.00

the result is a small file:

$ ls -lh test-sparse.vdi
-rw--- 1 djgera djgera 6.1G 2008-09-14 02:47 test-sparse.vdi
$ ls -l test-sparse.vdi
-rw--- 1 djgera djgera 6442492416 2008-09-14 02:47 test-sparse.vdi
$ du -h test-sparse.vdi
3.0Gtest-sparse.vdi

Copying, without sparse options are copied ok.

I have other 11GB files, but less chunks of \0's and these are copied OK
(size of file are exact of the original, and real space used are less)


$ uname -a
Linux djgera 2.6.24.7 #1 SMP PREEMPT Wed Sep 17 02:03:53 ART 2008 i686
AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux
$ rsync --version
rsync  version 3.0.4  protocol version 30
Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

Thanks in advance

-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: using rsync to transfer only files and not sub-directories

2008-09-17 Thread Matt McCutchen
On Wed, 2008-09-17 at 06:19 -0700, Meeaz wrote:
 Thanks. We have:-
 
 rsync  version 2.6.3  protocol version 28
 
 Does the -d option work for the version above?

No, -d was added in 2.6.4.  With such an old version, you'll have to use
the following if you want the subdirectories themselves:

rsync -r --exclude='*/*' SRC/ DEST/

or the following if you don't:

rsync -r --exclude='*/' SRC/ DEST/

Matt

 Matt McCutchen-7 wrote:
  
  On Tue, 2008-09-16 at 12:30 -0700, Meeaz wrote:
  I am trying to rsync contents of a directory while making sure that
  only files under that directory are synched and not the contents
  of any sub-directory under that dir. I know that I will have to use
  the include/exclude option but not sure how.
  
  The following will copy the subdirectories themselves but not their
  contents:
  
  rsync -d SRC/ DEST/
  
  If you don't want the subdirectories at all, do this:
  
  rsync -d --exclude='*/' SRC/ DEST/

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html