{"id":945,"date":"2018-11-30T15:04:38","date_gmt":"2018-11-30T14:04:38","guid":{"rendered":"https:\/\/www.webonic.hu\/support\/?post_type=ht_kb&p=945"},"modified":"2018-11-30T15:04:38","modified_gmt":"2018-11-30T14:04:38","slug":"rsync-a-the-hostingon","status":"publish","type":"ht_kb","link":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/","title":{"rendered":"Rsync a The Hostingon"},"content":{"rendered":"

A le\u00edr\u00e1s legf\u0151k\u00e9ppen azoknak sz\u00f3l, akik a migr\u00e1l\u00e1s (vagy a The Hostingra val\u00f3 v\u00e1lt\u00e1s) ut\u00e1n csal\u00f3dottak, hogy az rsync szinkroniz\u00e1ci\u00f3s seg\u00e9dprogramot m\u00e1r nem haszn\u00e1lhatj\u00e1k.<\/span><\/p>\n

<\/div>\n
Egy kis technikai betekint\u00e9s: a el\u0151z\u0151 szervereken az FTP kapcsolatot egy proFTPd d\u00e9mon szolg\u00e1lja ki, m\u00edg az SFTP-t, SSHFS-t \u00e9s rsync-t egy OpenSSH d\u00e9mon. Az \u00faj szerverek fel\u00e9p\u00edt\u00e9s\u00e9n\u00e9l a lehet\u0151 legt\u00f6bb feladatot \u00e1tadtuk a proFTPd d\u00e9monnak, mely jelenleg az FTP-t, SSHFS-t \u00e9s az SFTP-t is kiszolg\u00e1lja, viszont az rsync-t nem t\u00e1mogatja.<\/span><\/div>\n
<\/div>\n
Addig is, m\u00edg valaki elb\u00edbel\u0151dik \u00e9s leprogramozza a mod_rsync-t a proFTPd sz\u00e1m\u00e1ra, l\u00e9tezik egy alternat\u00edva az rsync SSHFS-en kereszt\u00fcl.<\/span><\/div>\n
<\/div>\n
Az SSHFS egy hasznos seg\u00e9deszk\u00f6z, mely lehet\u0151v\u00e9 teszi, hogy SSH-n kereszt\u00fcl egy t\u00e1voli k\u00f6nyvt\u00e1r a lok\u00e1lis \u00e1llom\u00e1nyrendszerre kapcsol\u00f3djon. A kapcsol\u00f3d\u00e1st k\u00f6vet\u0151en a f\u00e1jlrendszerrel \u00fagy dolgozhat, mintha a saj\u00e1t sz\u00e1m\u00edt\u00f3g\u00e9p\u00e9n t\u00e1roln\u00e1 azt. A kapcsol\u00f3d\u00e1s viszonylag egyszer\u0171:<\/span><\/div>\n
<\/div>\n
developer@shell:~$ mkdir azendomainem<\/span><\/p>\n
developer@shell:~$ sshfs azendomainem.hu@azendomainem.hu: ~\/azendomainem<\/span><\/div>\n
azendomainem.hu@azendomainem.hu’s password: <\/span><\/div>\n
developer@shell:~$ ls azendomainem<\/span><\/div>\n
logs sub web<\/span><\/div>\n<\/div>\n
<\/div>\n
Amint a t\u00e1rhely kapcsol\u00f3dott, boldogan hangolhatja a tartalmat:<\/span><\/div>\n
<\/div>\n
rsync -av –delete ~\/devel\/site\/web\/ ~\/azendomainem.hu\/web <\/span><\/div>\n
<\/div>\n
A hangol\u00e1s befejezt\u00e9vel a t\u00e1rhely\u00e9t lekapcsolhatja a lok\u00e1lis \u00e1llom\u00e1nyrendszerr\u0151l a k\u00f6vetkez\u0151 parancs seg\u00edts\u00e9g\u00e9vel:<\/span><\/div>\n
<\/div>\n
fusermount -u ~\/azendomainem<\/span><\/div>\n
<\/div>\n
Hiteles\u00edt\u00e9s priv\u00e1t kulcs seg\u00edts\u00e9g\u00e9vel<\/b><\/span><\/div>\n
<\/div>\n
Ha el\u0151nyben r\u00e9szes\u00edti azt, hogy az SSHFS ne k\u00e9rjen minden bejelentkez\u00e9s alkalm\u00e1val jelsz\u00f3t, l\u00e9trehozhat a t\u00e1rhelyen egy „<\/span>.ssh<\/span>” mapp\u00e1t, melyben egy „<\/span>authorized_keys<\/span>” f\u00e1jlt hoz l\u00e9tre, melyben a saj\u00e1t SSH kulcsait helyezheti el. A f\u0151 priv\u00e1t kulcsot (ha m\u00e9g nem rendelkezik ilyennel, akkor a ssh-keygen paraccsal l\u00e9trehozhatja azt) a <\/span>~\/.ssh\/id_rsa.pub<\/span> f\u00e1jlban tal\u00e1lja.<\/span><\/div>\n
<\/div>\n
Van itt egy kis b\u00f6kken\u0151: a priv\u00e1t kulcs form\u00e1tuma \u00f6sszeegyeztethet\u0151 az OpenSSH szerverrel, viszont a proFTPd-vel nem. Ez\u00e9rt a priv\u00e1t kulcsot el\u0151sz\u00f6r \u00e1t kell alak\u00edtani egy speci\u00e1lis RFC4716 form\u00e1tumra:<\/span><\/div>\n
<\/div>\n
ssh-keygen -e -f ~\/.ssh\/id_rsa.pub <\/span><\/div>\n
<\/div>\n
A termin\u00e1lon kereszt\u00fcl megadott parancs a priv\u00e1t kulcsot olyan form\u00e1ra m\u00f3dos\u00edtja, amely m\u00e1r megadhat\u00f3 <\/span>.ssh\/authorized_keys <\/span>f\u00e1jlba a t\u00e1rhelyen.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"

A le\u00edr\u00e1s legf\u0151k\u00e9ppen azoknak sz\u00f3l, akik a migr\u00e1l\u00e1s (vagy a The Hostingra val\u00f3 v\u00e1lt\u00e1s) ut\u00e1n csal\u00f3dottak, hogy az rsync szinkroniz\u00e1ci\u00f3s seg\u00e9dprogramot m\u00e1r nem haszn\u00e1lhatj\u00e1k. Egy kis technikai betekint\u00e9s: a el\u0151z\u0151 szervereken az FTP kapcsolatot egy proFTPd d\u00e9mon szolg\u00e1lja ki, m\u00edg az SFTP-t, SSHFS-t \u00e9s rsync-t egy OpenSSH d\u00e9mon. Az \u00faj…<\/p>\n","protected":false},"author":19,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[101],"ht-kb-tag":[1968,135,1614,1725],"class_list":["post-945","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-koltoztetes-hozzank","ht_kb_tag-fajl-atvitel","ht_kb_tag-koltoztetes","ht_kb_tag-rsync","ht_kb_tag-the-hosting"],"yoast_head":"\nRsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/\" \/>\n<meta property=\"og:locale\" content=\"hu_HU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis\" \/>\n<meta property=\"og:description\" content=\"A le\u00edr\u00e1s legf\u0151k\u00e9ppen azoknak sz\u00f3l, akik a migr\u00e1l\u00e1s (vagy a The Hostingra val\u00f3 v\u00e1lt\u00e1s) ut\u00e1n csal\u00f3dottak, hogy az rsync szinkroniz\u00e1ci\u00f3s seg\u00e9dprogramot m\u00e1r nem haszn\u00e1lhatj\u00e1k. Egy kis technikai betekint\u00e9s: a el\u0151z\u0151 szervereken az FTP kapcsolatot egy proFTPd d\u00e9mon szolg\u00e1lja ki, m\u00edg az SFTP-t, SSHFS-t \u00e9s rsync-t egy OpenSSH d\u00e9mon. Az \u00faj...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport Tud\u00e1sb\u00e1zis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 perc\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/\",\"url\":\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/\",\"name\":\"Rsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis\",\"isPartOf\":{\"@id\":\"https:\/\/www.websupport.hu\/tamogatas\/#website\"},\"datePublished\":\"2018-11-30T14:04:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/#breadcrumb\"},\"inLanguage\":\"hu\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.websupport.hu\/tamogatas\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rsync a The Hostingon\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.websupport.hu\/tamogatas\/#website\",\"url\":\"https:\/\/www.websupport.hu\/tamogatas\/\",\"name\":\"Websupport Tud\u00e1sb\u00e1zis\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.websupport.hu\/tamogatas\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"hu\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/","og_locale":"hu_HU","og_type":"article","og_title":"Rsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis","og_description":"A le\u00edr\u00e1s legf\u0151k\u00e9ppen azoknak sz\u00f3l, akik a migr\u00e1l\u00e1s (vagy a The Hostingra val\u00f3 v\u00e1lt\u00e1s) ut\u00e1n csal\u00f3dottak, hogy az rsync szinkroniz\u00e1ci\u00f3s seg\u00e9dprogramot m\u00e1r nem haszn\u00e1lhatj\u00e1k. Egy kis technikai betekint\u00e9s: a el\u0151z\u0151 szervereken az FTP kapcsolatot egy proFTPd d\u00e9mon szolg\u00e1lja ki, m\u00edg az SFTP-t, SSHFS-t \u00e9s rsync-t egy OpenSSH d\u00e9mon. Az \u00faj...","og_url":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/","og_site_name":"Websupport Tud\u00e1sb\u00e1zis","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 perc"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/","url":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/","name":"Rsync a The Hostingon - Websupport Tud\u00e1sb\u00e1zis","isPartOf":{"@id":"https:\/\/www.websupport.hu\/tamogatas\/#website"},"datePublished":"2018-11-30T14:04:38+00:00","breadcrumb":{"@id":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/#breadcrumb"},"inLanguage":"hu","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.websupport.hu\/tamogatas\/kb\/rsync-a-the-hostingon\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.websupport.hu\/tamogatas\/"},{"@type":"ListItem","position":2,"name":"Rsync a The Hostingon"}]},{"@type":"WebSite","@id":"https:\/\/www.websupport.hu\/tamogatas\/#website","url":"https:\/\/www.websupport.hu\/tamogatas\/","name":"Websupport Tud\u00e1sb\u00e1zis","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.websupport.hu\/tamogatas\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"hu"}]}},"_links":{"self":[{"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/ht-kb\/945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/users\/19"}],"version-history":[{"count":0,"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/ht-kb\/945\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/media?parent=945"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/ht-kb-category?post=945"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.websupport.hu\/tamogatas\/wp-json\/wp\/v2\/ht-kb-tag?post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}