Since internal storage can't be mounted as usb mass storage, i can't use desktop software like synkback for backup modified files.
There is any adb command for backup only modified files from internal storage to desktop folder?
any solution please?
LEENO said:
Since internal storage can't be mounted as usb mass storage, i can't use desktop software like synkback for backup modified files.
There is any adb command for backup only modified files from internal storage to desktop folder?
Click to expand...
Click to collapse
try this (enable usb debugging):
Code:
adb devices
to see if device is connected via adb
Code:
adb pull /name_of_storage/ C:\desktop\name_of_folder
pulling to desktop
Thanks, i think it is for full copy, i need to copy new or modified files
LEENO said:
Thanks, i think it is for full copy, i need to copy new or modified files
Click to expand...
Click to collapse
Code:
adb pull /name_of_storage/name_of_file_or_folder/ C:\desktop\name_of_folder
sent from my Galaxy
There is any option for delete files in destination folder if not exist in source folder?
Related
It hides the clockwork mod backups you make in a folder you can't access via usb mount. I'm wondering if there is a work around because transferring via Wi-Fi is slow. I just wanna put them on an external hard drive and free up the memory on my phone.
ADB is your friend. The best way to do it is to use "adb pull" to copy the backup to your computer.
Or, I suppose you could copy/move the backup to a folder that's visible when you mount the phone and then move it to your computer from there. I never tried it that way. I always get really slow MTP transfer speeds so I prefer using adb.
jr67 said:
ADB is your friend. The best way to do it is to use "adb pull" to copy the backup to your computer.
Or, I suppose you could copy/move the backup to a folder that's visible when you mount the phone and then move it to your computer from there. I never tried it that way. I always get really slow MTP transfer speeds so I prefer using adb.
Click to expand...
Click to collapse
The problem is the folder isn't visible when the phone is on. So moving the backup folder on the phone is impossible.
You need a root explorer to see the folder. I use Total Commander but there are a bunch of other choices. The backup should be located:
/mnt/shell/clockwordmod/backup
or
/mnt/shell/emulated/clockworkmod/backup
(Both are symlinks to a folder or subfolder located in /data/media/)
Even if you can't see the folder as long as you know where the backups are located you can still use adb:
Assuming the backups are in /mnt/shell/emulated/clockworkmod/backup the adb command would be:
adb pull "mnt/shell/emulated/clockwordmod" "C:/CWMbackup"
Folks - Any help would be greatly appreciated.
I was trying to instal CM-10.1 on my U8800, copied the file downloaded from here on my SD card and used CWM to install. Forgot to make a backup (Noob mistake ).
The software didn't fully install and now the the problem is that while I can access both CWM Mod Recovery and the pink screen, I am unable to mound the external sd card (cannot write to ums lunfile) and neither are the drives showing up when I connect to the pc via USB in pink screen.
Very worried on how to install a rom as both internal and external sd cards are inaccessible by pc and phone respectively.
You can use adb push while cwm is running.
Sent from my Nexus 4 using xda premium
enemix said:
You can use adb push while cwm is running.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I'm not sure how to do that. I've just done a few google searches, not sure if I have the right results. Would you have any link/tutorial ?
If you haven't done so already, download and install the Android SDK from developer.google.com.
What you want from it is the debug driver and adb.
Then boot your device into CWM and connect it to computer, use the debug driver from the SDK.
Mount internal storage in CWM and check its mount location.
Open the folder where adb.exe is located on your computer and copy your ROM.zip to that folder.
Open a command prompt there and type "adb devices", your device should show up in the list.
Then type "adb push ROM.zip /mnt/sdcard/ROM.zip" to copy the file. (replace /mnt/sdcard if your internal storage is mounted elsewhere)
Good luck and be careful, I'm just trying to help but I'm not responsible if you do something without using some common sense.
Sent from my GT-p6800 using xda premium
Hi,
I updated my nexus 7 to from PA 4.2 to PA 4.3, before this I did multiple backups using TWRP, TiB and copied the entire contents of my SD card to my computer using adb (adb push and adb pull) on OS X (android file transfer does not work properly and windows kept on not responding, Linux had no space and no write to my OS X partitions or Windows Drive.
After the update I restored apps from TiB, and copied the data folders for some apps (apex launcher backups etc.), my TWRP folder and TiB folder back to my SD card. (using adb again) Then, with adb, I copied some films to a Media folder on the root of my sdcard, I created the folder with adb but now, with any file manager I can't write to the contents of that folder anymore, or change anything. Then I tried to make another, updated TiB backup, but it said insufficient storage space, even for just one app with well over 5GB of free space. Then I tried to do a TWRP backup using offline nandroid backup, however the backup completed in 0 seconds and made no new file or folder in the TWRP folder on sdcard. I then tried in recovery, the backup completed, but upon further inspection no new files or folders were made.
I think the problem is that any folders I have made through adb have no write permissions, even though mounted rw(x). And I cannot change the permissions. ( in Linux would I be able to cd to the directories on my n7 then sudo chmod 755 them?), I already tried this with mobile terminal however on my N7 and had no result. What is the solution for this problem?, should I wipe sdcard and make folders using a file explorer, then use adb to copy files into the premade folders, or just find a way to use Ubuntu to copy the files?
Thanks!
Sent from my Nexus 7
I have fixed it my self by doing this:
I was originally using the link from solid explorer to view and edit my sdcard files, which uses the /sdcard directory on root. For some reason I could not edit files going through /sdcard made from adb on OS X, however, when navigating internal storage through /data/media/0/ I had full permissions and could delete the folders made through adb, making new TiBu Backups and TWRP backups.
I tried using shell through adb to change permissions and remove the directories using:
Code:
adb shell
su chmod 777 /sdcard/(TWRP/TiBu etc...)
and
Code:
adb shell
rm -rf /sdcard/(TWRP/TiBu etc...)
but had permission denied errors.
can anyone help me please i need to retrieve msgstore.db.crypt7 from my internal memory i have rooted my phone and have omega custom rom.i accidentally deleted the whole folder using es file explorer what's app only retrieves the message back 7 days ago and i need to go back further more,i have tried undelete and digger disk both dont find the internal memory i have tried several applications but wont find my phone i have enabled usb debug mode still wont find my phone i have heard recuva works but sgs5 doesnt have usb mass storage but on my pc windows 7 it shows portable device so i can see my internal and external but not through programs can anyone help me please?
bump any help please?
If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.
fffft said:
If you did the smart thing i.e. turned your phone off immediately after you deleted the file, you should be able to recover it. But if you kept mucking around (in addition to not having a backup of your phone), all bets are off. You may well have overwritten the database if you continued to use the phone.
Your best bet would be to copy the area of phone memory where the database is or was. That both preserves a copy of what is recoverable and lets you avail yourself of the large number of PC based data recovery programs available.
The following terminal (CLI) commands should image (make an exact copy) of the /data and /system partitions to your external SD card. Then use a PC based data recovery program to recover the deleted file. Check these commands for typos before executing them. A typo could make a real mess of your phone's file system.
$ su
# dd if=/dev/block/mmcblk0p25 of=/extSdCard/data.img
# dd if=/dev/block/mmcblk0p23 of=/extSdCard/system.img
.
Click to expand...
Click to collapse
Thanks i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage i have enabled usb debug settings i have the samsung usb drivers but it shows up on my windows 7 as a portable device.
do you recommend any decent software or tutorial's which might help me recover it.
Thanks for your help!
xxmcvapourxx said:
i've tried every recovery software for android but it's not detecting any of the internal memory as sgs5 does not have usb mass storage
Click to expand...
Click to collapse
You didn't follow any part of what I suggested, so it's a mystery why you quoted my post. I specifically advocated using PC based data recovery software, not an android app. And at no time would you need your S5 to be in MSC (mass storage) mode.
Use the posted commands to copy your memory contents to a SD card, plug the SD card into a PC and then use a PC based data recovery app. The commands can be entered from a terminal emulator app, TWRP or an ADB shell session CLI.
Good luck
.
This was a bit unexpected. Lollipop is supposed to make using SDCARD (in this case there is NO sdcard) more sensible.
However now I can't copy any files to Nexus in MTP mode. I can do that in P2P mode but only to the picture folders. Any suggestions on that? Selinux setting?
And, yes, I did try making a new folder but no joy. I also noticed I can't see app-specific folders such as titaniumbackup.
Barleyman said:
This was a bit unexpected. Lollipop is supposed to make using SDCARD (in this case there is NO sdcard) more sensible.
However now I can't copy any files to Nexus in MTP mode. I can do that in P2P mode but only to the picture folders. Any suggestions on that? Selinux setting?
And, yes, I did try making a new folder but no joy. I also noticed I can't see app-specific folders such as titaniumbackup.
Click to expand...
Click to collapse
I just upgraded my N10 to Lollipop yesterday. I'm rooted, have SELinux Mode Changer (set to permissive mode) and have USB OTG Helper [root]https://play.google.com/store/apps/details?id=net.shajul.usbotg&hl=en installed. That gives me full unfettered RW access to my OTG SDCard reader. USB OTG Helper expands the number of SDCard file formats that Android supports. I have mine formatted to ext4 to remove the 2GB file limit but thats just my requirement. I used ES File Explorer to access the SDCard and move/copy files, although I'm sure many other file managers would have worked.
I hope that info helps.
It's not an actual SDCARD but the internal emulated sdcard which is being difficult.
Barleyman said:
It's not an actual SDCARD but the internal emulated sdcard which is being difficult.
Click to expand...
Click to collapse
I am in the same boat. I want to restore some apps I backed up in 4.4.4 and lollipop won't read the backup folders in the root directory. I can see and access them via pc, but not through Android. I tried using Titanium & MyBack Up Pro w/ SU access. No dice. Like you, I also tried moving the folders to my Desktop and back. Renaming, creating new folders, etc..., doesn't help.
I can't work around the issue. My current thinking is that we are dealing with a security feature. It seems like all my 4.4.4 folders with user info in them are walled off.
Grrrrr