LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2014, 10:09 PM   #1
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Rep: Reputation: Disabled
How to back-up files from android tablet ?


I'm in high need of backing up my android tablet data because I've to reset the tablet to company defaults as it isn't working properly.
The files of much importance are photos & videos. I'm not getting a way to back up data which will retain the time stamp.

Through command line, I tried using tar in my Ubuntu13.04 laptop.
Code:
ravbholua@ravbholua-Aspire-5315:/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/9$ tar -cvf /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/jackal.tar .
./
tar: ./33: Cannot open: Operation not supported
tar: ./34: Cannot open: Operation not supported
tar: ./35: Cannot open: Operation not supported
tar: ./36: Cannot open: Operation not supported
tar: ./37: Cannot open: Operation not supported
tar: ./38: Cannot open: Operation not supported
./50/
./50/62/
tar: ./50/209: Cannot open: Operation not supported
tar: ./50/210: Cannot open: Operation not supported
tar: ./50/211: Cannot open: Operation not supported
tar: ./50/216: Cannot open: Operation not supported
tar: ./50/217: Cannot open: Operation not supported
tar: ./50/218: Cannot open: Operation not supported
./50/236/
./50/249/
tar: ./50/903: Cannot open: Operation not supported
tar: ./50/904: Cannot open: Operation not supported
tar: ./50/905: Cannot open: Operation not supported
tar: ./50/906: Cannot open: Operation not supported
tar: ./50/907: Cannot open: Operation not supported

ravbholua@ravbholua-Aspire-5315:/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/9$ sudo tar -cvf /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/jackal.tar .
[sudo] password for ravbholua: 
tar: .: Cannot stat: Permission denied
tar: Exiting with failure status due to previous errors
I haven't tried any other command though as it seems they also won't work.

Through GUI via nautilus, though I'm able to copy & paste the files from tablet to laptop but the time stamp can't be retained. I've this thread for this.

If not in laptop, can the data be directly transferred to external HDD. But that also doesn't seem to be possible as both tablet & external HDD have micro usb port but the cable I got with tablet has micro usb at one end & usb at the other end; the same with the cable of HDD.
 
Old 06-20-2014, 04:41 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,866

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Recent android versions (i.e. all but ancient ones) use libmtp. Try libmobiledevice, or search this site properly. Loads of answers already
 
Old 06-22-2014, 03:47 AM   #3
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Yes, I've got the solution. See there were 2 options for connecting tablet. 1) Media device (MTP) 2) Camera (PTP)

I'd been using the 1st one where via command line I was failing to do & via GUI, I wasn't able to retain the time stamp. This option uses mtp to connect. See attachment named 'mtp'.

Then yesterday, it stroked my mind & I connected via the 2nd option , i.e. camera. Now via GUI (shotwell software), I was able to import the files. Then in nautilus, I found it was connected not via mtp but gphoto2. See attachment named 'gphoto2'.

Now I was able to use the command line & copy via cp -a command retaining the time stamp & it worked. Now I know all command line commands like tar will work as with any external HDD or pen-drive. A great relief!
Attached Thumbnails
Click image for larger version

Name:	mtp.png
Views:	19
Size:	128.1 KB
ID:	15774   Click image for larger version

Name:	gphoto2.png
Views:	19
Size:	132.4 KB
ID:	15775  
 
1 members found this post helpful.
Old 06-22-2014, 10:21 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,866

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Having mastered bluetooth here, I've gone bone idle and use an sd card. As my laptop has a card reader, that takes pain out of any such effort.
 
Old 06-23-2014, 04:20 PM   #5
/awk/
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by ravisingh1 View Post
I'm in high need of backing up my android tablet data because I've to reset the tablet to company defaults as it isn't working properly.
A few years ago this was a breeze to do in linux because android used the USB mass storage protocol for easy drag-and-drop ease. Today, it's been replace with MTP.

There is a free app in the google play store called Airdorid. It uses the web browser to interact with the device. You can upload and download files between the android device and the computer.

Another option is a free linux program called PCManFM, It's a file manager that can mount mtp devices.

Last edited by /awk/; 06-23-2014 at 04:23 PM.
 
1 members found this post helpful.
Old 06-23-2014, 04:31 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,267

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
good point. but from what i understand airdroid (and most/all non-rooted/r00ted apps) dont have access to the android filesystem.

i am trying to copy a nexus-5 nandroid backup to my pc. i copied data.ext3.tar.a and system.ext3.tar.a to /system/emulated/sdcard/Download/ but only the old files show up on my pc when plugged in.

was a breeze on my galaxy-s2.
 
Old 06-23-2014, 04:48 PM   #7
/awk/
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
@ schneidz

When I use Airdroid it works fine on folders where you can upload and download files from. I think it depends on the device and how its permissions are setup by the manufacturer.
 
Old 06-23-2014, 07:27 PM   #8
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 399

Rep: Reputation: Disabled
I use ES File Explorer, which can access samba/windows shares, and has a zip/compression setting to make zip files.
 
Old 06-23-2014, 11:00 PM   #9
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian
Posts: 1,054

Rep: Reputation: 281Reputation: 281Reputation: 281
There are a number of backup solutions for Android. I prefer Titanium Backup. I have it do regular scheduled backups to both my external SD card and to cloud storage. It needs root to really do the job properly, but one of the first things I do with an Android device is to root it.
 
  


Reply

Tags
android, backup, ubuntu 13.04


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
LXer: Twitter Launches An Android Tablet Optimized App For The First Time On One Tablet LXer Syndicated Linux News 0 10-12-2013 02:25 AM
[SOLVED] Android tablet vs. Linux tablet, pros and cons of each one? Hungry ghost Linux - Mobile 6 05-26-2013 10:29 AM
apple or android tablet? future_computer Linux - Mobile 28 03-30-2013 05:56 PM
android tablet sherwiner Linux - Newbie 1 04-19-2011 07:21 PM
Encoding h264 files for Android 28 tablet RedNeck-LQ General 3 03-03-2011 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 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