{"id":2035,"date":"2020-05-23T16:20:15","date_gmt":"2020-05-23T14:20:15","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2035"},"modified":"2020-06-06T09:27:52","modified_gmt":"2020-06-06T07:27:52","slug":"adb-sync","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2035","title":{"rendered":"adb-sync"},"content":{"rendered":"\n<p>To sync a PC with a smartphone (or any other android device, like an android e-reader or tablet) you can use abd, and abd-sync. This latter has the advantage that it can, unlike <code>adb push --sync<\/code>, <b>delete<\/b> files no more existing in source or <b>create<\/b> new folders.<\/p>\n\n\n\n<p>Indeed adb push &#8211;sync can only update files and folder already existing.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">a problem: the external card<\/h4>\n\n\n\n<p>You can sync not only the internal memory of your android device, but an <strong>external card<\/strong> as well. The problem might be find the extact name and path of your external card: so you can use <code>adb shell<\/code>, and then <code>df<\/code> and <code>ls<\/code> to see the folders our the whole device (including the external card) with its exact name, that you will be able to use afterward in adb \/ adb-sync.<\/p>\n\n\n\n<p>But if you adb-sync keeping the external card into your device, because it is more convenient, you will find some problems, such as the <strong>symlinks<\/strong> (not considered). <\/p>\n\n\n\n<p>So, you might try with krusader and a sync via mtp, but this is very slow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To sync a PC with a smartphone (or any other android device, like an android e-reader or tablet) you can use abd, and abd-sync. This latter has the advantage that it can, unlike adb push &#8211;sync, delete files no more existing in source or create new folders. Indeed adb push &#8211;sync can only update files &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2035\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;adb-sync&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[575,574],"tags":[155,588,589],"class_list":["post-2035","post","type-post","status-publish","format-standard","hentry","category-android","category-digit-alia","tag-adb","tag-adb-sync","tag-sync-pc-and-devices"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2035"}],"version-history":[{"count":3,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2035\/revisions"}],"predecessor-version":[{"id":2054,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2035\/revisions\/2054"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}