aboutsummaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2011-08-09 17:05:29 -0700
committerChristopher Tate <ctate@google.com>2011-08-09 17:05:29 -0700
commitde034ec83e2d76db54d1936e706e80853146dcc7 (patch)
tree6429e7fc56f0a21de3945c02e9f7b9e05b1252a8 /adb
parenta24687197d69ac677d176dbc41d5cfd65d1afc44 (diff)
downloadsystem_core-de034ec83e2d76db54d1936e706e80853146dcc7.tar.gz
system_core-de034ec83e2d76db54d1936e706e80853146dcc7.tar.bz2
system_core-de034ec83e2d76db54d1936e706e80853146dcc7.zip
Change default backup filename and terminology
We now use "backup.ab" as the default backup archive filename, and no longer refer to "tar" or "tarfiles" in the help text. The underlying format may be tar, but we're certainly not interoperable even with ustar/pax thanks to our compression & encryption layers and our custom header. Change-Id: I3e74af96cfc102e94848c969eb36af54304bfd9b
Diffstat (limited to 'adb')
-rw-r--r--adb/commandline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index 28bae98e..64fbe168 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -130,11 +130,11 @@ void help()
" that should be included in a bug report.\n"
"\n"
" adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [<packages...>]\n"
- " - Write a tarfile backup of the device's data to <file>.\n"
+ " - Write an archive of the device's data to <file>.\n"
" If a -f option is not supplied then the data is\n"
- " written to \"backup.tar\" in the current directory.\n"
+ " written to \"backup.ab\" in the current directory.\n"
" (-apk|-noapk enable/disable backup of the .apks themselves\n"
- " in the tarfile; the default is noapk.)\n"
+ " in the archive; the default is noapk.)\n"
" (-shared|-noshared enable/disable backup of the device's\n"
" shared storage / SD card contents; the default is noshared.)\n"
" (-all means to back up all installed applications)\n"
@@ -142,7 +142,7 @@ void help()
" the -all or -shared flags are passed, then the package\n"
" list is optional.)\n"
"\n"
- " adb restore <file> - restore device contents from the <file> backup tarfile\n"
+ " adb restore <file> - restore device contents from the <file> backup archive\n"
"\n"
" adb help - show this help message\n"
" adb version - show version num\n"
@@ -575,7 +575,7 @@ static int logcat(transport_type transport, char* serial, int argc, char **argv)
static int backup(int argc, char** argv) {
char buf[4096];
- const char* filename = "./backup.tar";
+ const char* filename = "./backup.ab";
int fd, outFd;
int i, j;