{"id":116485,"date":"2025-07-03T12:18:09","date_gmt":"2025-07-03T05:18:09","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=116485"},"modified":"2025-08-06T18:36:47","modified_gmt":"2025-08-06T11:36:47","slug":"cach-backup-va-restore-credential-n8n","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-backup-va-restore-credential-n8n\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e1ch backup v\u00e0 restore credential n8n l\u00ean Google Drive"},"content":{"rendered":"\n<p><strong>N\u1ebfu m\u1ea5t d\u1eef li\u1ec7u credential, to\u00e0n b\u1ed9<a href=\"https:\/\/tino.vn\/blog\/cach-tao-workflow-tren-n8n-co-ban\/\" data-type=\"post\" data-id=\"104929\" target=\"_blank\" rel=\"noreferrer noopener\"> workflow n8n<\/a> c\u00f3 th\u1ec3 tr\u1edf n\u00ean v\u00f4 d\u1ee5ng ho\u1eb7c ng\u01b0ng ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n. Ch\u00ednh v\u00ec v\u1eady, vi\u1ec7c backup credential \u0111\u1ecbnh k\u1ef3 l\u00e0 b\u1eaft bu\u1ed9c \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o an to\u00e0n d\u1eef li\u1ec7u v\u00e0 duy tr\u00ec t\u00ednh \u1ed5n \u0111\u1ecbnh cho h\u1ec7 th\u1ed1ng. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch backup v\u00e0 restore credential n8n l\u00ean Google Drive t\u1ef1 \u0111\u1ed9ng &#8211; \u0111\u01a1n gi\u1ea3n v\u00e0 nhanh ch\u00f3ng.<\/strong><\/p>\n\n\n\n<h2 id=\"T\u1ed5ng_quan_v\u1ec1_Credential_trong_n8n\"><a id=\"post-116485-_7y6o5uklbjrh\"><\/a>T\u1ed5ng quan v\u1ec1 Credential trong n8n<\/h2>\n\n\n\n<h3 id=\"Credential_n8n_l\u00e0_g\u00ec?\"><a id=\"post-116485-_er4dj46k67wk\"><\/a><strong>Credential n8n l\u00e0 g\u00ec?<\/strong><\/h3>\n\n\n\n<p>Trong n8n, Credential l\u00e0 t\u1eadp h\u1ee3p c\u00e1c th\u00f4ng tin x\u00e1c th\u1ef1c (nh\u01b0 API Key, Client ID\/Secret, Username\/Password, Access Token&#8230;) \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 cho ph\u00e9p c\u00e1c workflow c\u1ee7a b\u1ea1n t\u01b0\u01a1ng t\u00e1c v\u00e0 x\u00e1c th\u1ef1c v\u1edbi c\u00e1c \u1ee9ng d\u1ee5ng v\u00e0 d\u1ecbch v\u1ee5 c\u1ee7a b\u00ean th\u1ee9 ba (v\u00ed d\u1ee5: Google Drive, Slack, c\u01a1 s\u1edf d\u1eef li\u1ec7u,&#8230;).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-1.png\" alt=\"Credential n8n l\u00e0 g\u00ec?\" class=\"wp-image-116495\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-1.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-1-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>Credential n8n l\u00e0 g\u00ec?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Credential \u0111\u00f3ng vai tr\u00f2 nh\u01b0 &#8220;ch\u00eca kh\u00f3a&#8221; gi\u00fap n8n c\u00f3 th\u1ec3 th\u1ef1c thi c\u00e1c h\u00e0nh \u0111\u1ed9ng nh\u01b0 g\u1eedi tin nh\u1eafn, truy xu\u1ea5t d\u1eef li\u1ec7u ho\u1eb7c ghi nh\u1eadn th\u00f4ng tin v\u00e0o h\u1ec7 th\u1ed1ng th\u1ee9 ba m\u1ed9t c\u00e1ch an to\u00e0n v\u00e0 c\u00f3 ki\u1ec3m so\u00e1t.<\/p>\n\n\n\n<h3 id=\"R\u1ee7i_ro_n\u1ebfu_m\u1ea5t_credential_\"><a id=\"post-116485-_ofleuntp3gmi\"><\/a><strong>R\u1ee7i ro n\u1ebfu m\u1ea5t credential <\/strong><\/h3>\n\n\n\n<p>Khi b\u1ea1n v\u1eadn h\u00e0nh n8n d\u01b0\u1edbi h\u00ecnh th\u1ee9c self-host (<a href=\"https:\/\/tino.vn\/vps-n8n\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/tino.vn\/n8n-ai-workflow\" rel=\"noreferrer noopener\">t\u1ef1 tri\u1ec3n khai tr\u00ean VPS<\/a>, server ri\u00eang), b\u1ea1n ch\u1ecbu ho\u00e0n to\u00e0n tr\u00e1ch nhi\u1ec7m b\u1ea3o m\u1eadt v\u00e0 l\u01b0u tr\u1eef d\u1eef li\u1ec7u. Vi\u1ec7c kh\u00f4ng backup credential c\u00f3 th\u1ec3 d\u1eabn \u0111\u1ebfn:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u1ea5t to\u00e0n b\u1ed9 k\u1ebft n\u1ed1i v\u1edbi c\u00e1c d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i: <\/strong>C\u00e1c workflow s\u1ebd kh\u00f4ng th\u1ec3 g\u1eedi, nh\u1eadn ho\u1eb7c thao t\u00e1c v\u1edbi d\u1eef li\u1ec7u n\u1ebfu kh\u00f4ng c\u00f3 credential.<\/li>\n\n\n\n<li><strong>T\u1ed1n th\u1eddi gian thi\u1ebft l\u1eadp l\u1ea1i th\u1ee7 c\u00f4ng:<\/strong> N\u1ebfu credential b\u1ecb m\u1ea5t, b\u1ea1n ph\u1ea3i t\u1ea1o l\u1ea1i t\u1eebng k\u1ebft n\u1ed1i, nh\u1eadp l\u1ea1i th\u00f4ng tin x\u00e1c th\u1ef1c \u2013 \u0111\u1eb7c bi\u1ec7t ph\u1ee9c t\u1ea1p n\u1ebfu b\u1ea1n c\u00f3 nhi\u1ec1u workflow ho\u1eb7c l\u00e0m vi\u1ec7c theo nh\u00f3m.<\/li>\n\n\n\n<li><strong>Nguy c\u01a1 b\u1ea3o m\u1eadt n\u1ebfu kh\u00f4ng qu\u1ea3n l\u00fd \u0111\u00fang:<\/strong> N\u1ebfu backup kh\u00f4ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a ho\u1eb7c b\u1ea3o v\u1ec7 \u0111\u00fang c\u00e1ch, credential c\u00f3 th\u1ec3 b\u1ecb l\u1ed9, \u1ea3nh h\u01b0\u1edfng nghi\u00eam tr\u1ecdng \u0111\u1ebfn b\u1ea3o m\u1eadt h\u1ec7 th\u1ed1ng.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-2.png\" alt=\"R\u1ee7i ro n\u1ebfu m\u1ea5t credential \" class=\"wp-image-116496\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-2.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/cach-backup-credentinal-n8n-len-google-drive-2-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>R\u1ee7i ro n\u1ebfu m\u1ea5t credential <\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>V\u00ec nh\u1eefng l\u00fd do tr\u00ean, vi\u1ec7c backup \u0111\u1ecbnh k\u1ef3 credential trong n8n l\u00e0 c\u1ef1c k\u1ef3 quan tr\u1ecdng, \u0111\u1eb7c bi\u1ec7t v\u1edbi nh\u1eefng ai \u0111ang t\u1ef1 v\u1eadn h\u00e0nh h\u1ec7 th\u1ed1ng. Ngo\u00e0i ra, khi b\u1ea1n c\u1ea7n chuy\u1ec3n n8n sang m\u1ed9t m\u00e1y ch\u1ee7 m\u1edbi ho\u1eb7c n\u00e2ng c\u1ea5p phi\u00ean b\u1ea3n, vi\u1ec7c c\u00f3 s\u1eb5n m\u1ed9t b\u1ea3n sao l\u01b0u credential s\u1ebd gi\u00fap qu\u00e1 tr\u00ecnh chuy\u1ec3n \u0111\u1ed5i di\u1ec5n ra su\u00f4n s\u1ebb v\u00e0 nhanh ch\u00f3ng.<\/p>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_chi_ti\u1ebft_c\u00e1ch_backup_v\u00e0_restore_credential_n8n_l\u00ean_Google_Drive\"><a id=\"post-116485-_sbl5fu2hiwqs\"><\/a>H\u01b0\u1edbng d\u1eabn chi ti\u1ebft c\u00e1ch backup v\u00e0 restore credential n8n l\u00ean Google Drive<\/h2>\n\n\n\n<h3 id=\"Backup_credential_n8n_l\u00ean_Google_Drive\">Backup credential n8n l\u00ean Google Drive<\/h3>\n\n\n\n<p>Quy tr\u00ecnh n\u00e0y bao g\u1ed3m vi\u1ec7c t\u1ea1o m\u1ed9t workflow t\u1ef1 \u0111\u1ed9ng tr\u00ean n8n \u0111\u1ec3 xu\u1ea5t file credential v\u00e0 t\u1ea3i n\u00f3 l\u00ean Google Drive theo l\u1ecbch tr\u00ecnh b\u1ea1n \u0111\u1eb7t. <\/p>\n\n\n\n<p><strong>L\u01b0u \u00fd:<\/strong> N\u1ebfu b\u1ea1n kh\u00f4ng quan t\u00e2m \u0111\u1ebfn qu\u00e1 tr\u00ecnh t\u1ea1o workflow, b\u1ea1n c\u00f3 th\u1ec3 t\u1ea3i tr\u1ef1c ti\u1ebfp workflow backup credential t\u1ea1i <a href=\"https:\/\/drive.google.com\/file\/d\/1J0Wy-DLefGH7bESwLvQGeHWTdCvGV58u\/view?usp=drive_link\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1J0Wy-DLefGH7bESwLvQGeHWTdCvGV58u\/view?usp=drive_link\" rel=\"nofollow noopener\" target=\"_blank\">\u0111\u00e2y<\/a>, sau \u0111\u00f3, ch\u1ec9 c\u1ea7n import v\u00e0o v\u00e0 c\u1ea5u h\u00ecnh m\u1ed9t s\u1ed1 node l\u00e0 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng.<\/p>\n\n\n\n<h4 id=\"B\u01b0\u1edbc_1:_T\u1ea1o_l\u1ecbch_tr\u00ecnh_v\u1edbi_Schedule_Trigger\"><a id=\"post-116485-_v395y3geg1yr\"><\/a>B\u01b0\u1edbc 1: T\u1ea1o l\u1ecbch tr\u00ecnh v\u1edbi Schedule Trigger<\/h4>\n\n\n\n<p>\u0110\u1ea7u ti\u00ean, b\u1ea1n c\u1ea7n m\u1ed9t node Schedule Trigger \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng k\u00edch ho\u1ea1t workflow. Trong ph\u1ea7n <strong>Parameters<\/strong>, b\u1ea1n c\u00f3 th\u1ec3 thi\u1ebft l\u1eadp l\u1ecbch tr\u00ecnh sao l\u01b0u.<\/p>\n\n\n\n<p>V\u00ed d\u1ee5, \u0111\u1ec3 sao l\u01b0u 3 ng\u00e0y m\u1ed9t l\u1ea7n v\u00e0o l\u00fac n\u1eeda \u0111\u00eam, h\u00e3y c\u00e0i \u0111\u1eb7t nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Trigger Interval:<\/strong> Days<\/li>\n\n\n\n<li><strong>Days Between Triggers:<\/strong> 3<\/li>\n\n\n\n<li><strong>Trigger at Hour:<\/strong> Midnight<\/li>\n\n\n\n<li><strong>Trigger at Minute:<\/strong> 0<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1062\" height=\"612\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-1.png\" alt=\"T\u1ea1o l\u1ecbch tr\u00ecnh v\u1edbi Schedule Trigger\" class=\"wp-image-116486\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-1.png 1062w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-1-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-1-1024x590.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-1-768x443.png 768w\" sizes=\"(max-width: 1062px) 100vw, 1062px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea1o l\u1ecbch tr\u00ecnh v\u1edbi Schedule Trigger<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"B\u01b0\u1edbc_2:_Xu\u1ea5t_file_credential_v\u1edbi_Execute_Command\"><a id=\"post-116485-_r6wpf9wpoytl\"><\/a>B\u01b0\u1edbc 2: Xu\u1ea5t file credential v\u1edbi Execute Command<\/h4>\n\n\n\n<p>Th\u00eam node Execute Command v\u00e0 k\u1ebft n\u1ed1i n\u00f3 v\u1edbi node Schedule Trigger. Node n\u00e0y d\u00f9ng \u0111\u1ec3 ch\u1ea1y m\u1ed9t l\u1ec7nh tr\u00ean m\u00e1y ch\u1ee7 \u0111ang host n8n c\u1ee7a b\u1ea1n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1069\" height=\"564\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-2.png\" alt=\"Xu\u1ea5t file credential v\u1edbi Execute Command\" class=\"wp-image-116487\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-2.png 1069w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-2-300x158.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-2-1024x540.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-2-768x405.png 768w\" sizes=\"(max-width: 1069px) 100vw, 1069px\" \/><figcaption class=\"wp-element-caption\"><strong>Xu\u1ea5t file credential v\u1edbi Execute Command<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Trong \u00f4 <strong>Command<\/strong>, nh\u1eadp l\u1ec7nh sau \u0111\u1ec3 xu\u1ea5t t\u1ea5t c\u1ea3 credential ra m\u1ed9t file JSON. T\u00ean file s\u1ebd ch\u1ee9a ng\u00e0y th\u00e1ng hi\u1ec7n t\u1ea1i \u0111\u1ec3 d\u1ec5 d\u00e0ng ph\u00e2n bi\u1ec7t. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>n8n export:credentials --all --decrypted --output=\/tmp\/credentials-{{ new Date().toISOString().slice(0, 10) }}.json<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1076\" height=\"621\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-3.png\" alt=\"Xu\u1ea5t file credential v\u1edbi Execute Command\" class=\"wp-image-116488\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-3.png 1076w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-3-300x173.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-3-1024x591.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-3-768x443.png 768w\" sizes=\"(max-width: 1076px) 100vw, 1076px\" \/><figcaption class=\"wp-element-caption\"><strong>Xu\u1ea5t file credential v\u1edbi Execute Command<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"B\u01b0\u1edbc_3:_\u0110\u1ecdc_file_v\u1eeba_xu\u1ea5t_v\u1edbi_Read_Files\"><a id=\"post-116485-_j51j2erg2bj6\"><\/a>B\u01b0\u1edbc 3: \u0110\u1ecdc file v\u1eeba xu\u1ea5t v\u1edbi Read Files<\/h4>\n\n\n\n<p>Th\u00eam node <strong>Read\/Write Files from Disk<\/strong> v\u00e0 k\u1ebft n\u1ed1i n\u00f3 v\u1edbi node Execute Command. Node n\u00e0y \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 \u0111\u1ecdc n\u1ed9i dung c\u1ee7a file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea1o ra \u1edf b\u01b0\u1edbc tr\u01b0\u1edbc.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"846\" height=\"533\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-4.png\" alt=\"\u0110\u1ecdc file v\u1eeba xu\u1ea5t v\u1edbi Read Files\" class=\"wp-image-116489\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-4.png 846w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-4-300x189.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-4-768x484.png 768w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><figcaption class=\"wp-element-caption\"><strong>\u0110\u1ecdc file v\u1eeba xu\u1ea5t v\u1edbi Read Files<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Trong ph\u1ea7n <strong>File(s) Selector<\/strong>, nh\u1eadp l\u1ea1i \u0111\u01b0\u1eddng d\u1eabn v\u00e0 t\u00ean file gi\u1ed1ng h\u1ec7t nh\u01b0 trong l\u1ec7nh \u1edf b\u01b0\u1edbc 2. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/tmp\/credentials-{{ new Date().toISOString().slice(0, 10) }}.json<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1060\" height=\"620\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-5.png\" alt=\"\u0110\u1ecdc file v\u1eeba xu\u1ea5t v\u1edbi Read Files\" class=\"wp-image-116490\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-5.png 1060w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-5-300x175.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-5-1024x599.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-5-768x449.png 768w\" sizes=\"(max-width: 1060px) 100vw, 1060px\" \/><figcaption class=\"wp-element-caption\"><strong>\u0110\u1ecdc file v\u1eeba xu\u1ea5t v\u1edbi Read Files<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"B\u01b0\u1edbc_4:_T\u1ea3i_file_l\u00ean_Google_Drive\"><a id=\"post-116485-_84peuffrr0p0\"><\/a>B\u01b0\u1edbc 4: T\u1ea3i file l\u00ean Google Drive<\/h4>\n\n\n\n<p>Tr\u01b0\u1edbc ti\u00ean, b\u1ea1n h\u00e3y t\u1ea1o m\u1ed9t th\u01b0 m\u1ee5c trong t\u00e0i kho\u1ea3n Google Drive v\u00e0 \u0111\u1eb7t t\u00ean cho n\u00f3 l\u00e0: Backup (ho\u1eb7c m\u1ed9t t\u00ean b\u1ea5t k\u1ef3).<\/p>\n\n\n\n<p>Sau \u0111\u00f3, quay l\u1ea1i n8n, th\u00eam node <strong>Google Drive<\/strong> v\u00e0 k\u1ebft n\u1ed1i n\u00f3 v\u1edbi node Read Files. Node n\u00e0y s\u1ebd th\u1ef1c hi\u1ec7n vi\u1ec7c t\u1ea3i file credential l\u00ean t\u00e0i kho\u1ea3n Google Drive c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<p>C\u1ea5u h\u00ecnh c\u00e1c th\u00f4ng s\u1ed1 nh\u01b0 sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Credential to connect with: <\/strong>Ch\u1ecdn Credential Google b\u1ea1n \u0111\u00e3 t\u1ea1o \u1ee9ng v\u1edbi t\u00e0i kho\u1ea3n Google Drive b\u1ea1n d\u00f9ng \u0111\u1ec3 l\u01b0u file backup. Tham kh\u1ea3o h\u01b0\u1edbng d\u1eabn: <a href=\"https:\/\/tino.vn\/blog\/cach-xac-thuc-credential-cho-google-tren-n8n\/\" target=\"_blank\" rel=\"noreferrer noopener\">C\u00e1ch x\u00e1c th\u1ef1c Credential cho Google tr\u00ean n8n<\/a>.<\/li>\n\n\n\n<li><strong>Resource: <\/strong>File<\/li>\n\n\n\n<li><strong>Operation:<\/strong> Upload<\/li>\n\n\n\n<li><strong>File Name:<\/strong> \u0110\u1eb7t t\u00ean cho file s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u tr\u00ean Google Drive. B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng bi\u1ec3u th\u1ee9c \u0111\u1ec3 t\u00ean file t\u1ef1 \u0111\u1ed9ng c\u1eadp nh\u1eadt theo ng\u00e0y: Credentials-{{ new Date().toISOString().slice(0, 10) }}<\/li>\n\n\n\n<li><strong>Parent Drive:<\/strong> My Drive<\/li>\n\n\n\n<li><strong>Parent Folder<\/strong>: Ch\u1ecdn th\u01b0 m\u1ee5c b\u1ea1n mu\u1ed1n l\u01b0u file backup tr\u00ean Google Drive (v\u00ed d\u1ee5: Backup).<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1068\" height=\"623\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-6.png\" alt=\"T\u1ea3i file l\u00ean Google Drive\" class=\"wp-image-116491\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-6.png 1068w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-6-300x175.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-6-1024x597.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-6-768x448.png 768w\" sizes=\"(max-width: 1068px) 100vw, 1068px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u1ea3i file l\u00ean Google Drive<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<h4 id=\"B\u01b0\u1edbc_5:_L\u01b0u_v\u00e0_k\u00edch_ho\u1ea1t_workflow\"><a id=\"post-116485-_5wlcpmx6emy5\"><\/a>B\u01b0\u1edbc 5: L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow<\/h4>\n\n\n\n<p>Sau khi \u0111\u00e3 c\u1ea5u h\u00ecnh xong t\u1ea5t c\u1ea3 c\u00e1c node, nh\u1ea5n n\u00fat<strong> Save<\/strong> \u0111\u1ec3 l\u01b0u l\u1ea1i workflow.<\/p>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 nh\u1ea5n<strong> Test workflow<\/strong> \u0111\u1ec3 ch\u1ea1y th\u1eed v\u00e0 ki\u1ec3m tra xem file credential c\u00f3 \u0111\u01b0\u1ee3c t\u1ea3i l\u00ean Google Drive th\u00e0nh c\u00f4ng hay kh\u00f4ng.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"921\" height=\"630\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-7.png\" alt=\"L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow\" class=\"wp-image-116492\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-7.png 921w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-7-300x205.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-7-768x525.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>Sau khi workflow ch\u1ea1y, b\u1ea1n s\u1ebd th\u1ea5y m\u1ed9t file credential m\u1edbi (v\u00ed d\u1ee5: Credentials-2025-07-03) xu\u1ea5t hi\u1ec7n trong th\u01b0 m\u1ee5c Backup tr\u00ean Google Drive c\u1ee7a b\u1ea1n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"853\" height=\"534\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-8.png\" alt=\"L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow\" class=\"wp-image-116493\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-8.png 853w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-8-300x188.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-8-768x481.png 768w\" sizes=\"(max-width: 853px) 100vw, 853px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>M\u1edf file \u0111\u1ec3 ki\u1ec3m tra:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1304\" height=\"627\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-9.png\" alt=\"L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow\" class=\"wp-image-116494\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-9.png 1304w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-9-300x144.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-9-1024x492.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/word-image-116485-9-768x369.png 768w\" sizes=\"(max-width: 1304px) 100vw, 1304px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u01b0u v\u00e0 k\u00edch ho\u1ea1t workflow<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Cu\u1ed1i c\u00f9ng, h\u00e3y b\u1eadt c\u00f4ng t\u1eafc <strong>Active<\/strong> \u1edf g\u00f3c tr\u00ean b\u00ean tr\u00e1i \u0111\u1ec3 k\u00edch ho\u1ea1t workflow ch\u1ea1y t\u1ef1 \u0111\u1ed9ng theo l\u1ecbch tr\u00ecnh \u0111\u00e3 \u0111\u1eb7t.<\/p>\n\n\n\n<h3 id=\"C\u00e1ch_restore_credential_n8n\"><strong>C\u00e1ch restore credential n8n<\/strong><\/h3>\n\n\n\n<p>Tino s\u1ebd cung c\u1ea5p cho b\u1ea1n workflow kh\u00f4i ph\u1ee5c credential m\u1eabu \u0111\u1ec3 t\u1ea3i v\u1ec1 v\u00e0 import l\u00e0 c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng, b\u1ea1n kh\u00f4ng c\u1ea7n quan t\u00e2m qu\u00e1 tr\u00ecnh t\u1ea1o c\u00e1c node, ch\u1ec9 c\u1ea7n c\u1ea5u h\u00ecnh l\u1ea1i m\u1ed9t s\u1ed1 node l\u00e0 \u0111\u01b0\u1ee3c. C\u00e1ch s\u1eed d\u1ee5ng workflow nh\u01b0 sau:<\/p>\n\n\n\n<p><strong>B\u01b0\u1edbc 1:&nbsp;<\/strong>Tr\u01b0\u1edbc ti\u00ean, b\u1ea1n c\u1ea7n t\u1ea3i file backup credential v\u1ec1 m\u00e1y t\u00ednh. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"856\" height=\"561\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/Screenshot_1-4.png\" alt=\"C\u00e1ch restore credential\" class=\"wp-image-117993\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/Screenshot_1-4.png 856w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/Screenshot_1-4-300x197.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/Screenshot_1-4-768x503.png 768w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch restore credential<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>B\u01b0\u1edbc 2:<\/strong>&nbsp;T\u1ea3i workflow kh\u00f4i ph\u1ee5c t\u1ea1i&nbsp;<a href=\"https:\/\/drive.google.com\/file\/d\/1pui7s58h4serT7nLJqoHDenXW6-An7If\/view?usp=drive_link\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u0111\u00e2y<\/a>, sau \u0111\u00f3, import workflow n\u00e0y v\u00e0o trang n8n.<\/p>\n\n\n\n<p>Sau khi \u0111\u00e3 import workflow, b\u1ea1n nh\u1ea5n v\u00e0o n\u00fat&nbsp;<strong>Execute workflow<\/strong>&nbsp;\u0111\u1ec3 b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/1-1024x474.png\" alt=\"C\u00e1ch restore credential\" class=\"wp-image-117978\" title=\"H\u01b0\u1edbng d\u1eabn c\u00e1ch backup v\u00e0 restore workflow n8n l\u00ean Google Drive chi ti\u1ebft A-Z 27\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/1-1024x474.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/1-300x139.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/1-768x355.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/1.png 1178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch restore credential<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>L\u00fac n\u00e0y, m\u1ed9t bi\u1ec3u m\u1eabu xu\u1ea5t hi\u1ec7n \u0111\u1ec3 b\u1ea1n nh\u1eadp th\u00f4ng tin c\u1ea7n thi\u1ebft cho qu\u00e1 tr\u00ecnh kh\u00f4i ph\u1ee5c credential. Bao g\u1ed3m c\u00e1c tr\u01b0\u1eddng th\u00f4ng tin sau:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lo\u1ea1i file:\u00a0<\/strong>Ch\u1ecdn lo\u1ea1i file b\u1ea1n mu\u1ed1n kh\u00f4i ph\u1ee5c. C\u00f3 hai l\u1ef1a ch\u1ecdn ch\u00ednh l\u00e0 <strong>Workflows<\/strong> v\u00e0 <strong>Credentials<\/strong> -> ch\u1ecdn\u00a0<strong>Credentials<\/strong>.<\/li>\n\n\n\n<li><strong>File .json:<\/strong>&nbsp;Upload l\u00ean file backup \u0111\u00e3 t\u1ea3i v\u1ec1 m\u00e1y t\u00ednh \u1edf b\u01b0\u1edbc 1.<\/li>\n\n\n\n<li><strong>Ghi \u0111\u00e8:\u00a0<\/strong>Cho ph\u00e9p b\u1ea1n l\u1ef1a ch\u1ecdn ghi \u0111\u00e8 l\u00ean c\u00e1c credential hi\u1ec7n c\u00f3 tr\u00ean trang n8n. N\u1ebfu b\u1ea1n \u0111ang chuy\u1ec3n sang m\u1ed9t VPS ho\u00e0n to\u00e0n m\u1edbi v\u00e0 ch\u01b0a c\u00f3 credential n\u00e0o, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn\u00a0<strong>C\u00f3<\/strong>\u00a0ho\u1eb7c\u00a0<strong>Kh\u00f4ng<\/strong>\u00a0t\u00f9y \u00fd. Tuy nhi\u00ean, n\u1ebfu b\u1ea1n mu\u1ed1n \u0111\u1ea3m b\u1ea3o kh\u00f4ng c\u00f3 s\u1ef1 tr\u00f9ng l\u1eb7p ho\u1eb7c xung \u0111\u1ed9t, h\u00e3y c\u00e2n nh\u1eafc l\u1ef1a ch\u1ecdn <strong>C\u00f3<\/strong>.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/5-1-1024x511.png\" alt=\"C\u00e1ch restore credential\" class=\"wp-image-117994\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/5-1-1024x511.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/5-1-300x150.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/5-1-768x383.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/5-1.png 1357w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u00e1ch restore credential<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Nh\u1ea5n n\u00fat&nbsp;<strong>Submit<\/strong>&nbsp;\u0111\u1ec3 b\u1eaft \u0111\u1ea7u qu\u00e1 tr\u00ecnh kh\u00f4i ph\u1ee5c credential.<\/p>\n\n\n\n<p>N\u1ebfu th\u1ea5y th\u00f4ng b\u00e1o&nbsp;<strong>T\u1ea3i l\u00ean th\u00e0nh c\u00f4ng!&nbsp;<\/strong>(nh\u01b0 h\u00ecnh \u1ea3nh d\u01b0\u1edbi \u0111\u00e2y) t\u1ee9c l\u00e0 file \u0111\u00e3 \u0111\u01b0\u1ee3c import v\u00e0 h\u1ec7 th\u1ed1ng s\u1ebd t\u1ef1 \u0111\u1ed9ng x\u1eed l\u00fd.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"607\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/4-1024x607.png\" alt=\"C\u00e1ch restore credential\" class=\"wp-image-117980\" title=\"H\u01b0\u1edbng d\u1eabn c\u00e1ch backup v\u00e0 restore workflow n8n l\u00ean Google Drive chi ti\u1ebft A-Z 29\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/4-1024x607.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/4-300x178.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/4-768x455.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/4.png 1168w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><strong><strong>C\u00e1ch restore credential<\/strong><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Sau khi ho\u00e0n t\u1ea5t, b\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra l\u1ea1i trong giao di\u1ec7n n8n c\u1ee7a m\u00ecnh \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng t\u1ea5t c\u1ea3 c\u00e1c credential \u0111\u00e3 \u0111\u01b0\u1ee3c kh\u00f4i ph\u1ee5c th\u00e0nh c\u00f4ng. B\u1ea1n s\u1ebd th\u1ea5y danh s\u00e1ch c\u00e1c credential nh\u01b0 h\u00ecnh \u1ea3nh d\u01b0\u1edbi \u0111\u00e2y:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"879\" height=\"426\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/6-5.png\" alt=\"C\u00e1ch restore credential\" class=\"wp-image-117995\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/6-5.png 879w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/6-5-300x145.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/07\/6-5-768x372.png 768w\" sizes=\"(max-width: 879px) 100vw, 879px\" \/><figcaption class=\"wp-element-caption\"><strong><strong>C\u00e1ch restore credential<\/strong><\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"K\u1ebft_lu\u1eadn\"><a id=\"post-116485-_v1wo8kti2z\"><\/a><strong>K\u1ebft lu\u1eadn<\/strong><\/h3>\n\n\n\n<p>Vi\u1ec7c backup credential n8n l\u00ean Google Drive l\u00e0 m\u1ed9t b\u01b0\u1edbc quan tr\u1ecdng nh\u01b0ng th\u01b0\u1eddng b\u1ecb b\u1ecf qu\u00ean trong qu\u00e1 tr\u00ecnh v\u1eadn h\u00e0nh h\u1ec7 th\u1ed1ng t\u1ef1 \u0111\u1ed9ng h\u00f3a. \u0110\u1eebng \u0111\u1ec3 \u0111\u1ebfn khi m\u1ea5t th\u00f4ng tin k\u1ebft n\u1ed1i m\u1edbi b\u1eaft \u0111\u1ea7u quan t\u00e2m \u0111\u1ebfn vi\u1ec7c sao l\u01b0u. V\u1edbi h\u01b0\u1edbng d\u1eabn chi ti\u1ebft trong b\u00e0i vi\u1ebft, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ee7 \u0111\u1ed9ng thi\u1ebft l\u1eadp c\u01a1 ch\u1ebf backup \u0111\u1ecbnh k\u1ef3, an to\u00e0n v\u00e0 d\u1ec5 d\u00e0ng kh\u00f4i ph\u1ee5c ch\u1ec9 trong v\u00e0i ph\u00fat.<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><a id=\"post-116485-_egyced7qf7oz\"><\/a>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Node_Execute_Command_c\u00f3_ch\u1ee9c_n\u0103ng_g\u00ec?\">Node Execute Command c\u00f3 ch\u1ee9c n\u0103ng g\u00ec?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>V\u00ec kh\u00f4ng th\u1ec3 truy c\u1eadp credentials t\u1eeb b\u00ean trong, ch\u00fang ta ph\u1ea3i s\u1eed d\u1ee5ng m\u1ed9t &#8220;c\u1eeda sau&#8221; \u0111\u01b0\u1ee3c n8n cung c\u1ea5p cho qu\u1ea3n tr\u1ecb vi\u00ean h\u1ec7 th\u1ed1ng. \u0110\u00f3 l\u00e0 c\u00e1c l\u1ec7nh giao di\u1ec7n d\u00f2ng l\u1ec7nh (CLI). L\u1ec7nh&nbsp;<code>n8n export:credentials<\/code>&nbsp;l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 qu\u1ea3n tr\u1ecb, n\u00f3 y\u00eau c\u1ea7u n8n (v\u1edbi quy\u1ec1n h\u1ec7 th\u1ed1ng) gi\u1ea3i m\u00e3 v\u00e0 xu\u1ea5t credentials ra m\u1ed9t file t\u1ea1m. \u0110\u00e2y l\u00e0 c\u00e1ch duy nh\u1ea5t \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u n\u00e0y ra m\u1ed9t c\u00e1ch h\u1ee3p l\u1ec7.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u1ea1i_sao_ph\u1ea3i_s\u1eed_d\u1ee5ng_node_Read\/Write_Files_from_Disk?\">T\u1ea1i sao ph\u1ea3i s\u1eed d\u1ee5ng node Read\/Write Files from Disk?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>L\u1ec7nh \u1edf node Execute Command \u0111\u00e3 t\u1ea1o ra m\u1ed9t file v\u1eadt l\u00fd (<code>.json<\/code>) tr\u00ean \u1ed5 \u0111\u0129a c\u1ee7a m\u00e1y ch\u1ee7. Workflow hi\u1ec7n t\u1ea1i kh\u00f4ng bi\u1ebft g\u00ec v\u1ec1 n\u1ed9i dung c\u1ee7a file n\u00e0y. Node&nbsp;<strong>Read Files<\/strong>&nbsp;c\u00f3 nhi\u1ec7m v\u1ee5 \u0111\u1ecdc file v\u1eadt l\u00fd \u0111\u00f3 t\u1eeb \u1ed5 \u0111\u0129a v\u00e0 \u0111\u01b0a n\u1ed9i dung c\u1ee7a n\u00f3 v\u00e0o d\u00f2ng d\u1eef li\u1ec7u c\u1ee7a workflow.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u1ea1i_sao_workflow_c\u1ee7a_t\u00f4i_b\u00e1o_l\u1ed7i_\u1edf_node_Execute_Command?\">T\u1ea1i sao workflow c\u1ee7a t\u00f4i b\u00e1o l\u1ed7i \u1edf node Execute Command?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>L\u1ed7i n\u00e0y th\u01b0\u1eddng x\u1ea3y ra n\u1ebfu n8n kh\u00f4ng c\u00f3 quy\u1ec1n th\u1ef1c thi l\u1ec7nh tr\u00ean m\u00e1y ch\u1ee7. \u0110i\u1ec1u n\u00e0y \u0111\u1eb7c bi\u1ec7t ph\u1ed5 bi\u1ebfn n\u1ebfu b\u1ea1n \u0111ang d\u00f9ng n8n Cloud. Node Execute Command ch\u1ec9 ho\u1ea1t \u0111\u1ed9ng tr\u00ean c\u00e1c phi\u00ean b\u1ea3n n8n t\u1ef1 host (self-hosted) n\u01a1i b\u1ea1n c\u00f3 to\u00e0n quy\u1ec1n ki\u1ec3m so\u00e1t m\u00f4i tr\u01b0\u1eddng th\u1ef1c thi.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u00f4i_c\u00f3_c\u1ea7n_x\u00f3a_c\u00e1c_file_backup_c\u0169_tr\u00ean_m\u00e1y_ch\u1ee7_kh\u00f4ng?\">T\u00f4i c\u00f3 c\u1ea7n x\u00f3a c\u00e1c file backup c\u0169 tr\u00ean m\u00e1y ch\u1ee7 kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3. L\u1ec7nh trong h\u01b0\u1edbng d\u1eabn n\u00e0y l\u01b0u file credential v\u00e0o th\u01b0 m\u1ee5c \/tmp c\u1ee7a m\u00e1y ch\u1ee7. Th\u01b0 m\u1ee5c n\u00e0y th\u01b0\u1eddng s\u1ebd t\u1ef1 \u0111\u1ed9ng \u0111\u01b0\u1ee3c d\u1ecdn d\u1eb9p khi kh\u1edfi \u0111\u1ed9ng l\u1ea1i h\u1ec7 th\u1ed1ng. Tuy nhi\u00ean, \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o an to\u00e0n v\u00e0 tr\u00e1nh l\u00e0m \u0111\u1ea7y \u1ed5 \u0111\u0129a, b\u1ea1n n\u00ean th\u00eam m\u1ed9t b\u01b0\u1edbc v\u00e0o workflow \u0111\u1ec3 x\u00f3a file sau khi \u0111\u00e3 t\u1ea3i l\u00ean Google Drive th\u00e0nh c\u00f4ng.<\/p>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m \u0111i\u1ec1u n\u00e0y b\u1eb1ng c\u00e1ch th\u00eam m\u1ed9t node Execute Command n\u1eefa \u1edf cu\u1ed1i workflow v\u1edbi l\u1ec7nh rm \/tmp\/credentials-{{&#8230;}}.json.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u00f4i_c\u00f3_th\u1ec3_backup_l\u00ean_d\u1ecbch_v\u1ee5_l\u01b0u_tr\u1eef_kh\u00e1c_ngo\u00e0i_Google_Drive_kh\u00f4ng?\">T\u00f4i c\u00f3 th\u1ec3 backup l\u00ean d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef kh\u00e1c ngo\u00e0i Google Drive kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>Ch\u1eafc ch\u1eafn c\u00f3. n8n h\u1ed7 tr\u1ee3 r\u1ea5t nhi\u1ec1u d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y kh\u00e1c nh\u01b0 <a href=\"https:\/\/www.dropbox.com\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.dropbox.com\/\" rel=\"noreferrer noopener nofollow\">Dropbox<\/a>, <a href=\"https:\/\/www.microsoft.com\/vi-vn\/microsoft-365\/onedrive\/online-cloud-storage\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.microsoft.com\/vi-vn\/microsoft-365\/onedrive\/online-cloud-storage\" rel=\"noreferrer noopener nofollow\">OneDrive<\/a>, <a href=\"https:\/\/aws.amazon.com\/vi\/s3\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/aws.amazon.com\/vi\/s3\/\" rel=\"noreferrer noopener nofollow\">Amazon S3<\/a> ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 g\u1eedi file qua email. B\u1ea1n ch\u1ec9 c\u1ea7n thay th\u1ebf node Google Drive b\u1eb1ng node t\u01b0\u01a1ng \u1ee9ng v\u1edbi d\u1ecbch v\u1ee5 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng v\u00e0 c\u1ea5u h\u00ecnh t\u01b0\u01a1ng t\u1ef1.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u00f4i_c\u00f3_th\u1ec3_backup_ra_\u0111\u1ecbnh_d\u1ea1ng_\u0111\u01b0\u1ee3c_m\u00e3_h\u00f3a_kh\u00f4ng?\">T\u00f4i c\u00f3 th\u1ec3 backup ra \u0111\u1ecbnh d\u1ea1ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>C\u00f3, b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf c\u1edd &#8211;decrypted kh\u1ecfi l\u1ec7nh trong node Execute Command. Tuy nhi\u00ean, file k\u1ebft qu\u1ea3 s\u1ebd \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a v\u00e0 b\u1ea1n kh\u00f4ng th\u1ec3 xem tr\u1ef1c ti\u1ebfp n\u1ed9i dung. File n\u00e0y ch\u1ec9 h\u1eefu \u00edch cho vi\u1ec7c kh\u00f4i ph\u1ee5c b\u1eb1ng l\u1ec7nh n8n import:credentials. N\u1ebfu b\u1ea1n ch\u1ecdn c\u00e1ch n\u00e0y, workflow s\u1ebd kh\u00f4ng th\u1ec3 \u0111\u1ecdc v\u00e0 x\u1eed l\u00fd n\u1ed9i dung file, nh\u01b0ng v\u1eabn c\u00f3 th\u1ec3 t\u1ea3i file \u0111\u00e3 m\u00e3 h\u00f3a l\u00ean Drive.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Node Execute Command c\u00f3 ch\u1ee9c n\u0103ng g\u00ec?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>V\u00ec kh\u00f4ng th\u1ec3 truy c\u1eadp credentials t\u1eeb b\u00ean trong, ch\u00fang ta ph\u1ea3i s\u1eed d\u1ee5ng m\u1ed9t \\\"c\u1eeda sau\\\" \u0111\u01b0\u1ee3c n8n cung c\u1ea5p cho qu\u1ea3n tr\u1ecb vi\u00ean h\u1ec7 th\u1ed1ng. \u0110\u00f3 l\u00e0 c\u00e1c l\u1ec7nh giao di\u1ec7n d\u00f2ng l\u1ec7nh (CLI). L\u1ec7nh&nbsp;n8n export:credentials&nbsp;l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 qu\u1ea3n tr\u1ecb, n\u00f3 y\u00eau c\u1ea7u n8n (v\u1edbi quy\u1ec1n h\u1ec7 th\u1ed1ng) gi\u1ea3i m\u00e3 v\u00e0 xu\u1ea5t credentials ra m\u1ed9t file t\u1ea1m. \u0110\u00e2y l\u00e0 c\u00e1ch duy nh\u1ea5t \u0111\u1ec3 l\u1ea5y d\u1eef li\u1ec7u n\u00e0y ra m\u1ed9t c\u00e1ch h\u1ee3p l\u1ec7.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u1ea1i sao ph\u1ea3i s\u1eed d\u1ee5ng node Read\/Write Files from Disk?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>L\u1ec7nh \u1edf node Execute Command \u0111\u00e3 t\u1ea1o ra m\u1ed9t file v\u1eadt l\u00fd (.json) tr\u00ean \u1ed5 \u0111\u0129a c\u1ee7a m\u00e1y ch\u1ee7. Workflow hi\u1ec7n t\u1ea1i kh\u00f4ng bi\u1ebft g\u00ec v\u1ec1 n\u1ed9i dung c\u1ee7a file n\u00e0y. Node&nbsp;<strong>Read Files<\/strong>&nbsp;c\u00f3 nhi\u1ec7m v\u1ee5 \u0111\u1ecdc file v\u1eadt l\u00fd \u0111\u00f3 t\u1eeb \u1ed5 \u0111\u0129a v\u00e0 \u0111\u01b0a n\u1ed9i dung c\u1ee7a n\u00f3 v\u00e0o d\u00f2ng d\u1eef li\u1ec7u c\u1ee7a workflow.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u1ea1i sao workflow c\u1ee7a t\u00f4i b\u00e1o l\u1ed7i \u1edf node Execute Command?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>L\u1ed7i n\u00e0y th\u01b0\u1eddng x\u1ea3y ra n\u1ebfu n8n kh\u00f4ng c\u00f3 quy\u1ec1n th\u1ef1c thi l\u1ec7nh tr\u00ean m\u00e1y ch\u1ee7. \u0110i\u1ec1u n\u00e0y \u0111\u1eb7c bi\u1ec7t ph\u1ed5 bi\u1ebfn n\u1ebfu b\u1ea1n \u0111ang d\u00f9ng n8n Cloud. Node Execute Command ch\u1ec9 ho\u1ea1t \u0111\u1ed9ng tr\u00ean c\u00e1c phi\u00ean b\u1ea3n n8n t\u1ef1 host (self-hosted) n\u01a1i b\u1ea1n c\u00f3 to\u00e0n quy\u1ec1n ki\u1ec3m so\u00e1t m\u00f4i tr\u01b0\u1eddng th\u1ef1c thi.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u00f4i c\u00f3 c\u1ea7n x\u00f3a c\u00e1c file backup c\u0169 tr\u00ean m\u00e1y ch\u1ee7 kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. L\u1ec7nh trong h\u01b0\u1edbng d\u1eabn n\u00e0y l\u01b0u file credential v\u00e0o th\u01b0 m\u1ee5c \/tmp c\u1ee7a m\u00e1y ch\u1ee7. Th\u01b0 m\u1ee5c n\u00e0y th\u01b0\u1eddng s\u1ebd t\u1ef1 \u0111\u1ed9ng \u0111\u01b0\u1ee3c d\u1ecdn d\u1eb9p khi kh\u1edfi \u0111\u1ed9ng l\u1ea1i h\u1ec7 th\u1ed1ng. Tuy nhi\u00ean, \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o an to\u00e0n v\u00e0 tr\u00e1nh l\u00e0m \u0111\u1ea7y \u1ed5 \u0111\u0129a, b\u1ea1n n\u00ean th\u00eam m\u1ed9t b\u01b0\u1edbc v\u00e0o workflow \u0111\u1ec3 x\u00f3a file sau khi \u0111\u00e3 t\u1ea3i l\u00ean Google Drive th\u00e0nh c\u00f4ng.<\/p><p>B\u1ea1n c\u00f3 th\u1ec3 l\u00e0m \u0111i\u1ec1u n\u00e0y b\u1eb1ng c\u00e1ch th\u00eam m\u1ed9t node Execute Command n\u1eefa \u1edf cu\u1ed1i workflow v\u1edbi l\u1ec7nh rm \/tmp\/credentials-{{...}}.json.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u00f4i c\u00f3 th\u1ec3 backup l\u00ean d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef kh\u00e1c ngo\u00e0i Google Drive kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Ch\u1eafc ch\u1eafn c\u00f3. n8n h\u1ed7 tr\u1ee3 r\u1ea5t nhi\u1ec1u d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y kh\u00e1c nh\u01b0 <a>Dropbox<\/a>, <a>OneDrive<\/a>, <a>Amazon S3<\/a> ho\u1eb7c th\u1eadm ch\u00ed l\u00e0 g\u1eedi file qua email. B\u1ea1n ch\u1ec9 c\u1ea7n thay th\u1ebf node Google Drive b\u1eb1ng node t\u01b0\u01a1ng \u1ee9ng v\u1edbi d\u1ecbch v\u1ee5 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng v\u00e0 c\u1ea5u h\u00ecnh t\u01b0\u01a1ng t\u1ef1.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u00f4i c\u00f3 th\u1ec3 backup ra \u0111\u1ecbnh d\u1ea1ng \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3, b\u1ea1n c\u00f3 th\u1ec3 b\u1ecf c\u1edd --decrypted kh\u1ecfi l\u1ec7nh trong node Execute Command. Tuy nhi\u00ean, file k\u1ebft qu\u1ea3 s\u1ebd \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a v\u00e0 b\u1ea1n kh\u00f4ng th\u1ec3 xem tr\u1ef1c ti\u1ebfp n\u1ed9i dung. File n\u00e0y ch\u1ec9 h\u1eefu \u00edch cho vi\u1ec7c kh\u00f4i ph\u1ee5c b\u1eb1ng l\u1ec7nh n8n import:credentials. N\u1ebfu b\u1ea1n ch\u1ecdn c\u00e1ch n\u00e0y, workflow s\u1ebd kh\u00f4ng th\u1ec3 \u0111\u1ecdc v\u00e0 x\u1eed l\u00fd n\u1ed9i dung file, nh\u01b0ng v\u1eabn c\u00f3 th\u1ec3 t\u1ea3i file \u0111\u00e3 m\u00e3 h\u00f3a l\u00ean Drive.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>N\u1ebfu m\u1ea5t d\u1eef li\u1ec7u credential, to\u00e0n b\u1ed9 workflow n8n c\u00f3 th\u1ec3 tr\u1edf n\u00ean v\u00f4 d\u1ee5ng ho\u1eb7c ng\u01b0ng ho\u1ea1t \u0111\u1ed9ng ho\u00e0n to\u00e0n. Ch\u00ednh v\u00ec v\u1eady, vi\u1ec7c backup credential \u0111\u1ecbnh k\u1ef3 l\u00e0 b\u1eaft bu\u1ed9c \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o an to\u00e0n d\u1eef li\u1ec7u v\u00e0 duy tr\u00ec t\u00ednh \u1ed5n \u0111\u1ecbnh cho h\u1ec7 th\u1ed1ng. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":116497,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-116485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=116485"}],"version-history":[{"count":7,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116485\/revisions"}],"predecessor-version":[{"id":118001,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/116485\/revisions\/118001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/116497"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=116485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=116485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=116485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}