yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Guides, News, & Discussion] THEbigSWEEN:
Just to add a little extra info, if you ever did have trouble restoring in the future due to lockscreen or something similar (which shouldn't be an issue just using TB, more of a TWRP thing) there's a file you can modify or delete that will remove the lock/pattern/fingerprint etc. I believe it was either the 6P or OG Pixel it was an issue with restoring TWRP backups and you had to delete that certain file. As for substratum and themes, there's a theme remover zip that you can flash that will disable all active overlays and I believe they also have a button combo you can do when the device is booting that will disable active themes. Just a little extra piece of mind for you, you shouldn't have any issues and in the off chance something does happen there are almost always work-arounds. The joy of using Android :cool:

Also as mentioned, restoring user apps shouldn't give you issues, just with things like banking apps you'll usually have to re-enter the username and password as they will more than likely recognize that it's a new/different device logging in. Usually happens after restoring when switching ROMs too due to the Android ID changing.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Deleting the locks screen files on the P2XL will cause you not to boot into the OS. The 6p was fine with that, but not P2XL!!
[Google Pixel 2 XL Guides, News, & Discussion] Felosis:
Thanks for all the further clarification guys! My main concern were the auth apps I use, which seems the majority should be fine on a restore. I do a full TiBu anyway cause if I can get my userdata apps to restore that's great, but if not I don't mind starting from scratch short of my auth apps!. :good:
[Google Pixel 2 XL Guides, News, & Discussion] THEbigSWEEN:
Welp, good to know! I think there was only a couple times on the 6P that I had to do that anyway, so luckily haven't had the need to test it on the 2XL and now that I know if the issue does pop up not to rely on that workaround!
[Google Pixel 2 XL Guides, News, & Discussion] epadawan:
Thank you! Worked perfectly. :) Don't forget that apps like Allo or WhatsApp won't back up with these commands. Instead, you need to start the backup process inside the app.
[Google Pixel 2 XL Guides, News, & Discussion] MrBrady:
Wow, awesome! Thanks so much for these ADB commands.
[Google Pixel 2 XL Guides, News, & Discussion] bajasur:
Where does the generated backup go?

It did not back up to Google drive for me
[Google Pixel 2 XL Guides, News, & Discussion] ilal2ielli:
Weird. Mine ends up in my Google drive.

Does your Backup on the phone show the updated time stamp?
[Google Pixel 2 XL Guides, News, & Discussion] garnet&gold:
In drive, click the hamburger menu, the backup folder is about 2/3 of the way down on the left.
[Google Pixel 2 XL Guides, News, & Discussion] bajasur:
Ok cool

So after running the back up in adb, go into drive and check for backup?
[Google Pixel 2 XL Guides, News, & Discussion] garnet&gold:
I've not hard to force a backup using adb. I went into drive to see if it was backing up automatically after checking settings /system / backup was on. I see I have backups for my 2 previous nexus devices and now this pixel in there already.
[Google Pixel 2 XL Guides, News, & Discussion] MrPhilo:
Hi all, in my setting the option in backup is 'no account is currently storing backup data' this wasnt happening before, I did disable the Google App and Assistant etc before this happened. Now I've re-enabled them and it still greyed out. I have wiped data in the Google apps and it asked me to choose a backup which I selected but it is still greyed out.

I have tried the following commands and get

OnePlus5T:/ $ bmgr backupnow --all

Running incremental backup for all packages.

Backup finished with result: Transport error

Unable to run backup

I checked what transport I have

OnePlus5T:/ $ bmgr list transports

android/com.android.internal.backup.LocalTransport

I'm missing the google backup, I have wiped data and cache from Google Transport in System apps but still the same issue.

I would prefer not to have to start fresh and hopefully someone here can help me :P

