{"id":47280,"date":"2026-06-27T22:48:12","date_gmt":"2026-06-27T13:48:12","guid":{"rendered":"https:\/\/raybeam.jp\/docs\/initial-server-setup\/how-to-install-and-configure-tarsnap-to-safely-backup-your-sites\/"},"modified":"2026-06-27T22:48:29","modified_gmt":"2026-06-27T13:48:29","slug":"cach-cai-dat-va-cau-hinh-tarsnap-de-sao-luu-cac-trang-web-cua-ban-mot-cach-an-toan","status":"publish","type":"docs","link":"https:\/\/raybeam.jp\/vi\/docs\/initial-server-setup\/how-to-install-and-configure-tarsnap-to-safely-backup-your-sites\/","title":{"rendered":"C\u00e1ch c\u00e0i \u0111\u1eb7t v\u00e0 c\u1ea5u h\u00ecnh Tarsnap \u0111\u1ec3 sao l\u01b0u c\u00e1c trang web c\u1ee7a b\u1ea1n m\u1ed9t c\u00e1ch an to\u00e0n"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u0110i\u1ec1u \u0111\u1ea7u ti\u00ean l\u00e0 t\u1ea1o t\u00e0i kho\u1ea3n v\u00e0 n\u1ea1p ti\u1ec1n (t\u1ed1i thi\u1ec3u 5 USD) v\u00e0o t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n trong <a href=\"https:\/\/www.tarsnap.com\/\">trang web ch\u00ednh th\u1ee9c<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 s\u1eed d\u1ee5ng Tarsnap tr\u00ean Ubuntu, b\u1ea1n s\u1ebd c\u1ea7n c\u00e1c g\u00f3i deb v\u00e0 c\u1ea5u h\u00ecnh apt-get \u0111\u1ec3 tin c\u1eady c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m ch\u00ednh th\u1ee9c \u0111\u00e3 \u0111\u01b0\u1ee3c k\u00fd \u0111i\u1ec7n t\u1eed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/pkg.tarsnap.com\/tarsnap-deb-packaging-key.asc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>gpg --show-key tarsnap-deb-packaging-key.asc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">X\u00e1c minh t\u00ednh x\u00e1c th\u1ef1c c\u1ee7a kh\u00f3a b\u1eb1ng c\u00e1ch ki\u1ec3m tra d\u1ea5u v\u00e2n tay v\u00e0 c\u00e1c ID kh\u00f3a c\u1ee7a n\u00f3.<br>Chu\u1ea9n b\u1ecb ch\u00eca kh\u00f3a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gpg --dearmor tarsnap-deb-packaging-key.asc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mv tarsnap-deb-packaging-key.asc.gpg tarsnap-archive-keyring.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Th\u00eam kh\u00f3a v\u00e0 kho l\u01b0u tr\u1eef:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo cp tarsnap-archive-keyring.gpg \/usr\/share\/keyrings\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb [signed-by=\/usr\/share\/keyrings\/tarsnap-archive-keyring.gpg] http:\/\/pkg.tarsnap.com\/deb\/$(lsb_release -s -c) .\/\" | sudo tee -a \/etc\/apt\/sources.list.d\/tarsnap.list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">C\u1eadp nh\u1eadt c\u01a1 s\u1edf d\u1eef li\u1ec7u apt v\u00e0 c\u00e0i \u0111\u1eb7t ch\u01b0\u01a1ng tr\u00ecnh tarsnap:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install tarsnap<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">B\u00e2y gi\u1edd h\u00e3y bu\u1ed9c t\u1ea5t c\u1ea3 l\u1ea1i b\u1eb1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tarsnap-keygen \\\n    --keyfile \/root\/tarsnap.key \\\n    --user <span \n                data-original-string='PX36h7E9kSTDQx+K00fW6A==a66tL6toyYod9IY547pkrGOWw=='\n                class='apbct-email-encoder'\n                title='This contact has been encoded by Anti-Spam by CleanTalk. Click to decode. To finish the decoding make sure that JavaScript is enabled in your browser.'><span class=\"apbct-blur\">**<\/span>@<span class=\"apbct-blur\">*****<\/span>le.com<\/span> \\\n    --m\u00e1y mybox<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda t\u1ec7p n\u00e0y <code>\/etc\/tarsnap.conf<\/code> t\u00f9y theo nhu c\u1ea7u c\u1ee7a b\u1ea1n, nh\u01b0ng trong h\u1ea7u h\u1ebft c\u00e1c tr\u01b0\u1eddng h\u1ee3p th\u00ec kh\u00f4ng c\u1ea7n ph\u1ea3i l\u00e0m \u0111i\u1ec1u \u0111\u00f3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Tarsnap \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 ho\u1ea1t \u0111\u1ed9ng ch\u1ee7 y\u1ebfu \u1edf ch\u1ebf \u0111\u1ed9 t\u1ef1 \u0111\u1ed9ng v\u00e0 t\u1ea1i Raybeam, ch\u00fang t\u00f4i c\u0169ng \u00e1p d\u1ee5ng nh\u01b0 v\u1eady. N\u1ebfu b\u1ea1n c\u1ea7n s\u1eed d\u1ee5ng n\u00f3 theo c\u00e1ch kh\u00e1c, h\u00e3y l\u00e0m theo h\u01b0\u1edbng d\u1eabn sau: https:\/\/www.tarsnap.com\/simple-usage.html<\/p>\n\n\n\n<div class=\"wp-block-group has-small-font-size has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">T\u00e0i li\u1ec7u tham kh\u1ea3o:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/stevendouglas.me\/posts\/backup-wordpress-website-offsite-with-tarsnap\/\">https:\/\/stevendouglas.me\/posts\/backup-wordpress-website-offsite-with-tarsnap\/<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"featured_media":0,"parent":47233,"menu_order":5,"comment_status":"open","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","pmpro_default_level":"","nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-47280","docs","type-docs","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs\/47280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/comments?post=47280"}],"version-history":[{"count":1,"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs\/47280\/revisions"}],"predecessor-version":[{"id":47281,"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs\/47280\/revisions\/47281"}],"up":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs\/47233"}],"wp:attachment":[{"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/media?parent=47280"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/raybeam.jp\/vi\/wp-json\/wp\/v2\/docs_category?post=47280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}