vishal25
Posts: 8
Joined: Wed Jul 06, 2016 11:35 am

How to transfer files from RPi

Fri Jul 07, 2017 9:43 pm

Hello,
I would like to perform two modes of data transfer from Raspberry Pi 3B.
1] What is the best method to transfer files from the RPi 3B (in a remote location) to a Windows 10 machine , both of them connected to the same Wifi network??
2] What is the best method to transfer files from one RPi 3B(in a remote location) to another RPi 3B and vice-versa , both of them connected to the same Wifi network??
Came across the terms SAMBA and SCP while browsing but did not get a proper resource to implement them and was confused :x .
Would be grateful to get a proper solution from experts.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to transfer files from RPi

Fri Jul 07, 2017 10:28 pm

To shift a single file
1. Filezilla or WinSCP using ssh/scp/sftp
2. scp or sftp

If you want to permanently access a Linux filesystem for read/write on Windows use Samba
If you want to permanently access a Linux filesystem on another Linux system use NFS
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mattmiller
Posts: 2245
Joined: Thu Feb 05, 2015 11:25 pm

Re: How to transfer files from RPi

Fri Jul 07, 2017 10:46 pm

I install Samba from here on everyone of my Pi and it makes transferring (and even direct editing) files trivial from my Win10 PC

But never tried using it between two Pi

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: How to transfer files from RPi

Sat Jul 08, 2017 5:39 am

The "best" (how do you measure that?) way to transfer data will depend, in part on how much data is to be transferred. For large amounts of data, sneakernet is surprisingly fast. (That is, write the data to a removable storage device and then carry it to the other device where you can read it.)

vishal25
Posts: 8
Joined: Wed Jul 06, 2016 11:35 am

Re: How to transfer files from RPi

Mon Jul 24, 2017 11:42 am

DougieLawson wrote: To shift a single file
1. Filezilla or WinSCP using ssh/scp/sftp
2. scp or sftp

If you want to permanently access a Linux filesystem for read/write on Windows use Samba
If you want to permanently access a Linux filesystem on another Linux system use NFS
Based on your reply, I understood that for transfer of files between two Pis , for a single file you have recommended SCP and for permanent access , NFS. Am I right?
If so, do you have resources to implement them?

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to transfer files from RPi

Mon Jul 24, 2017 12:02 pm

rsync -va /path/to/data/ user@remote:/path/to/data
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
bensimmo
Posts: 4654
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: How to transfer files from RPi

Mon Jul 24, 2017 12:16 pm

A few option provided here
https://www.raspberrypi.org/documentati ... te-access/
though they don't mention SAMBA shares (as use on RetroPi and lot of windows netwrok setups, though there was a tutorial in MagPi in recent month I think)

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to transfer files from RPi

Mon Jul 24, 2017 10:35 pm

NFS is orders of magnitude better than Samba.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”