Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Alan Ianson
> Of course, NFS is not really an option if your source machine (or 
> destination) is running Windows.  [In that case, there's always
> Samba!  ;-)

I have seen nfs for windows lately, although I haven't tried it.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Alexander Kaphuk
Wow! Good to know there's an abundance of solutions to a given problem 
that can be explored.


Thanks a lot to all those who have responded to my original email!



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Florian Kriener
On Sunday 29 November 2009 12:23:47 Dave Witbrodt wrote:
> > That's right. I've never used either tool before. Thanks a lot for
> > the tip!
> 
> Sure.  If you're in the mood to learn about every possibility...
> 
> You might also consider NFS:  [...]

Okay, if every possibility is what you want to learn you cannot miss the 
excellent combination of nc and cpio:

On your target (bob):
% cd targetdir
% nc -l -p 6060 alice | cpio -iv

On your source (alice):
% cp sourcedir
% find -print0 | cpio -ov0 | nc bob 6060

nc is short for netcat, it will listen on bob (-l) on port 6060 (-p 
6060) for alice. The input comes from bob, who is sending the message 
via nc. In short it's like a pipe over the network (unencrypted, use 
cryptcat if your network is not trustworthy). cpio (copy in / copy out) 
does the actual data transfer. On bob the mode is copy in (-i) and on  
alice it's copy out (-o). To see what's being transferred you can use (-
v). Finally, you can use find (-print0 / -0) to pipe the names of files 
to be transferred to cpio.

Have fun ;-)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Nick Douma
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dave Witbrodt wrote:
> 
> Of course, NFS is not really an option if your source machine (or
> destination) is running Windows.  [In that case, there's always
> Samba!  ;-)  ]
> 

Not true. You can install Windows Services for Unix, and use that to
mount NFS shares. Of course, Samba is indeed much simpler to use for
Windows.

http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksSX7QACgkQkPq5zKsAFihqqgCfaiIWHqp2687KsnKaQUJP36zR
l1cAn1Sqito1PfRArBpyS0nwy1Q67JVn
=0EIs
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Dave Witbrodt

Alexander Kaphuk wrote:

Dave Witbrodt wrote:

Alexander Kaphuk wrote:

G'day,

I'd appreciate somebody pointing me where to look for info on how to 
copy files from a home directory on one machine to a directory on 
another machine via network.


I've got about 100GB of data I need to copy from my desktop running 
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at 
my home.


I'm not even sure how to word it in just a few words so I can google it.


Maybe simplest way is using 'ssh'.  You can also use 'rsync', but if 
you've never used either before then learning about 'ssh' is arguably 
more important than learning 'rsync'.


First read this:
http://wiki.debian.org/ssh

Then read about 'scp' (included with 'ssh'):
http://en.wikipedia.org/wiki/Secure_copy


HTH,
Dave W.



That's right. I've never used either tool before. Thanks a lot for the tip!


Sure.  If you're in the mood to learn about every possibility...

You might also consider NFS:  it allows you to mount directories from 
one machine on the other machine.  If the userid's are the same on both 
machines, this would be terribly simple and would allow you set up the 
NFS mount using very few (of its long list of) options.  If the userid's 
don't match, then you can:


   a) mount with root privileges, copy the files, and change ownership
  afterward using 'chown -R'

or b) mount with special NFS options to change the userid (and/or
  groupid) -- I sometimes do this using a directory on my GUI
  desktop, and then file copying automatically results in the
  userid/groupid matching your user on the destination machine

Of course, NFS is not really an option if your source machine (or 
destination) is running Windows.  [In that case, there's always

Samba!  ;-)  ]


Just food for thought,
DW


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-29 Thread Alex Samad
On Sun, Nov 29, 2009 at 09:28:18AM +0200, Alexander Kaphuk wrote:
> Andrew M.A. Cater wrote:
> >On Sat, Nov 28, 2009 at 09:42:23PM +0200, Alexander Kaphuk wrote:
> >>G'day,
[snip]

> >cd myfiles
> >
> >rsync -pavz --delete . 192.168.1.2:/home/alex/myfiles/

can I suggest to look at the S & H options sparse files and hardlinks as
well, can save some transferrin time