Thanks
[Google Pixel 2 XL Guides, News, & Discussion] JedixJarf:
Yep, all the more reason to be very careful and aware of where your backups are being stored, as anyone with access to the files can restore most apps like authenticators, PayPal, eBay without the need of your logins ;)
[Google Pixel 2 XL Guides, News, & Discussion] kerngehirn:
You are my hero
[Google Pixel 2 XL Guides, News, & Discussion] slavislavi:
Important thing is which transport is default - marked with star.

mido:/ $bmgr enabled

mido:/ $ bmgr list transports

android/com.android.internal.backup.LocalTransport

com.google.android.gms/.backup.migrate.service.D2dTransport

* com.google.android.gms/.backup.BackupTransportService

change it to default in adb shell ofcourse

mido:/ $ bmgr transport com.google.android.gms/.backup.BackupTransportService

Selected transport com.google.android.gms/.backup.BackupTransportService

bmgr backupnow --all

backup on google drive should work now
[Google Pixel 2 XL Guides, News, & Discussion] davinder5549:
This is Great man who find the way to Bypass backup:good:
[Google Pixel 2 XL Guides, News, & Discussion] shaqib.khan:
How to fix transport error
[Google Pixel 2 XL Guides, News, & Discussion] siddhesh.raikar:
I was having that issue, flashed the factory image without the "-w", which fixed it.

My issue was probably coming from either a custom kernel or a magisk mod that I may have been using. So, going back to stock fixed it.
[Google Pixel 2 XL Guides, News, & Discussion] shaqib.khan:
What is without the "-w"??
[Google Pixel 2 XL Guides, News, & Discussion] siddhesh.raikar:
Download the factory image and unzip it. You'll see a flash-all file in the unzipped folder, edit it using notepad.

You need to remove the "-w" from the flash-all bat/sh file before you flash the factory image. This will keep your data from wiping. The "-w" part is towards the end of the script.
[Google Pixel 2 XL Guides, News, & Discussion] KKYASIR:
My App data and SMS backup up is Done after this command but Call History and device settings still showing "waiting for Backup"

any solution ???
[Google Pixel 2 XL Guides, News, & Discussion] David B.:
Can you use bmgr to force a backup to Google Drive or does this do it?
[Google Pixel 2 XL Guides, News, & Discussion] RiTCHiE007:
yes if you use this then it forces the google backup which will backup all to your drive.
[Google Pixel 2 XL Guides, News, & Discussion] MrBrady:
Anyone able to get this to work on Android P DP3? I was able to on DP2 but having issues after upgrading to DP3.
[Google Pixel 2 XL Guides, News, & Discussion] profetia:
Been looking everywhere on internet for what commands I should use on my mac? They doesn't seem to work even tho I'm adding ./

Thanks =)
[Google Pixel 2 XL Guides, News, & Discussion] sokratz:
Thank you! I spent the better part of three hours fighting with a phone refusing to backup and voila.
[Google Pixel 2 XL Guides, News, & Discussion] RGarrido03:
Hi! I have a Mi A1 with Pie sGSI, and I can't make Google backup working.

When running bmgr backupnow --all:

tissot_sprout:/ $ bmgr backupnow --all
Running incremental backup for all packages.
Unable to run backup
Backup finished with result: Transport error

When running bmgr list transports:

tissot_sprout:/ $ bmgr list transports
android/com.android.internal.backup.LocalTransport

I think the gms transport is missing, so I can't backup in Google Drive. How can I add that transport/make it work?

Thanks.
[Google Pixel 2 XL Guides, News, & Discussion] RGarrido03:
Yes, that was the problem. Thanks!
[Google Pixel 2 XL Guides, News, & Discussion] sgbruins:
I did not managed, only got the message "Backup Cancelled". I've tried every thick in this threat, but no luck.

Anyone else experience this? I'm owning a Oneplus 6 by the way running Android P.
[Google Pixel 2 XL Guides, News, & Discussion] omar2005:
i also have a OnePlus 6 running pie but i get this:

Running incremental backup for all packages.

Package @pm@ with result: Transport error

