<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Migrate data from device to device]]></title><description><![CDATA[<p dir="auto">As a user, which has got a new UBports device, I would like to migrate all data from my currently used UBports device to the new one.</p>
<p dir="auto">What can I do? Is there "simple" backup / restore howto addressing the user story above?</p>
<p dir="auto">Quick search in interwebs and this forum returned a big number of discussed topics mainly on synchronizing various data categories to / from PC, but I could not find any consistent story about migration from device to device. If you know one - please comment.</p>
]]></description><link>https://forums.ubports.com/topic/1683/migrate-data-from-device-to-device</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 23:25:30 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/1683.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Sep 2018 21:51:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Migrate data from device to device on Sun, 23 Apr 2023 09:29:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thepeter" aria-label="Profile: thepeter">@<bdi>thepeter</bdi></a> just to add that if /data doesn't contain system-data and user-data (better said it is just empty) thing that might help is on phone side mounting it by:</p>
<pre><code>mount /data
</code></pre>
<p dir="auto">that should help (thanks to people in telegram group for quick help)</p>
]]></description><link>https://forums.ubports.com/post/72525</link><guid isPermaLink="true">https://forums.ubports.com/post/72525</guid><dc:creator><![CDATA[thepeter]]></dc:creator><pubDate>Sun, 23 Apr 2023 09:29:26 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sat, 13 Feb 2021 15:48:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cliffcoggin" aria-label="Profile: cliffcoggin">@<bdi>cliffcoggin</bdi></a> said in <a href="/post/46502">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">Have you given up with your old phone?</p>
</blockquote>
<p dir="auto">Not at all! In fact, I have moved from the beat-up-but-functional OpO that I got cheap to experiment with, to the good-as-new one that was running LineageOS up to yesterday. Because by now I figure that the experiment is over, the results are in, and UT is here to stay.<br />
The 'beater' phone is going to be handed over to a developer I know who may be able and willing to help with Axolotl, the UT client for Signal. He can borrow it so he can, in turn, use it to experiment. And hopefully Axolotl will be gaining some improvements. In short, everyone wins here. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title="😄" alt="😄" /></p>
<p dir="auto">Remarkably, installing UT was a lot easier this time, it went pretty smoothly. I believe there have been some helpful changes to the installer.</p>
]]></description><link>https://forums.ubports.com/post/46509</link><guid isPermaLink="true">https://forums.ubports.com/post/46509</guid><dc:creator><![CDATA[Moem]]></dc:creator><pubDate>Sat, 13 Feb 2021 15:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sat, 13 Feb 2021 12:41:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a> I am all for the simplicity of a cable connection and a point&amp;click mouse. Have you given up with your old phone?</p>
]]></description><link>https://forums.ubports.com/post/46502</link><guid isPermaLink="true">https://forums.ubports.com/post/46502</guid><dc:creator><![CDATA[cliffcoggin]]></dc:creator><pubDate>Sat, 13 Feb 2021 12:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sat, 13 Feb 2021 08:47:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cliffcoggin" aria-label="Profile: cliffcoggin">@<bdi>cliffcoggin</bdi></a> said in <a href="/post/46494">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">If it is in File Manager perhaps you could copy it to a computer and from there to your other phone.</p>
</blockquote>
<p dir="auto">Thank you Cliff! I have done almost exactly that: I connected both phones to my laptop with USB cables, and copied my photos directly from one phone to the other. I have also moved my exported contacts and my custom ringtone in a similar way. Those things were the most important bits of data, so I'm well on the way.<br />
My app settings and settings of the phone itself, well, I'll just have to redo them. Not a very big deal.</p>
<p dir="auto">Also: whenever I want to move a small bit of data (such as some words or numbers and it's too much to type over... or one image) from one phone to another or from phone to laptop or vv, then I just send it to myself through Telegram / Teleports.</p>
<p dir="auto">So there's not one streamlined solution, but there are a number of usable workarounds.</p>
]]></description><link>https://forums.ubports.com/post/46496</link><guid isPermaLink="true">https://forums.ubports.com/post/46496</guid><dc:creator><![CDATA[Moem]]></dc:creator><pubDate>Sat, 13 Feb 2021 08:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 23:31:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a> What sort of data do you want to migrate? If it is in File Manager perhaps you could copy it to a computer and from there to your other phone. I know it works moving photos to and from the phone though I have not tried other sorts of data.</p>
]]></description><link>https://forums.ubports.com/post/46494</link><guid isPermaLink="true">https://forums.ubports.com/post/46494</guid><dc:creator><![CDATA[cliffcoggin]]></dc:creator><pubDate>Fri, 12 Feb 2021 23:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:36:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a> said in <a href="/post/46487">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">I have no idea what that means but I don't think it would help me if I did.</p>
</blockquote>
<p dir="auto">He talks about access to all data with r/w rights on the device, like UTTT do.</p>
]]></description><link>https://forums.ubports.com/post/46488</link><guid isPermaLink="true">https://forums.ubports.com/post/46488</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:36:21 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:33:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applee" aria-label="Profile: applee">@<bdi>applee</bdi></a> said in <a href="/post/46483">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">AFAIK and at this point the answer is no.</p>
</blockquote>
<p dir="auto">Okay, thank you. That is most regrettable. But now that I know, I can stop searching.</p>
<blockquote>
<p dir="auto">I think an app makes sense but it will have to be unconfined in order to do the job.</p>
</blockquote>
<p dir="auto">I have no idea what that means but I don't think it would help me if I did.</p>
]]></description><link>https://forums.ubports.com/post/46487</link><guid isPermaLink="true">https://forums.ubports.com/post/46487</guid><dc:creator><![CDATA[Moem]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:33:10 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a> sure <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> install a nextcloud instance on your pc and sync your data to it.</p>
]]></description><link>https://forums.ubports.com/post/46486</link><guid isPermaLink="true">https://forums.ubports.com/post/46486</guid><dc:creator><![CDATA[Luksus]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:30:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luksus" aria-label="Profile: luksus">@<bdi>luksus</bdi></a> said in <a href="/post/46481">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">If you have a nextcloud, you can use UBsync to sync all the data you need.</p>
</blockquote>
<p dir="auto">Why would I need other people's computers for that? Can't I just use one of my own?</p>
]]></description><link>https://forums.ubports.com/post/46485</link><guid isPermaLink="true">https://forums.ubports.com/post/46485</guid><dc:creator><![CDATA[Moem]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:30:09 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:30:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/applee" aria-label="Profile: applee">@<bdi>applee</bdi></a> said in <a href="/post/46483">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">it will have to be unconfined in order to do the job.</p>
</blockquote>
<p dir="auto">Yes like some others ones very usefull (UTTT not to say for ex) ^^</p>
]]></description><link>https://forums.ubports.com/post/46484</link><guid isPermaLink="true">https://forums.ubports.com/post/46484</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:28:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a><br />
AFAIK and at this point the answer is no.<br />
BTW I don't think having different Ubuntu Phones would be an issue except if you want to migrate data from a 16GB to a 32GB (or else, but you get the idea)...<br />
I think an app makes sense but it will have to be unconfined in order to do the job.</p>
]]></description><link>https://forums.ubports.com/post/46483</link><guid isPermaLink="true">https://forums.ubports.com/post/46483</guid><dc:creator><![CDATA[AppLee]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:28:08 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:26:55 GMT]]></title><description><![CDATA[<p dir="auto">A "Save &amp; restore" app would be so usefull in open-store... I'm really not confident with command line.</p>
]]></description><link>https://forums.ubports.com/post/46482</link><guid isPermaLink="true">https://forums.ubports.com/post/46482</guid><dc:creator><![CDATA[Keneda]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 19:23:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/moem" aria-label="Profile: moem">@<bdi>moem</bdi></a> If you have a nextcloud, you can use UBsync to sync all the data you need.<br />
You could even sync your .config folder to keep app-configs.<br />
But apps itself, should be reinstalled I think.</p>
]]></description><link>https://forums.ubports.com/post/46481</link><guid isPermaLink="true">https://forums.ubports.com/post/46481</guid><dc:creator><![CDATA[Luksus]]></dc:creator><pubDate>Fri, 12 Feb 2021 19:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 12 Feb 2021 17:42:42 GMT]]></title><description><![CDATA[<p dir="auto">I'm probably asking too much, but it can't hurt to ask...</p>
<p dir="auto">Is there any method to migrate data from device to (identical) device that does not involve the command line? I'm not a friend of the terminal at the best of times, and that's on a laptop. The terminal on UT, I'm sorry to say, makes me cry for my mother. <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f622.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--cry" style="height:23px;width:auto;vertical-align:middle" title="😢" alt="😢" /></p>
]]></description><link>https://forums.ubports.com/post/46472</link><guid isPermaLink="true">https://forums.ubports.com/post/46472</guid><dc:creator><![CDATA[Moem]]></dc:creator><pubDate>Fri, 12 Feb 2021 17:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sat, 30 May 2020 01:46:35 GMT]]></title><description><![CDATA[<p dir="auto">This is great information and thank you guys for the guide. It truly helped me migrate from an M10 with a shattered screen (but the touchscreen still works) to a new one with bigger storage. But I'd like to make my own recommendation on top of this. <a class="plugin-mentions-user plugin-mentions-a" href="/user/thepeter" aria-label="Profile: thepeter">@<bdi>thepeter</bdi></a> recommends to exclude <code>*data/user-data/phablet/.cache*</code>. This makes sense in general (most app cache directories are pretty disposable and will be rebuilt automatically and as necessary on your new device), but I would take an extra (as in, separate from the main archives you compress) .tgz archive of <code>.cache/libertine-container/</code> (if you have one or even more than one container) as this will copy over all Libertine apps, app icons, dependencies, the container's rootfs etc. It's arguably just as important as user-data.tgz as that one copies the main Ubuntu Touch apps.</p>
<p dir="auto">Are there any other directories within <code>.cache</code> which people think would be worthy of backing up and migrating, for genuinely useful and essential stuff like the Libertine apps, and so which should be made an exception to the exclusion command criteria?</p>
]]></description><link>https://forums.ubports.com/post/33460</link><guid isPermaLink="true">https://forums.ubports.com/post/33460</guid><dc:creator><![CDATA[TartanSpartan]]></dc:creator><pubDate>Sat, 30 May 2020 01:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Fri, 24 Jan 2020 10:29:26 GMT]]></title><description><![CDATA[<p dir="auto">Consider this my "log" how I've transferred data from phone to phone (worked between two nexus 5 devices) without SD card<br />
I hope it will be helpful for somebody - but I've basically used combination of two methods described before plus some man pages<br />
<strong>NOTE</strong>: both devices have ubports image installed and are prepared for adb access ()</p>
<h3><strong>Source device</strong></h3>
<p dir="auto">After connecting source device on PC commands in terminal as follows:</p>
<ol>
<li>Reboot phone into recovery: <code>adb reboot recovery</code></li>
<li>Acquire root: <code>adb root</code></li>
<li>Activate shell: <code>adb shell</code> (command prompt will change to <code>#</code> sign)</li>
<li>Backup system-data (this will also create log files, that can be examined for possible errors) :<br />
<code>tar -czpv -f /system-data.tgz /data/system-data/ &gt;/system-data.out 2&gt;/system-data.err</code><br />
<strong>NOTE</strong>: I've just put these files into root directory and it went just fine <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=":wink:" alt="😉" /> and pulled just one file into connected computer since adb has much better chance to transfer one big file without errors than many small ones</li>
<li>logout from shell to your terminal (<code>Ctrl+D</code>)<br />
<strong>NOTE</strong>: I am assuming computer is linux with root access etc.<br />
this sub-step can be done before step 3<br />
5.1 go to directory where backup data are to be stored in PC (using <code>cd</code>  and <code>mkdir</code> commands)</li>
<li>transfer data from phone to PC <code>adb pull /system-data.tgz</code><br />
6.1 it is good idea to have logs copied too <code>adb pull /system-data.out</code> and <code>adb pull /system-data.err</code> but it is not necessary</li>
<li>steps <strong>3.</strong> to <strong>6.</strong> repeat but with <code>user-data</code> instead of <code>system-data</code> excluding <code>.cache</code> folder<br />
(so commands will look like <code>tar -czpv -f /user-data.tgz /data/user-data/ --exclude='*data/user-data/phablet/.cache*' &gt;/user-data.out 2&gt;/user-data.err</code>, <code>adb pull /user-data.tgz</code>etc.)<br />
<strong>NOTE</strong>: data which can be transferred by MTP should be moved that way since process of packing can take quite long for user data and may even stop/fail (e.g. not stopping process, just waiting and overheating battery, because all outputs are transferred to log files) if there is not enough space for package</li>
</ol>
<h3><strong>Destination device</strong></h3>
<ol>
<li>Reboot phone into recovery: <code>adb reboot recovery</code></li>
<li>Acquire root: <code>adb root</code></li>
<li>Push archived data from PC to phone (root folder) <code>adb push ./system-data.tgz /</code> and <code>adb push ./user-data.tgz /</code><br />
<strong>NOTE</strong>: in case of failure pushing both files and then unpacking both in adb shell it is possible to work the process "per partes" so following steps <strong>4.</strong> and <strong>5.</strong> will be done after each push and removing archive from phone (<code>rm ./system-data.tgz</code> in adb shell and then returning by <code>Ctrl+D</code> to PC shell)</li>
<li>Activate shell: <code>adb shell</code> (command prompt will change to <code>#</code> sign)</li>
<li>Extract archives <code>tar -xzv -f /system-data.tgz</code> and <code>tar -xzv -f /user-data.tgz</code></li>
<li>Restart phone, unplug, recharge (battery will be probably rather low <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /> ) check data and switch SIM card <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f600.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--grinning" style="height:23px;width:auto;vertical-align:middle" title=":grinning:" alt="😀" /></li>
</ol>
<h3><strong>PS</strong>:</h3>
<p dir="auto">After finishing and documenting the process, I'we found out that WiFi settings has not been transferred to destination device <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f610.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--neutral_face" style="height:23px;width:auto;vertical-align:middle" title=":neutral_face:" alt="😐" /> those must be somewhere in <code>.cache</code> folder then (I don't really mind, messages, apps, contacts and other settings are quite enough for me)</p>
]]></description><link>https://forums.ubports.com/post/27632</link><guid isPermaLink="true">https://forums.ubports.com/post/27632</guid><dc:creator><![CDATA[thepeter]]></dc:creator><pubDate>Fri, 24 Jan 2020 10:29:26 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Thu, 20 Jun 2019 22:29:07 GMT]]></title><description><![CDATA[<p dir="auto">I used <code>adb</code> from Ubuntu 19.04 repositories:</p>
<pre><code>$ adb version
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5
Installed as /usr/lib/android-sdk/platform-tools/adb
</code></pre>
<pre><code>$ apt-cache policy adb
adb:
  Installed: 1:8.1.0+r23-5
  Candidate: 1:8.1.0+r23-5
  Version table:
 *** 1:8.1.0+r23-5 500
        500 http://archive.ubuntu.com/ubuntu disco/universe amd64 Packages
        100 /var/lib/dpkg/status
