This repository has been archived by the owner on Jul 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Usage
ameer1234567890 edited this page Jan 16, 2013
·
14 revisions
- Open terminal emulator
- Type
su
to obtain root - Type
onandroid
- Wait and watch
The behaviour of Online Nandroid can be adjusted by using command line flags, some of which are described in detail below. Each command line flag has its longer counter-part and both forms can be mixed. For a complete list of command line flags and short descriptions, you can type:
onandroid -h
OR
onandroid --help
- Example:
onandroid -c NAME
OR
onandroid --custom NAME
- Please be careful not to include characters not allowed in filenames.
- Example: Use phone timezone for backup file name
onandroid -p
OR
onandroid --phone
- Example: Use UTC (default) for backup file name
onandroid -u
OR
onandroid --utc
- Note: UTC is used as default (if no timezone modifier is passed). This is to comply with CWM nandroid backups.
- Example:
onandroid -o
OR
onandroid --old
- Note: This is the most commonly known, default backup format.
- Example:
onandroid -l
OR
onandroid --split
- Note: This is specifically useful if you have partitions which are over 2GB in size. Use this only if you have CWM 6+.
- Example:
onandroid -i
OR
onandroid --incremental
- Example:
onandroid -gc
OR
onandroid --garbagecollect
- Example:
onandroid -a PARTITIONS
OR
onandroid --advanced PARTITIONS
- Partition letters / names can be found by typing
onandroid -ah
- Example:
onandroid -w
OR
onandroid --twrp
- By default, TWRP backup mode creates compressed backups. If uncompressed backups are required, use it like this:
onandroid -w -ce
OR
onandroid --twrp --compression-enable
- While using custom backup names, Online Nandroid will not allow an already existing backup name to be specified, by default. Trying this will return an error and halt backup. If you want to replace the older backup with a new backup, by using the same custom backup name, you can specify the below command line flag.
- Example:
onandroid -c MyBackup -r
OR
onandroid --custom MyBackup --replace
- Note: This will only work with custom backup names and is not a true replace per se. Online Nandroid will first delete the old backup folder and create a new folder. Thus, if backup halts in the middle of it, for whatever reason, the backup may not be usable at all. So be careful about this flag.