Backup finished with result: Transport error
[Google Pixel 2 XL Guides, News, & Discussion] oroboros74:
I get the following:

Backup finished with result: Transport errorUnable to run backup

I do have Magisk, but not Sysconfig patcher.

Ideas?
[Google Pixel 2 XL Guides, News, & Discussion] nuumuun:
My P2 was not syncing since end of July!

Thanks soo much for this :D

I had to delete the backups on Drive before it would even start.
[Google Pixel 2 XL Guides, News, & Discussion] oroboros74:
Did you manually delete it or just from the backup settings?
[Google Pixel 2 XL Guides, News, & Discussion] nuumuun:
I deleted it in the Drive app.

Under burger menu > Backups
[Google Pixel 2 XL Guides, News, & Discussion] EeZeEpEe:
So I did a factory restore on my Pixel 2 XL because it's just an annual thing I do. For whatever reason, the MyCars app I use to track my car mileage, spending, maintenance, etc. didn't restore my Goggle Backup. I went through the steps to find my backup and used the "bmgr restore TOKEN PACKAGE" and got the following:

This is basically telling me I have a backup but it's not getting restored correct? Anyone know why restoreFinished: 0 and it's not 1?
[Google Pixel 2 XL Guides, News, & Discussion] ilal2ielli:
Seems like Google is starting to roll out the Backup Now button. Mine was available today and it backed up successfully even on battery and not plugged in.
[Google Pixel 2 XL Guides, News, & Discussion] EeZeEpEe:
Yeah I noticed it last week.
[Google Pixel 2 XL Guides, News, & Discussion] forum111:
Yes, the "Back up now" button is great when it works. Unfortunately, in my experience it doesn't seem to reliably force all categories to actually backup now, especially "SMS text messages" which seems to still only be scheduled based on the device being on the charger and left alone for however many hours.
[Google Pixel 2 XL Guides, News, & Discussion] curiousrom:
Force Google Backup of All Categories

"Running incremental backup for all packages." - So if no changes was made since the last backup for a given category then there is nothing new to backup.

Make a call, modify a contact, send an SMS then hit Backup & you can see the result & timestamps in https://drive.google.com/drive/u/0/backups > left-click the device's name > Preview.

Thanks :good: [MENTION=2871640]JedixJarf[/MENTION] for this thread & to [MENTION=1148647]Nikos2k[/MENTION] for the pointer here - If rooted you can see in details what the Google Backup does using a Terminal emulator to force a backup:

su

bmgr backupnow --all

And the output is on my S5 klte:

~$ su

klte:/ # bmgr backupnow --all

Running incremental backup for all packages.

Package @pm@ with result: Success

Package com.google.android.youtube with result: Success...

For the apps not from Play Store & installed manually:

Package com.antispycell.connmonitor with result: Transport rejected package because it wasn't able to process it at the time...

On my Galaxy S5 klte running LineageOS 15.1 the convenient button is located in > Settings > System > Backup > enable Back up to Google Drive then Back up now.

***
[Google Pixel 2 XL Guides, News, & Discussion] forum111:
Yeah, I'm aware. But sometimes when there are definitely changes to be backed up in SMS it won't do it on command via the GUI button. Other times it does. Again, in my experience it has not been reliable. The bmgr shell commands have however been rock solid for me.
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
In case if Im only have 30+ apps In my Google backup instead of 300+ when i do everything from the opening Page i Will be ok with all my apps backed up?
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
Nop
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
I've got only 10% of my app backed. Error is "Transport rejected package because it wasn't able to process it at the time". What do I need to full google backup?
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
What does "bmgr list transports" return?
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
taimen:/ $ bmgr list transports

android/com.android.internal.backup.LocalTransport

com.google.android.gms/.backup.migrate.service.D2dTransport

* com.google.android.gms/.backup.BackupTransportService
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
Ok