> >
> >
> >[Copies from the current directory . to the distant directory].
> >
> >-pavz - preserves permissions, archive, verbose, will try to compress files 
> >in transit if appropriate
> >
> >
> >If you don't have rsync, you can use scp -r to recursively copy almost 
> >identically - but the nice thing about
> >rsync is that it will restart cleanly, deleting partially copied
> >files and preserves an internal manifest of which files are up to
> >date. If your 100GB is subject to change in mid transfer, rsync
> >will copy only the files which have changed and catch up.
> >
> >Hope this helps,
> >
> >All the best,
> >
> >Andy
> >
> >
> >
> >
> >
> >
> Thanks a lot for your input and the usage examples!
> 
> I've never done anything like that, so I'm open to any suggestions
> and am willing to give every piece of advice I am given a try.
> 
> 

-- 
union, n.:
A dues-paying club workers wield to strike management.


signature.asc
Description: Digital signature


Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Alexander Kaphuk

Rob Owens wrote:

On Sat, Nov 28, 2009 at 09:42:23PM +0200, Alexander Kaphuk wrote:
  

G'day,

I'd appreciate somebody pointing me where to look for info on how to  
copy files from a home directory on one machine to a directory on  
another machine via network.


I've got about 100GB of data I need to copy from my desktop running  
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my 
home.




You'll have to address the ownership on those files.  If you're only
copying your own files, rsync will handle this for you.  If you're
copying many users' files as root, they will be assigned ownership based
on the UID number.  This will cause a problem under these circumstances:

Computer 1:
user1   UID=1000
user2   UID=1001

Computer 2:
user1   UID=1001
user2   UID=1002

If you transfer files from Computer 1 to Computer 2, user1's files will
end up being owned by no one when they get to Computer 2, and user2's
files will end up being owned by user1 when they get to Computer 2.

-Rob


  

Thanks for your input!

Sounds like my situation belongs to the former category. The files I 
need to transfer from one machine onto another are my own.


Good to know of what happens when dealing with files owned by someone else.

Thanks once again!


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Alexander Kaphuk

Andrew M.A. Cater wrote:

On Sat, Nov 28, 2009 at 09:42:23PM +0200, Alexander Kaphuk wrote:
  

G'day,

I'd appreciate somebody pointing me where to look for info on how to  
copy files from a home directory on one machine to a directory on  
another machine via network.


I've got about 100GB of data I need to copy from my desktop running  
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my 
home.


I'm not even sure how to word it in just a few words so I can google it.

Thanking you all in advance.

Alexander Kapshuk.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a 
subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Add rsync :)

Call the user Alex and the machines One and Two for this example [192.168.1.1 
192.168.1.2]

If you can ssh from One to Two

ssh a...@one Two

or

ssh -l alex 192.168.1.2

mkdir mynewfiles

exit

On One

cd myfiles

rsync -pavz --delete . 192.168.1.2:/home/alex/myfiles/


[Copies from the current directory . to the distant directory].

-pavz - preserves permissions, archive, verbose, will try to compress files in 
transit if appropriate


If you don't have rsync, you can use scp -r to recursively copy almost 
identically - but the nice thing about
rsync is that it will restart cleanly, deleting partially copied files and preserves an internal manifest of which files 
are up to date. If your 100GB is subject to change in mid transfer, rsync will copy only the files which have changed 
and catch up.


Hope this helps,

All the best,

Andy






  

Thanks a lot for your input and the usage examples!

I've never done anything like that, so I'm open to any suggestions and 
am willing to give every piece of advice I am given a try.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Alexander Kaphuk

Dave Witbrodt wrote:

Alexander Kaphuk wrote:

G'day,

I'd appreciate somebody pointing me where to look for info on how to 
copy files from a home directory on one machine to a directory on 
another machine via network.


I've got about 100GB of data I need to copy from my desktop running 
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at 
my home.


I'm not even sure how to word it in just a few words so I can google it.


Maybe simplest way is using 'ssh'.  You can also use 'rsync', but if 
you've never used either before then learning about 'ssh' is arguably 
more important than learning 'rsync'.


First read this:
http://wiki.debian.org/ssh

Then read about 'scp' (included with 'ssh'):
http://en.wikipedia.org/wiki/Secure_copy


HTH,
Dave W.



That's right. I've never used either tool before. Thanks a lot for the tip!



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Rob Owens
On Sat, Nov 28, 2009 at 09:42:23PM +0200, Alexander Kaphuk wrote:
> G'day,
>
> I'd appreciate somebody pointing me where to look for info on how to  
> copy files from a home directory on one machine to a directory on  
> another machine via network.
>
> I've got about 100GB of data I need to copy from my desktop running  
> ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my 
> home.
>
You'll have to address the ownership on those files.  If you're only
copying your own files, rsync will handle this for you.  If you're
copying many users' files as root, they will be assigned ownership based
on the UID number.  This will cause a problem under these circumstances:

