[Q] Copy large backup directory to PC - Samsung Galaxy Nexus

Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please? Or, alternatively, what other methods of backing straight to the PC are there?
Much obliged!

zkvvoob said:
Hi guys,
I am trying to figure out a way to copy clockworkmod directory to my PC, as the backups are taking up too much unncessary space on the phone. The problem is that via MTP Windows Explorer simply hangs and doesn't copy a thing. My guess is that the underlying issue is the huge number of very small files in the /blob sub-directory.
Could anyone guide me how to accomplish this task, please?
Much obliged!
Click to expand...
Click to collapse
MTP sucks. I prefer to use adb for this: adb pull /sdcard/clockworkmod D:\your\path\here
If you don't want to use the commandline, you can alternatively use an app like ES File Explorer to access a LAN share (shared folder/drive on your computer) and copy files this way.

adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.

Thank you very much, guys! I hadn't realised that adb pull could be used for copying a whole directory.

Reverse of this
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.

grouseuk said:
Can anyone tell me how to reverse this using adb (i.e. move the directory back onto the phone)? Thanks.
Click to expand...
Click to collapse
[GUIDE] How-to copy files from/to your device
from Petrovski's sig

Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.

kbolt said:
Thanks for the help with ADB pull. I knew about the push command, but being the noob I am I would never have thought that the opposite was that simple.
Now I have a GNex and I'm almost out of internal memory. I've copied my entire clockworkmod folder to my PC. I was wondering if I could delete the contents of the clockworkmod folder off of my phone (since it's all on the PC) to regain some storage space, and then only return the deleted contents to the phone when I need to do a nandroid restore without any problems occurring. I wouldn't want to go do all that only to arrive upon a large problem when I try to go back to stock JB JRO03C or anything like that.
Click to expand...
Click to collapse
I want to know this exact answer as well.

if you dont rename the folders, you wont have a problem.

I've found that the GNex toolkit makes it pretty easy to make backups, move them to your PC and restore plus a whole lot more. It's pretty good.
http://forum.xda-developers.com/showthread.php?t=1392310

+1 for adb

Large File Tip
THANK YOU!!
Jubakuba said:
adb pull?
Any time I transfer anything large it's what I use.
Code:
adb pull /sdcard/clockworkmod/ /Backup/
I believe that's the directory.
Just rename the "clockworkmod" folder to whatever it truly is if not.
This will put a "Backup" folder on your C:\ drive.
Edit:
Ninja'd.
Click to expand...
Click to collapse

Unable to see clockworkmod folder through file explorer
HI All,
Am not able to see the clockworkmod folder through File Explorer. Whereas after i take a backup through recovery, i can see the backup exists in /sdcard/clockworkmod/backup.
Please help.

Hi All,
Can anyone help with the above issue?

Use adb pull or an ftp server running on your device.
Sent from my Galaxy Nexus using Tapatalk 2

Related

[Q] 4.2, CWM, Mac, and Android File Transfer

How many Gnex users actually use OSX? Anyway, im wondering about pulling backups of backups to pc. The newest CWM 6.0.1.9 backs up to data/media. Android file transfer won't let me navigate up, so i cant access anywhere other than data/media/0. I could follow a guide here to restore the old file system setup, but i tend to think we're better off getting used to it. How can i get this backup backed-up? adb pull only works for specific files, rather than folders, correct? And would i also need to back up the blobs? Lastly, any hopes that android file transfer would get updated and become more of a file explorer?
I am running the same Android-Mac combination as you do. Since Android File transfer is very buggy on my system, I just abandoned it. Instead, I am using a simple and free FTP Server on my phone:
https://play.google.com/store/apps/details?id=lutey.FTPServer
Once set up and activated, you can use Cyberduck or any other FTP Client of your choice on your Mac to access your phone via WiFi. The user experience is the same as browsing in a proper file explorer, being able to access any folder on your device. And you don't even need wires!
Hope that helps!
CT
PS: I think you have to back up the backup file and the blobs, since the first contains only references to the latter and thus won't let you restore anything without them.
Sent from my Galaxy Nexus using xda app-developers app
FTP issue
Ok so i finally have investigated FTP possibilities. I can make a connection to the sdcard, /mnt/sdcard/. I cannot, however, access the /data/media/ folder which is where the new cwm backups are. I consistently get the command line output : 550, something pertaining to insufficient rights. Any help, suggestions? Its looking like the best way is going to be to move the folder, back it up via usb, then move it back for cwm accessibility. I hesitate bc i finally got a good backup [working bluetooth], and dont want to compromise it. As a side note, root browser lite will not successfully copy and paste the folder. I just get "operation failed". Im pretty sure es will do it, and again i have not yet tried the move option.
BTW, this has been solved: http://forum.xda-developers.com/showpost.php?p=37236515&postcount=5

[Q] How to copy nandroid backup?

Hi,
Is there any way to copy the nandroid backup (and blobs) to the PC without first copying everything over to the sdcard?
Apparently the /data/media is only visible in adb shell as super user and thus am not able to pull those files as normal user.
Thanks
Gaurav
Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know
ahmadallica said:
Why don't you pull the whole "clockworkmod" folder located on your /sdcard/ via adb?
I have pulled it before and I think it would work just fine when pushing it back to the sdcard then restore it but honestly I did not try to push it back later and restore so try it on your own risk then report here for others to know
Click to expand...
Click to collapse
/data directory is not in sdcard and hence I'm failing to pull it via adb. Can adb pull directories with root only permission? What is the command for that?
What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you
ahmadallica said:
What I did some time ago and even tried it now again to confirm is the following:
1- Connect my GNex to Laptop. I am running Ubuntu Linux by the way.
2- Open the Terminal and change directory to Desktop for example by typing: cd Desktop
3- Start the adb server by typing adb devices which should start the adb server and show the list of devices attached which in this case should be your GNex
4- Pull the data from GNex by typing the command: adb pull /sdcard/clockworkmod
5- The files will start being pulled to the directory you specified. In this example it is Desktop
The whole "clockworkmod" directory which is located on the sdcard of your GNex and you can access "without root" wil be pulled to your laptop.
I hope this makes it clear and it is useful to you
Click to expand...
Click to collapse
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.
gauravsri said:
Let me explain that /sdcard/clockworkmod is not used for nandroid backup on my nexus 4. nandroid backups are stored in /data/media/clockworkmod which are only visible as a superuser and not a normal user.
So, my question is whether we can pull that directory (/data/media/clockworkmod) directly via adb instead of first copying it to /sdcard.
Click to expand...
Click to collapse
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/
It does require root access. Anyway, I figured out that if I reboot in recovery mode then adb connects as root user and I'm able to pull the files from that location.
Thanks
Jubakuba said:
That directory should not require root access.
adb pull /data/media/clockworkmod/ /clockworkmod/
A clockworkmod folder will be on your c:\ drive.
And the easiest way to push it back and keep folder integrity is to put the clockworkmod folder in an empty folder...and put it in platform tools.
adb push foldername /data/media/
Click to expand...
Click to collapse
Thanks a lot, i was looking the way to do this.

Need help recovering my files

Okay, so I updated my GSM Galaxy Nexus to the newest nightly of CyanogenMod and it ****ed things up royally, and I neglected to make a backup this time unfortuneatly.
I've tried flashing new ROMs ontop of it, but it doesn't fix the issue.
Right now my device boots, but shows a the home screen without any icons. I also have no navigation bar (app drawer/task manager/back button). Also, Trechbucket FC repeatedly. I can't find any of my files on the phone, even through adb, but when I go into settings and look under STORAGE and click photos, it shows me a gallery of all my photos.
Somehow my SD card is separated into /sdcard/0/ and /sdcard/legacy/ and my photos/downloads/everything is in legacy.
I've tried pulling using adp to grab all of my files, but it says the directory doesn't exist, (maybe I'm doing it wrong). I begun to try to pull the entire /sdcard/ and it did pull close to 2GB of audiobooks I had on there, but it was taking forever and I wanted to selectively pull photos/documents instead. I'm not even sure if I had let it continue if it'd have pulled my photos.
I type in adb pull /sdcard/DCIM /sdcard/ and it tells me that '/sdcard/DCIM' does not exist. I also tried /sdcard/DCIM/ and same thing.
Yet I can find it easily while in shell....
I think it's possible some of my files are hidden? I can use file explorer (by using Settings>Storage>audio>Explorer to see that all my files are under SDCARD/Legacy but I try to adb pull from that and it doesn't exist.
I'm really confused....
Any help either fixing my phone or pulling my data (which is on here) so I can erase/start clean?
I'd much appreciate your help.
Thanks.
A quick search in this forum of 'sdcard 4.2' will explain why this happens.
Anyway, fix is to use adb to pull /data/media (instead of /sdcard)
FriedSushi87 said:
Okay, so I updated my GSM Galaxy Nexus to the newest nightly of CyanogenMod and it ****ed things up royally, and I neglected to make a backup this time unfortuneatly.
I've tried flashing new ROMs ontop of it, but it doesn't fix the issue.
Right now my device boots, but shows a the home screen without any icons. I also have no navigation bar (app drawer/task manager/back button). Also, Trechbucket FC repeatedly. I can't find any of my files on the phone, even through adb, but when I go into settings and look under STORAGE and click photos, it shows me a gallery of all my photos.
Somehow my SD card is separated into /sdcard/0/ and /sdcard/legacy/ and my photos/downloads/everything is in legacy.
I've tried pulling using adp to grab all of my files, but it says the directory doesn't exist, (maybe I'm doing it wrong). I begun to try to pull the entire /sdcard/ and it did pull close to 2GB of audiobooks I had on there, but it was taking forever and I wanted to selectively pull photos/documents instead. I'm not even sure if I had let it continue if it'd have pulled my photos.
I type in adb pull /sdcard/DCIM /sdcard/ and it tells me that '/sdcard/DCIM' does not exist. I also tried /sdcard/DCIM/ and same thing.
Yet I can find it easily while in shell....
I think it's possible some of my files are hidden? I can use file explorer (by using Settings>Storage>audio>Explorer to see that all my files are under SDCARD/Legacy but I try to adb pull from that and it doesn't exist.
I'm really confused....
Any help either fixing my phone or pulling my data (which is on here) so I can erase/start clean?
I'd much appreciate your help.
Thanks.
Click to expand...
Click to collapse
i had this problem and thought I broke my SD card. But after a little exploring I found that Android 4.2 uses a new mounting point for SD card. My old SD card content was in /data/media, new sdcard content is in /data/media/0
I would recommend you either use adb or use terminal emulator to move your old files back to the new location. If you choose to use a file manager to do this, most likely it will be quite slow. I am assuming terminal emulator only does a low level dir path change while a file manager does an actual copy/move
Sent from my Galaxy Nexus using xda premium
DZYR said:
A quick search in this forum of 'sdcard 4.2' will explain why this happens.
Anyway, fix is to use adb to pull /data/media (instead of /sdcard)
Click to expand...
Click to collapse
Thanks so much. That did the job. Now I've just got a weird /0/ directory with everything in it.
coferjinelong said:
i had this problem and thought I broke my SD card. But after a little exploring I found that Android 4.2 uses a new mounting point for SD card. My old SD card content was in /data/media, new sdcard content is in /data/media/0
I would recommend you either use adb or use terminal emulator to move your old files back to the new location. If you choose to use a file manager to do this, most likely it will be quite slow. I am assuming terminal emulator only does a low level dir path change while a file manager does an actual copy/move
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I used ADB because I couldn't access terminal emulator because the phone had a botched update and wasn't working properly.
All's good now except for the fact that I've lost all my text messages..... and stuff...

advanced question - internal and external file transfers

I have a rooted 5x nougat with twrp recovery and stock rom. When I attempt to copy my TWRP backup to my computer via MTP file transfer, I cannot. Same with my titanium backup folder. I also tried to move my TWRP backup to my DCIM folder such that I could try PTP file transfer but that didn't work either.
Indeed, i cannot even transfer files within my own phone's file directory. I'm using root Explorer. I've toggled and made the file system read-write. I tried to change file folder permissions, and that failed.
Any advice Xda family? I have the proper drives installed.
Apologies in advance if my verbiage isn't accurate technically. I'm pretty good with android but by no means an expert.
Mario
File Transfers
I'm not really sure as to why you'd have problems moving files within your phones internal storage, however I do have a solution (work around, really) to your MTP problem, as long as you have ADB working.
I also never got MTP working so I just use a file manager to check the path to the folder I want from my phone to my computer, and then use the command:
Code:
adb pull /path/to/folder/on/phone /path/to/destination/on/computer
And if I want to put something from my computer on my phone, I do the opposite command:
Code:
adb push /path/to/file/on/computer /path/to/destination/on/phone
Additionally, if you really need to move files around on your phone, you can use:
Code:
adb shell
su
mv /path/to/file /path/to/destination
Hope that helps!
Thanks. It does help and I have adb. I'll try that method. I'm not sure why I'm having that issue either.

See root files from pc

Am I the only one who can't figure out how to view and or copy some files from the phone to my pc? Example, I created two zip files on my phone to be copied off for backup. TWRP.zip and Titanium backup.zip but neither is visible when connected from my pc. Chmod and chown also fails through root explorer or terminal. I'm feeling retarded right now...
Where are those zip files located? Somewhere in your root storage or on your sdcard/internal storage?
If it's the latter, try using adb commands to transfer the files to your PC
Or you can use this app called "Handshaker" and see if the files are visible there
CyberpodS2 said:
Am I the only one who can't figure out how to view and or copy some files from the phone to my pc? Example, I created two zip files on my phone to be copied off for backup. TWRP.zip and Titanium backup.zip but neither is visible when connected from my pc. Chmod and chown also fails through root explorer or terminal. I'm feeling retarded right now...
Click to expand...
Click to collapse
If you created zip files in root explorer, did you look in...storage/emulated/0/SpeedSoftware/archives
If yes, then move them to a folder you've already created. Much easier to find that way ?
Yeah I can see the zip files fine on the phone, and I can see most all files from the PC. I created the zip files right in the root of sdcard which is the same as the root of internal shared storage from the PC. I can even browse both the folders TWRP and Titanium backup from Windows Explorer. I even copied the files to a different dir. I'm thinking they being owned by root is the issue. Going to keep plugging. And try the app suggested.
The issue was not here on the 6P. I just zipped up those two dirs and copied them to the pc. Can't copy twrp cause of file names that piss off Windows and tibu has way too may files. Anyway, going to look into the adb thing but if the files are not visible then ???
Also. Thought about otg but the phone insists on formatting the cards as fat32 which have a 2 gig limit lol
Badger50 said:
If you created zip files in root explorer, did you look in...storage/emulated/0/SpeedSoftware/archives
If yes, then move them to a folder you've already created. Much easier to find that way ?
Click to expand...
Click to collapse
Heh one more thing, root explorer ain't working for me. Lol was using jrummy root browser. My bad for the initial problem statement.
CyberpodS2 said:
Heh one more thing, root explorer ain't working for me. Lol was using jrummy root browser. My bad for the initial problem statement.
Click to expand...
Click to collapse
Meh...no biggie bruh. Sorry RE doesn't work. Kinda strange though. It's worked great for me on any rom thus far. Unless it's a f2fs thing? ?
Badger50 said:
Meh...no biggie bruh. Sorry RE doesn't work. Kinda strange though. It's worked great for me on any rom thus far. Unless it's a f2fs thing? ?
Click to expand...
Click to collapse
So how do you back up for TWRP and tibu if you are doing a complete wipe?
CyberpodS2 said:
So how do you back up for TWRP and tibu if you are doing a complete wipe?
Click to expand...
Click to collapse
Set lock screen to swipe. Uninstall all theme overlays. Do my TiBu backup, and save it to my pc. Go to twrp and backup boot, system, and data, and let it rip. Then I save that backup to the pc. Then if I'm installing a new rom, I just do the twrp factory reset thing. I don't wipe system anymore since that seems to foul things up. Which, I still don't quite understand since that was SOP on the 6p ??

Categories

Resources