What does "bmgr enabled" return?
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
taimen:/ $ bmgr enabled

Backup Manager currently enabled
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
What's the exact error message that ends "bmgr backupnow --all" ?
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
Backup finished with result: Success

It's very strange((
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
And when you select "App data" in settings->system->backup they're are only ten apps?
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
For many people, the [Backup Now] button has appeared in Settings -> System -> Backup

Do you have it?
[Google Pixel 2 XL Guides, News, & Discussion] Phelicks:
Yes, I have this button, but the problem is that not all apps are backed up (((( Only about 10% of my 300+ apps.

The problem is that the backup process is running for app that have been run on phone but not for all that are recovered by Titanium Backup.

So to have them backed up I need to start them on phone.
[Google Pixel 2 XL Guides, News, & Discussion] andronikal659:
Just came to say thanks. This fixed the greyed out google backup stuck in "waiting" for my wife s9+. my note 9 had no issue. Thank you very much!
[Google Pixel 2 XL Guides, News, & Discussion] iSingle:
I found an error when trigger bakcup.

bmgr backupnow --all
Running incremental backup for all packages.
Package @pm@ with result: Transport error
Backup finished with result: Transport error

It said AUTH_TOKEN_INVALID.

My device is Nokia x6 running android Pie with latest security patches

Can anyone help me debugging? thanks a lot.

02-13 19:55:48.364 27537 27641 I Backup : [GmsBackupTransport] Starting new backup session
02-13 19:55:50.034 27537 27641 I Backup : [BackupHttpRequestUtil] Http Response Code: 200
02-13 19:55:50.055 27537 27641 W Backup : [BackupTransportCS] Server returned error, invalidating auth token. This is retried once.
02-13 19:55:50.061 27537 27641 W Backup : [BackupTransportCS] Network error: proposed backoff of 42185285ms considered too large, not retrying. Exception that caused this: ljx: Server failed authorization.
02-13 19:55:50.061 27537 27641 W Backup :	error auth code : AUTH_TOKEN_INVALID
02-13 19:55:50.067 27537 27641 W Backup : [BackupTransportCS] Setting moratorium: 1550102150064
02-13 19:55:50.067 27537 27641 E Backup : [GmsBackupTransport] Error sending final backup to server:
02-13 19:55:50.067 27537 27641 E Backup : ljx: Server failed authorization.
02-13 19:55:50.067 27537 27641 E Backup :	error auth code : AUTH_TOKEN_INVALID
02-13 19:55:50.067 27537 27641 E Backup :	at com.google.android.gms.backup.transport.BackupTransportChimeraService.a(:com.google.android.gms@15090037@15.0.90 (100400-231259764):98)
02-13 19:55:50.067 27537 27641 E Backup :	at mkh.k(:com.google.android.gms@15090037@15.0.90 (100400-231259764):64)
02-13 19:55:50.067 27537 27641 E Backup :	at mkh.a(:com.google.android.gms@15090037@15.0.90 (100400-231259764):192)
02-13 19:55:50.067 27537 27641 E Backup :	at mks.call(Unknown Source:2)
02-13 19:55:50.067 27537 27641 E Backup :	at mkh.a(:com.google.android.gms@15090037@15.0.90 (100400-231259764):124)
02-13 19:55:50.067 27537 27641 E Backup :	at mkh.performBackup(:com.google.android.gms@15090037@15.0.90 (100400-231259764):3)
02-13 19:55:50.067 27537 27641 E Backup :	at android.app.backup.BackupTransport$TransportImpl.performBackup(BackupTransport.java:676)
02-13 19:55:50.067 27537 27641 E Backup :	at com.android.internal.backup.IBackupTransport$Stub.onTransact(IBackupTransport.java:142)
02-13 19:55:50.067 27537 27641 E Backup :	at android.os.Binder.transact(Binder.java:667)
02-13 19:55:50.067 27537 27641 E Backup :	at duo.onTransact(:com.google.android.gms@15090037@15.0.90 (100400-231259764):3)
02-13 19:55:50.067 27537 27641 E Backup :	at android.os.Binder.execTransact(Binder.java:731)
02-13 19:55:50.067 27537 27641 E Backup : [GmsBackupTransport] Encrypted init failed, -1000
02-13 19:55:50.083 27537 27580 I Backup : [GmsBackupTransport] Next backup will happen in 43199981 millis.
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
What does bmgr list transports return?
[Google Pixel 2 XL Guides, News, & Discussion] iSingle:
DRG:/ $ bmgr list transports
android/com.android.internal.backup.LocalTransport
com.google.android.gms/.backup.migrate.service.D2dTransport
* com.google.android.gms/.backup.BackupTransportService

BTW, the backup interface always shows "waiting for backup", except contacts and photos ( I think those two have nothing to do with drive backup, they are separated apps ), and the backup now button is inactive.
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
What does bmgr enabled return?
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
(1) Have you tried it without the VPN?

(2) If you change the transports to localtransport (bmgr transport android/com.android.internal.backup.LocalTransport), does "bmgr backupnow --all" still return "Package @pm@ with result: Transport error" ?
[Google Pixel 2 XL Guides, News, & Discussion] iSingle:
1、It is impossible to use google service in China without VPN;

2、when switch to localtransport, backup succeeded.

2.1、when swiched back to com.google.android.gms/.backup.BackupTransportService, error like before.
[Google Pixel 2 XL Guides, News, & Discussion] Nikos2k:
So we cannot rule out the possibility that the use of VPN causes the authentication error

The [backup now] button has always been greyed?

Try

bmgr cancel backups

to see if it can enable the button

If you run the backup only for apps

bmgr backupnow appdata

you still get the same error message?
[Google Pixel 2 XL Guides, News, & Discussion] X@P:
Hi, am having the same issue in stock pie. Were u able to fix it?

Thanks

---------- Post added at 05:04 PM ---------- Previous post was at 04:36 PM ----------

Hello, running the commands few times fixed the issue. Thanks
[Google Pixel 2 XL Guides, News, & Discussion] wmu3217:
100% worked for me on a Nokia 9. Thank you!

Yesterday, I had to run the command multiple times to get it to actually do the back up. When it finished, I could see the back up in my google drive account, but the phone 'back up now' button was still grey. I knew my other devices back up in the AM so I just waited a day for the back up from Google to run this morning and BAM!... All items are now backing up and the 'back up now' button is select-able. Thanks again!
[Google Pixel 2 XL Guides, News, & Discussion] AndrasLOHF:
There is a force backup option in settings now. YAY!!!!!!!
[Google Pixel 2 XL Guides, News, & Discussion] YayJohn:
Does this also work on other devices like the MI a1 for example?
[Google Pixel 2 XL Guides, News, & Discussion] Eastrider1006:
oh my god i love you so much right now

worked in beryllium (Pocophone F1), lovely
[Google Pixel 2 XL Guides, News, & Discussion] RedSkull23:
Thanks man, usually just "bmgr backupnow --all" always worked out for me, but not this time and so googling a bit made me stumble here and find this! :)
[Google Pixel 2 XL Guides, News, & Discussion] pj1000:
There's a easier way to force a backup which worked like a charm for me...I have a Pixel 2 XL with pie and Aquarius Rom loaded. Just go into security, temporarily remove your security (enter "none") then go back into backup and the "Sync Now" button is active. Just hit it, wait for it to finish (it will show you progress on your notification screen) and when done go back to security and re-do your chosen security and Bingo!...Bob's your uncle!
[Google Pixel 2 XL Guides, News, & Discussion] ilal2ielli:
I've never had to remove my pin or fingerprint to use Google's Backup Now button. Some weird quirk of AquariOS?
[Google Pixel 2 XL Guides, News, & Discussion] EDG_:
[MENTION=8969005]YayJohn[/MENTION], look at this.
[Google Pixel 2 XL Guides, News, & Discussion] Charbs:
waiting to backup

Is it normal for the settings to still say "waiting to back up" even after a successful ADB backup?

Edit: after a reboot of my phone all systems are go in the backup settings. Button is also now blue.

Thank you.
[Google Pixel 2 XL Guides, News, & Discussion] Led Zeppelin:
i accidentally list all apps, and then backup up with commands :/ now i can't find how i do. tried all bmgr commands perhaps.

Additioin:

it was dumpsys
[Google Pixel 2 XL Guides, News, & Discussion] blaze_me:
Update:

I faced the transport errors. Steps I followed:

1. adb.exe shell

2. bgmr enabled

3. bgmr list transports

4. bgmr cancel backups

5. bgmr backup --all.

This fixed my transport issue. Thanks to Nokia post guy!
[Google Pixel 2 XL Guides, News, & Discussion] angelus_kun:
thanks for this, you are my saviour i have that error always on custom roms hahaha
[Google Pixel 2 XL Guides, News, & Discussion] Hobbygamer27:
I am having a moto G6 Plus and getting always this:

Already tried everthing I found in this thread.

Any more clues? Thanks
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
If your getting the transport error, try this.

adb shell

bmgr backupnow appdata

Then go back and run your original backup commands again :good:
[Google Pixel 2 XL Guides, News, & Discussion] Hobbygamer27:
It gives me that:
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
After you received that read out, did you then try running the original adb backup commands?
[Google Pixel 2 XL Guides, News, & Discussion] Hobbygamer27:
I tried all I found in this thread in all orders. Nothing helped.

Edit: The dirty trick with the disabling of the screen lock does work. But this is not the final solution for me.
[Google Pixel 2 XL Guides, News, & Discussion] osm0sis:
I had Private DNS under Wi-Fi & Internet set to Automatic with dns.adguard.com in the custom box. Setting it to Disabled fixed the Transport error I was seeing with backupnow --all. :good:
[Google Pixel 2 XL Guides, News, & Discussion] ngorom:
Thanks a bunch
[Google Pixel 2 XL Guides, News, & Discussion] eddy_nugroz:
This work for me thanks
[Google Pixel 2 XL Guides, News, & Discussion] ruppia:
Good morning to you all,

from nearly 1 month i've got the new Oppo Ace2, and i have this problem.

I've tried all things i read on the post but nothing.

Always this when i try to BK:

OP4AD9:/ $ bmgr backupnow --all

Running incremental backup for all packages.

Package @pm@ with result: Transport error

Backup finished with result: Transport error

OP4AD9:/ $

Somebody can try to help me ?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Don't know if this will help, but this is how I do it on my P2XL and 4XL if I get the transport error.

Backup to google drive.

adb shell

bmgr now

bmgr backupnow --all (if it fails)

bmgr backupnow appdata (then run command again)

Backup to pc.

adb devices

adb backup -apk -shared -all -f desktop /backup.ab

Hope this helps.
[Google Pixel 2 XL Guides, News, & Discussion] noTHINGface:
There seems to be an issue with this fix at this time.

I have had to do this on a number of Pixel phones in the past, Pixel 2 and Pixel 4XL. Today I received a warranty replacement for a Pixel 4XL (battery swelling).

Running:

bmgr backupnow --all (fails with transport error)

bmgr backupnow appdata (fails with package missing)

Setting the transport to com.google.android.gms/.backup.BackupTransportService doesn't work.

The only way I can back up data is to remove all device screen locks etc which is not helpful when using google pay.
[Google Pixel 2 XL Guides, News, & Discussion] Hemudon:
How did you fixed when

bmgr backupnow appdata (package not found)
[Google Pixel 2 XL Guides, News, & Discussion] ClockUpEx:
Any fix for this? I've been encountering the same error as well. Transport Error and appdata (package not found)