Computer 1:
user1   UID=1000
user2   UID=1001

Computer 2:
user1   UID=1001
user2   UID=1002

If you transfer files from Computer 1 to Computer 2, user1's files will
end up being owned by no one when they get to Computer 2, and user2's
files will end up being owned by user1 when they get to Computer 2.

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Andrew M.A. Cater
On Sat, Nov 28, 2009 at 09:42:23PM +0200, Alexander Kaphuk wrote:
> G'day,
>
> I'd appreciate somebody pointing me where to look for info on how to  
> copy files from a home directory on one machine to a directory on  
> another machine via network.
>
> I've got about 100GB of data I need to copy from my desktop running  
> ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my 
> home.
>
> I'm not even sure how to word it in just a few words so I can google it.
>
> Thanking you all in advance.
>
> Alexander Kapshuk.
>
>
> -- 
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a 
> subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Add rsync :)

Call the user Alex and the machines One and Two for this example [192.168.1.1 
192.168.1.2]

If you can ssh from One to Two

ssh a...@one Two

or

ssh -l alex 192.168.1.2

mkdir mynewfiles

exit

On One

cd myfiles

rsync -pavz --delete . 192.168.1.2:/home/alex/myfiles/


[Copies from the current directory . to the distant directory].

-pavz - preserves permissions, archive, verbose, will try to compress files in 
transit if appropriate


If you don't have rsync, you can use scp -r to recursively copy almost 
identically - but the nice thing about
rsync is that it will restart cleanly, deleting partially copied files and 
preserves an internal manifest of which files 
are up to date. If your 100GB is subject to change in mid transfer, rsync will 
copy only the files which have changed 
and catch up.

Hope this helps,

All the best,

Andy






-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Alexander Kaphuk

Eduardo M KALINOWSKI wrote:

Alexander Kaphuk wrote:
  

G'day,

I'd appreciate somebody pointing me where to look for info on how to 
copy files from a home directory on one machine to a directory on 
another machine via network.


I've got about 100GB of data I need to copy from my desktop running 
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my home.


I'm not even sure how to word it in just a few words so I can google it.

Thanking you all in advance.

  



rsync can do it, and you can interrupt transfers and continue later if
necessary. It also preserves permissions, ownership, etc.


  

Thanks a lot!

I'll give it a try.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Dave Witbrodt

Alexander Kaphuk wrote:

G'day,

I'd appreciate somebody pointing me where to look for info on how to 
copy files from a home directory on one machine to a directory on 
another machine via network.


I've got about 100GB of data I need to copy from my desktop running 
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my 
home.


I'm not even sure how to word it in just a few words so I can google it.


Maybe simplest way is using 'ssh'.  You can also use 'rsync', but if 
you've never used either before then learning about 'ssh' is arguably 
more important than learning 'rsync'.


First read this:
http://wiki.debian.org/ssh

Then read about 'scp' (included with 'ssh'):
http://en.wikipedia.org/wiki/Secure_copy


HTH,
Dave W.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org




Re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Eduardo M KALINOWSKI
Alexander Kaphuk wrote:
> G'day,
>
> I'd appreciate somebody pointing me where to look for info on how to 
> copy files from a home directory on one machine to a directory on 
> another machine via network.
>
> I've got about 100GB of data I need to copy from my desktop running 
> ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my home.
>
> I'm not even sure how to word it in just a few words so I can google it.
>
> Thanking you all in advance.
>
>   

rsync can do it, and you can interrupt transfers and continue later if
necessary. It also preserves permissions, ownership, etc.


-- 
Hindsight is an exact science.

Eduardo M KALINOWSKI
edua...@kalinowski.com.br


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



re: copying files from home directory on one machine to directory on another machine

2009-11-28 Thread Alexander Kaphuk

G'day,

I'd appreciate somebody pointing me where to look for info on how to 
copy files from a home directory on one machine to a directory on 
another machine via network.


I've got about 100GB of data I need to copy from my desktop running 
ubuntu 9.04 on to a laptop running Debian Squeeze which are both at my home.


I'm not even sure how to word it in just a few words so I can google it.

Thanking you all in advance.

Alexander Kapshuk.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org