[Android Software/Hacking General [Developers Only]] mal93:
Hi, is there a way to do a nandroid +ext backup directly to pc?

i'm trying to change my sd card (2gb) to a bigger one (8gb). i heard i have to backup and restore the nadroid + ext backup to preserve the application installed, i'm using app2sd. rooted p500 optimus one.

I can acces the phone in recovery mode but if i do a nandroid +ext backup i have a error: "Error : Run 'nandroid-mobile.sh' via adb!"

this is probably because i don't have space to do the backup in the sd.

i want to do the backup directly to pc using adb.

i started with ('im using ubuntu)

cd *adb folder*
sudo su
./adb shell

and then i went to the nadroid backup help via adb:

/ # /sbin/nandroid-mobile.sh --help
Usage: /sbin/nandroid-mobile.sh {--backup|--restore|--getupdate|--delete|--compress|--bzip2:ARG|--webget:URL|--listbackup|--listupdate} [options]

--help Display this help

-s | --subname: SUBSTRING In case of --backup the SUBSTRING is
the prefix used with backup name
in case of --restore or -c|--compress|--bzip2 or
--delete SUBSTRING specifies backups on which to
operate

-u | --getupdate Will search /sdcard/download for files named
*update*.zip, will prompt the user
to narrow the choice if more than one is found,
and then move the latest, if not unique,
to sdcard root /sdcard with the update.zip name
It is assumed the browser was used to put the *.zip
in the /sdcard/download folder. -p|--path option
would override /sdcard/download with the path of your
choosing.

-p | --path DIR Requires an ARGUMENT, which is the path to where
the backups are stored, can be used
when the default path /sdcard/nandroid/mem=471M
needs to be changed

-b | --backup Will store a full system backup on /sdcard/nandroid/mem=471M
One can suppress backup of any image however with options
starting with --no[partionname]

-e | --ext Preserve the contents of the ext partition along with
the other partitions being backed up, to easily switch roms.

-r | --restore Will restore the last made backup which matches --subname
ARGUMENT for boot, system, recovery and data
unless suppressed by other options
if no --subname is supplied and the user fails to
provide any input then the latest backup is used
When restoring compressed backups, the images will remain
decompressed after the restore, you need to use -c|-compress
or --bzip2 to compress the backup again

-d | --delete Will remove backups whose names match --subname ARGUMENT
Will allow to narrow down, will ask if the user is certain.
Removes one backup at a time, repeat to remove multiple backups

-c | --compress Will operate on chosen backups to compress image files,
resulting in saving of about 40MB out of 90+mb,
i.e. up to 20 backups can be stored in 1 GIG, if this
option is turned on with --backup, the resulting backup will
be compressed, no effect if restoring since restore will
automatically uncompress compressed images if space is available

--bzip2: -# Turns on -c|--compress and uses bzip2 for compression instead
of gzip, requires an ARG -[1-9] compression level

--webget: URL|"" Requires an argument, a valid URL for an *update*.zip file
If a null string is passed then the default URL is used
Will also create an update.MD5sum file and update.name with the
original file name.

--nameserver: IP addr Provide the first nameserver IP address, to override the default

--nameserver2: IP addr Provide the second nameserver IP address, to override the default

--webgettarget: DIR Target directory to deposit the fetched update, default is
/sdcard

--norecovery Will suppress restore/backup of the recovery partition
If recovery.img was not part of the backup, no need to use this
option as the nandroid will not attempt to restore it, same goes
for all the options below

--noboot Will suppress restore/backup of the boot partition

--nodata Will suppress restore/backup of the data partition

--nosystem Will suppress restore/backup of the system partition

--nocache Will suppress restore/backup of the cache partition

--nomisc Will suppress restore/backup of the misc partition

--nosplash1 Will suppress restore/backup of the splash1 partition

--nosplash2 Will suppress restore/backup of the splash2 partition

--defaultinput Makes nandroid-mobile non-interactive, assumes default
inputs from the user.

--autoreboot Automatically reboot the phone after a backup, especially
useful when the compression options are on -c|--compress|
--bzip2 -level since the compression op takes time and
you may want to go to sleep or do something else, and
when a backup is over you want the calls and mms coming
through, right?

--autoapplyupdate Once the specific update is downloaded or chosen from the
sdcard, apply it immediately. This option is valid as a
modifier for either --webget or --getupdate options.

-e|--ext Save the contents of ext partition in the backup folder too.
Enables to keep different sets of apps for different ROMS and
switch easily between them.

--save: ROMTAG Preserve EVERYTHING under ROMTAG name, a composite option,
it uses several other options.

--switchto: ROMTAG Restores your entire environment including app2sd apps, cache
to the ROM environment named ROMTAG.

-q|--quiet|--silent Direct all the output to the recovery log, and assume default
user inputs.

-l|--listbackup Will search the entire SDCARD for backup folders and will dump
the list to stdout for use by the UI. Should be run with --silent

--listupdate Will search the entire SDCARD for updates and will dump
the list to stdout for use by the UI. Should be run with --silent

now the option is this, how can i change to path to mmy computer hard drive

-p | --path DIR Requires an ARGUMENT, which is the path to where
the backups are stored, can be used
when the default path /sdcard/nandroid/mem=471M
needs to be changed

what would be the complete command to do the ext + nadroid backup via adb?