</code></pre>
<p dir="auto">Concerning root: I had to explicitly request it on Bq 4.5. On FP2 <code>adb shell</code> was with root access enabled by default.</p>
]]></description><link>https://forums.ubports.com/post/20680</link><guid isPermaLink="true">https://forums.ubports.com/post/20680</guid><dc:creator><![CDATA[kwah]]></dc:creator><pubDate>Thu, 20 Jun 2019 22:29:07 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Thu, 20 Jun 2019 07:33:02 GMT]]></title><description><![CDATA[<p dir="auto">Hmm I am wondering maybe its your adb version that makes that issue, can you check which one you have? Try adb version...</p>
<p dir="auto">You cannot remove dangling symlinks, as they are probably used in the live image. I will try again what I did. adb shell should give root on all devices in recovery.</p>
<p dir="auto">BR Florian</p>
]]></description><link>https://forums.ubports.com/post/20674</link><guid isPermaLink="true">https://forums.ubports.com/post/20674</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Thu, 20 Jun 2019 07:33:02 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Tue, 18 Jun 2019 20:05:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> said in <a href="/post/20650">Migrate data from device to device</a>:</p>
<blockquote>
<p dir="auto">TLDR; In case you get pull errors, leave system data out. You will loose all your settings in system-settings etc but the app data is in user-data and that folder must always be pullable without issues. You might want to delete the contents of .cache before to make it smaller...</p>
</blockquote>
<p dir="auto">Well, loosing all settings in system-settings etc. looks like a big deal. One needs to reconfigure everything then.</p>
<p dir="auto">As far as I understand, system data is not and will not be pullable unless the tools are fixed with respect to handling "dangling" symlinks.</p>
<p dir="auto">Unfortunately, I had issues with user-data as well.</p>
<p dir="auto">By the way, do you agree that in the original instruction <code>adb root</code> should be added? I don't know which phone you used as a reference to create the instruction, but I have noticed that <code>adb shell</code> on Fairphone 2 has root enabled by default.</p>
<p dir="auto">Looks like we start to get requirements for user data lint tool / backup prepare tool <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=bc7965752a7" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /> (maybe something for UT Tweak):</p>
<ul>
<li>Cleanup caches (is it safe to remove qmlcache/qml_cache/api_cache and friends?)</li>
<li>Remove "dangling" sym-links</li>
<li>...</li>
</ul>
]]></description><link>https://forums.ubports.com/post/20651</link><guid isPermaLink="true">https://forums.ubports.com/post/20651</guid><dc:creator><![CDATA[kwah]]></dc:creator><pubDate>Tue, 18 Jun 2019 20:05:58 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Tue, 18 Jun 2019 19:11:39 GMT]]></title><description><![CDATA[<p dir="auto">TLDR; In case you get pull errors, leave system data out. You will loose all your settings in system-settings etc but the app data is in user-data and that folder must always be pullable without issues. You might want to delete the contents of .cache before to make it smaller...</p>
]]></description><link>https://forums.ubports.com/post/20650</link><guid isPermaLink="true">https://forums.ubports.com/post/20650</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Tue, 18 Jun 2019 19:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sun, 16 Jun 2019 10:51:35 GMT]]></title><description><![CDATA[<p dir="auto">Here is an instruction that worked for me to transfer data from Bq 4.5 to Fairphone 2</p>
<p dir="auto">Required:</p>
<ul>
<li>SD-card</li>
<li>Both device should have SD-card slot</li>
<li>adb tools</li>
</ul>
<h2>Preliminary Steps</h2>
<ul>
<li>Check that your SD-card is accessible on both devices</li>
<li>While device is booted and connected to PC, figure out SD-card info needed for accessing it when device is booted into <strong>recovery</strong>:
<ul>
<li>In <code>adb shell</code> issue <code>mount</code> command</li>
<li>Note the device that is mounted to <code>/media/phablet/&lt;...&gt;</code>, example in my case<pre><code class="language-$">&lt;... -removed&gt;
/dev/mmcblk1p1 on /media/phablet/ubackup type vfat (rw,nosuid,nodev,relatime,uid=32011,gid=32011,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
</code></pre>
Note that <em>device</em>  <code>/dev/mmcblk1p1</code> is mounted to <code>/media/phablet/ubackup</code>, which is SD card in my case, expect that last part of <code>/media/phablet/ubackup</code> will be different in your case.  Make note of the <em>device</em> name (<code>/dev/mmcblk1p1</code>).</li>
</ul>
</li>
</ul>
<h2>Backup data to SD card</h2>
<ol>
<li>If not done before: connect phone to PC while adb is running</li>
<li>Reboot phone into recovery: <code>adb reboot recovery</code></li>
<li>Acquire root: <code>adb root</code></li>
<li>Activate shell: <code>adb shell</code></li>
<li>In the root shell (command prompt ends with <code>#</code> sign)<br />
5.1 Mount SD card with the following command (note that <code>/dev/mmcblk1p1</code> above becomes <code>/dev/block/mmcblk1p1</code>) :<pre><code>mount -t vfat -o flush,utf8 /dev/block/mmcblk1p1 /sdcard
</code></pre>
5.2 Backup system-data and user-data partitions (commands below will also create log files, that can be examined for possible errors) :<pre><code>tar -czpv -f /sdcard/system-data.tgz /data/system-data/ &gt;/sdcard/system-data.out 2&gt;/sdcard/system-data.err
</code></pre>
<pre><code>tar -czpv -f /sdcard/user-data.tgz /data/user-data/ &gt;/sdcard/user-data.out 2&gt;/sdcard/user-data.err
</code></pre>
5.3 Check created archives. The commands below should not produce any output:<pre><code>tar -xzv -f /sdcard/system-data.tgz &gt;/dev/null
</code></pre>
<pre><code>tar -xzv -f /sdcard/user-data.tgz &gt;/dev/null
</code></pre>
</li>
<li>Power down your device (example for <code>adb shell</code>) :<pre><code>shutdown -P now
</code></pre>
</li>
</ol>
<h2>Restore data from the backup on SD card</h2>
<p dir="auto">For me it was repeat of the sequence from the previous section but with the target device connected. The only difference was in the final step.</p>
<p dir="auto">In principle, external card reader device may require different device name in mount command of step 5.1 options. You can check it as indicated in the <strong>Preliminary Steps</strong> section above.</p>
<p dir="auto">Repeat steps 1. ... 5.1 to make SD card accessible.</p>
<ol start="5">
<li>In the root shell (command prompt ends with <code>#</code> sign)<br />
5.1 Mount as in the 5.1 above<br />
5.2 Restore data:<pre><code>tar -xzv -f /sdcard/system-data.tgz
</code></pre>
<pre><code>tar -xzv -f /sdcard/user-data.tgz
</code></pre>
</li>
<li>Reboot your device</li>
</ol>
]]></description><link>https://forums.ubports.com/post/20619</link><guid isPermaLink="true">https://forums.ubports.com/post/20619</guid><dc:creator><![CDATA[kwah]]></dc:creator><pubDate>Sun, 16 Jun 2019 10:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Sat, 15 Jun 2019 21:56:06 GMT]]></title><description><![CDATA[<p dir="auto">Found this topic again after a while,  since screen of my bq 4.5 is not responding to touches anymore.</p>
<p dir="auto">Tried to do backup as explained by <a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a> in <a href="/post/12526">Migrate data from device to device</a>. Below are my observations and notes.</p>
<p dir="auto">Sequence <code>adb reboot recovery</code> followed by <code>adb pull /data/system-data</code> have not copied anything, because it errored out:</p>
<pre><code>$ adb pull /data/system-data
adb: error: failed to copy '/data/system-data/lib/ufw/user6.rules' to './system-data/lib/ufw/user6.rules': remote Permission denied
</code></pre>
<p dir="auto">Added <code>adb root</code> to the mix to handle "Permission denied", and after a bit of copying I've got to the next error:</p>
<pre><code>$ adb pull /data/system-data
adb: error: failed to copy '/data/system-data/var/log/installer/media-info' to './system-data/var/log/installer/media-info': remote No such file or directory
</code></pre>
<p dir="auto">Looks like permission errors can be resolved. Why files are missing?</p>
<p dir="auto">After digging a bit (cross-referencing results of broken symlinks in recovery and normal environments, looking into mounted filesystems and layout) I think it is because of "dangling" links pointing to nowhere for the following reasons:</p>
<ul>
<li>Parts of the file system are not available in the recovery environment, because not mounted, like many click packages</li>
<li>There are broken links in the systems (links that are broken also in normal boot) accumulated through its lifetime due to bad behaviors of install/uninstall/upgrade tools and SW in general</li>
</ul>
<p dir="auto">All the above leads me to the following:</p>
<ul>
<li>Looks like <code>adb pull</code> should be run at least in rooted recovery (maybe it should also use <code>-a</code> switch to preserve permissions?)</li>
<li><code>adb pull</code> cannot handle "dangling" links</li>
</ul>
<p dir="auto">So in my experience <code>adb pull</code> is not a good tool to make a backup.</p>
<p dir="auto">I would really appreciate, if someone could comment on the above and tip better and working ways to backup data so that it can be restored on the other device.</p>
<p dir="auto">Currently I am looking into the option of creating backup on external sdcard using <code>tar</code> + <code>gzip</code>.</p>
]]></description><link>https://forums.ubports.com/post/20616</link><guid isPermaLink="true">https://forums.ubports.com/post/20616</guid><dc:creator><![CDATA[kwah]]></dc:creator><pubDate>Sat, 15 Jun 2019 21:56:06 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Mon, 18 Feb 2019 18:59:05 GMT]]></title><description><![CDATA[<p dir="auto">I did a new backup on my phone and tried to migrate to another Nexus 5. The wifi nor the mobile network works, notes, the clock app, the calculator an gallery does not work either. But all my contacts and messages has been imported:upside-down_face:. I have not tried with other apps.</p>
]]></description><link>https://forums.ubports.com/post/17632</link><guid isPermaLink="true">https://forums.ubports.com/post/17632</guid><dc:creator><![CDATA[Rondarius]]></dc:creator><pubDate>Mon, 18 Feb 2019 18:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Migrate data from device to device on Mon, 18 Feb 2019 18:23:17 GMT]]></title><description><![CDATA[<p dir="auto">Development branch.</p>
]]></description><link>https://forums.ubports.com/post/17630</link><guid isPermaLink="true">https://forums.ubports.com/post/17630</guid><dc:creator><![CDATA[Rondarius]]></dc:creator><pubDate>Mon, 18 Feb 2019 18:23:17 GMT</pubDate></item></channel></rss>