LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices


Reply
  Search this Thread
Old 05-02-2018, 12:55 PM   #1
shams
Member
 
Registered: Jan 2004
Posts: 467

Rep: Reputation: 30
how sync folders between mobile and pc?


I installed the SSHelper in the samsung C7 mobile and connected with ssh to the port 2222 from my ubunut 18.04 laptop i open the sdcard in a terminal here is:
Code:
u0_a206@msm8953:/data/data/com.arachnoid.sshelper/home/SDCard/test
Now i want to rsync the folder test in the mobile with the /store/stuff/test folder form my laptop i run this commmand inside the mobile test folder:
Code:
u0_a206@msm8953:/data/data/com.arachnoid.sshelper/home/SDCard/test $rsync -avr /store/stuff/test/ ./
get the error:
Code:
rsync: change_dir "/store/stuff/test" failed: No such file or directory
 
Old 05-02-2018, 01:23 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 / Slackware 14.2 current / Manjaro / Parrot
Posts: 6,884

Rep: Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393
try absolute path not partial path?
if that /store dir is not on the root dir mount.

~/store/.../...
equates to
/home/user/store/.../...


/store/... is mount point parent dir.
 
Old 05-05-2018, 11:10 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 467

Original Poster
Rep: Reputation: 30
Thanks for reply the path is absolute, the / partition is /dev/sda3 and the store partition is /dev/sda6.
 
Old 05-06-2018, 08:04 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,696
Blog Entries: 7

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Quote:
Originally Posted by shams View Post
Code:
rsync: change_dir "/store/stuff/test" failed: No such file or directory
the message is clear.
is this /store/stuff/test on your phone or on your computer?
what is the output of
Code:
ls -ald /store/stuff/test
 
Old 08-11-2018, 05:51 PM   #5
zpimp
Member
 
Registered: Oct 2014
Posts: 70

Rep: Reputation: Disabled
why that ssh from ubuntu
just use termux and run rsync from android

just rsync -avz /storage/emulated/0/download username@192.168.0.101:/home/username/download

192.168.0.101 being your computer/desktop ip
replace paths accordingly
i searched a lot for how to rsync on android, this is from memory
if it doesent work, ill search the exact command
make sure you have the rsync service started on the pc
might work from pc but i didnt try it, since you dont have user/password on android
 
Old 10-08-2018, 12:06 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,696
Blog Entries: 7

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Quote:
Originally Posted by danel95 View Post
that’s exactly what I was looking for these past few days, I was struggling with that too, your answers helped a lot, thank you
can you please clarify what exactly helped you?
this thread never provided a solution, so it might be helpful for others too.
 
Old 10-08-2018, 04:21 AM   #7
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 2,626

Rep: Reputation: Disabled
Looks like he used
Code:
rsync -avz /storage/emulated/0/download username@192.168.0.101:/home/username/download
to send from his Android to his PC.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sync two folders JJJCR Linux - General 4 03-09-2015 03:44 AM
sync folders guna_pmk Linux - Desktop 3 04-06-2012 07:36 AM
Sync folders and sub-folders between two centos webservers baldur2630 Linux - Software 1 03-26-2012 01:50 PM
am able to browse folders on mobile but can't connect to laptop from mobile daudiam Linux - Newbie 1 06-29-2010 09:58 AM
Sync Mail-folders (IMAP) Baumi Linux - Networking 4 12-20-2005 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration