{"id":131113,"date":"2026-10-22T12:14:45","date_gmt":"2026-10-22T05:14:45","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=131113"},"modified":"2026-10-22T12:14:45","modified_gmt":"2026-10-22T05:14:45","slug":"backup-vps","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/backup-vps\/","title":{"rendered":"Backup VPS: ph\u00e2n bi\u1ec7t snapshot v\u00e0 backup, c\u00e1ch sao l\u01b0u v\u00e0 kh\u00f4i ph\u1ee5c an to\u00e0n"},"content":{"rendered":"\n<p class=\"tino-byline wp-block-paragraph\"><em>T\u00e1c gi\u1ea3: <a href=\"https:\/\/tino.vn\/blog\/author\/dong-tung\/\">\u0110\u00f4ng T\u00f9ng<\/a> \u00b7 Duy\u1ec7t k\u1ef9 thu\u1eadt: <a href=\"https:\/\/tino.vn\/blog\/author\/vanphong\/\">Nguy\u1ec5n V\u0103n Phong<\/a> \u00b7 C\u1eadp nh\u1eadt: 20\/10\/2026<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Backup VPS l\u00e0 t\u1ea1o b\u1ea3n sao d\u1eef li\u1ec7u c\u1ee7a m\u00e1y ch\u1ee7 (database, file website, c\u1ea5u h\u00ecnh) v\u00e0 l\u01b0u \u1edf n\u01a1i kh\u00e1c \u0111\u1ec3 kh\u00f4i ph\u1ee5c khi VPS h\u1ecfng, b\u1ecb x\u00f3a nh\u1ea7m ho\u1eb7c b\u1ecb t\u1ea5n c\u00f4ng.<\/strong> Snapshot ch\u1ec9 l\u00e0 \u1ea3nh ch\u1ee5p \u1ed5 \u0111\u0129a t\u1ea1i m\u1ed9t th\u1eddi \u0111i\u1ec3m, th\u01b0\u1eddng n\u1eb1m c\u00f9ng h\u1ea1 t\u1ea7ng v\u1edbi VPS, n\u00ean kh\u00f4ng thay th\u1ebf \u0111\u01b0\u1ee3c m\u1ed9t b\u1ea3n backup l\u01b0u ngo\u00e0i VPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1ch l\u00e0m an to\u00e0n cho ph\u1ea7n l\u1edbn VPS: dump database b\u1eb1ng <code>mysqldump<\/code> ho\u1eb7c <code>pg_dump<\/code>, n\u00e9n file website v\u00e0 c\u1ea5u h\u00ecnh, \u0111\u1ea9y b\u1ea3n sao ra ngo\u00e0i b\u1eb1ng <code>rclone<\/code> ho\u1eb7c <code>rsync<\/code>. Sau \u0111\u00f3 \u0111\u1eb7t l\u1ecbch b\u1eb1ng cron v\u00e0 th\u1eed kh\u00f4i ph\u1ee5c \u0111\u1ecbnh k\u1ef3. \u0110\u00e2y l\u00e0 b\u01b0\u1edbc 6 trong l\u1ed9 tr\u00ecnh <a href=\"https:\/\/tino.vn\/blog\/cach-su-dung-vps\/\">c\u00e1ch s\u1eed d\u1ee5ng VPS cho ng\u01b0\u1eddi m\u1edbi<\/a>.<\/p>\n\n\n\n<h2 id=\"Snapshot_v\u00e0_backup_VPS_kh\u00e1c_nhau_th\u1ebf_n\u00e0o?\">Snapshot v\u00e0 backup VPS kh\u00e1c nhau th\u1ebf n\u00e0o?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Snapshot ghi l\u1ea1i tr\u1ea1ng th\u00e1i to\u00e0n b\u1ed9 \u1ed5 \u0111\u0129a VPS t\u1ea1i m\u1ed9t th\u1eddi \u0111i\u1ec3m \u0111\u1ec3 quay v\u1ec1 nhanh, c\u00f2n backup l\u00e0 b\u1ea3n sao d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c ch\u1ecdn l\u1ecdc v\u00e0 l\u01b0u \u1edf m\u1ed9t n\u01a1i t\u00e1ch bi\u1ec7t. Snapshot h\u1ee3p \u0111\u1ec3 quay l\u1ea1i sau m\u1ed9t l\u1ea7n n\u00e2ng c\u1ea5p h\u1ecfng; backup h\u1ee3p \u0111\u1ec3 l\u1ea5y l\u1ea1i d\u1eef li\u1ec7u khi ch\u00ednh VPS g\u1eb7p s\u1ef1 c\u1ed1.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-snapshot-va-backup.webp\" alt=\"So s\u00e1nh snapshot v\u00e0 backup VPS: n\u01a1i l\u01b0u, c\u00e1ch kh\u00f4i ph\u1ee5c, th\u1eddi \u0111i\u1ec3m d\u00f9ng, \u0111\u1ed9 nh\u1ea5t qu\u00e1n c\u1ee7a database v\u00e0 kh\u1ea3 n\u0103ng c\u00f2n d\u1eef li\u1ec7u khi m\u1ea5t c\u1ea3 VPS\" class=\"wp-image-131094\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-snapshot-va-backup.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-snapshot-va-backup-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-snapshot-va-backup-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-snapshot-va-backup-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Ti\u00eau ch\u00ed<\/th><th>Snapshot<\/th><th>Backup<\/th><\/tr><\/thead><tbody><tr><td>B\u1ea3n ch\u1ea5t<\/td><td>\u1ea2nh ch\u1ee5p c\u1ea3 \u1ed5 \u0111\u0129a t\u1ea1i m\u1ed9t th\u1eddi \u0111i\u1ec3m<\/td><td>B\u1ea3n sao file, database, c\u1ea5u h\u00ecnh \u0111\u01b0\u1ee3c ch\u1ecdn<\/td><\/tr><tr><td>N\u01a1i l\u01b0u<\/td><td>Th\u01b0\u1eddng tr\u00ean c\u00f9ng h\u1ea1 t\u1ea7ng l\u01b0u tr\u1eef v\u1edbi VPS<\/td><td>N\u01a1i kh\u00e1c: m\u00e1y ch\u1ee7 kh\u00e1c, object storage, NAS<\/td><\/tr><tr><td>Kh\u00f4i ph\u1ee5c<\/td><td>\u0110\u01b0a c\u1ea3 VPS v\u1ec1 \u0111\u00fang th\u1eddi \u0111i\u1ec3m ch\u1ee5p<\/td><td>L\u1ea5y l\u1ea1i t\u1eebng file, t\u1eebng database ho\u1eb7c d\u1ef1ng l\u1ea1i c\u1ea3 h\u1ec7 th\u1ed1ng<\/td><\/tr><tr><td>Database \u0111ang ch\u1ea1y<\/td><td>C\u00f3 th\u1ec3 ch\u1ee5p l\u00fac \u0111ang ghi d\u1edf, c\u1ea7n ki\u1ec3m tra l\u1ea1i sau khi kh\u00f4i ph\u1ee5c<\/td><td>Dump b\u1eb1ng c\u00f4ng c\u1ee5 c\u1ee7a database n\u00ean d\u1eef li\u1ec7u nh\u1ea5t qu\u00e1n<\/td><\/tr><tr><td>N\u00ean d\u00f9ng khi<\/td><td>Ngay tr\u01b0\u1edbc khi n\u00e2ng c\u1ea5p h\u1ec7 \u0111i\u1ec1u h\u00e0nh, c\u00e0i ph\u1ea7n m\u1ec1m, s\u1eeda c\u1ea5u h\u00ecnh l\u1edbn<\/td><td>Theo l\u1ecbch h\u1eb1ng ng\u00e0y ho\u1eb7c h\u1eb1ng tu\u1ea7n, gi\u1eef nhi\u1ec1u phi\u00ean b\u1ea3n<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">T\u00ecm hi\u1ec3u th\u00eam c\u00e1c lo\u1ea1i snapshot trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/snapshot-la-gi\/\">snapshot l\u00e0 g\u00ec<\/a>. M\u1ed9t \u0111i\u1ec3m hay b\u1ecb nh\u1ea7m: \u1ed5 c\u1ee9ng RAID (v\u00ed d\u1ee5 RAID-10) ch\u1ec9 gi\u00fap VPS ch\u1ea1y ti\u1ebfp khi m\u1ed9t \u1ed5 v\u1eadt l\u00fd h\u1ecfng. RAID sao ch\u00e9p ngay m\u1ecdi thay \u0111\u1ed5i, k\u1ec3 c\u1ea3 l\u1ec7nh x\u00f3a nh\u1ea7m hay file b\u1ecb m\u00e3 h\u00f3a, n\u00ean RAID kh\u00f4ng ph\u1ea3i l\u00e0 backup. Xem <a href=\"https:\/\/tino.vn\/blog\/cac-loai-raid-luu-tru\/\">c\u00e1c lo\u1ea1i RAID l\u01b0u tr\u1eef<\/a>.<\/p>\n\n\n\n<h2 id=\"Quy_t\u1eafc_sao_l\u01b0u_3-2-1_\u00e1p_d\u1ee5ng_cho_VPS\">Quy t\u1eafc sao l\u01b0u 3-2-1 \u00e1p d\u1ee5ng cho VPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Quy t\u1eafc 3-2-1 khuy\u00ean gi\u1eef ba b\u1ea3n d\u1eef li\u1ec7u, tr\u00ean hai lo\u1ea1i l\u01b0u tr\u1eef thu\u1ed9c \u00edt nh\u1ea5t hai thi\u1ebft b\u1ecb, trong \u0111\u00f3 m\u1ed9t b\u1ea3n \u0111\u1ec3 \u1edf n\u01a1i kh\u00e1c (off-site). \u0110\u00e2y l\u00e0 c\u00e1ch di\u1ec5n \u0111\u1ea1t c\u1ee7a Cyber Security Hub thu\u1ed9c B\u1ed9 Gi\u00e1o d\u1ee5c Anh (<a href=\"https:\/\/cyber-security-hub.education.gov.uk\/321-backup\" rel=\"nofollow noopener\" target=\"_blank\">Department for Education<\/a>). V\u1edbi VPS, ba b\u1ea3n c\u00f3 th\u1ec3 s\u1eafp x\u1ebfp nh\u01b0 sau.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-quy-tac-3-2-1.webp\" alt=\"\u00c1p d\u1ee5ng quy t\u1eafc sao l\u01b0u 3-2-1 cho VPS: b\u1ea3n 1 l\u00e0 d\u1eef li\u1ec7u tr\u00ean VPS, b\u1ea3n 2 l\u00e0 backup ho\u1eb7c snapshot c\u1ee7a nh\u00e0 cung c\u1ea5p, b\u1ea3n 3 \u1edf n\u01a1i l\u01b0u tr\u1eef kh\u00e1c nh\u01b0 object storage, VPS kh\u00e1c ho\u1eb7c NAS\" class=\"wp-image-131093\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-quy-tac-3-2-1.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-quy-tac-3-2-1-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-quy-tac-3-2-1-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/backup-vps-quy-tac-3-2-1-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>B\u1ea3n 1, d\u1eef li\u1ec7u \u0111ang ch\u1ea1y tr\u00ean VPS:<\/strong> k\u00e8m m\u1ed9t b\u1ea3n dump database g\u1ea7n nh\u1ea5t trong <code>\/var\/backups\/vps<\/code> \u0111\u1ec3 kh\u00f4i ph\u1ee5c nhanh khi ch\u1ec9 l\u1ee1 tay x\u00f3a d\u1eef li\u1ec7u.<\/li>\n\n\n<li><strong>B\u1ea3n 2, backup ho\u1eb7c snapshot c\u1ee7a nh\u00e0 cung c\u1ea5p:<\/strong> d\u00f9ng khi c\u1ea7n \u0111\u01b0a c\u1ea3 VPS v\u1ec1 tr\u1ea1ng th\u00e1i c\u0169.<\/li>\n\n\n<li><strong>B\u1ea3n 3, ngo\u00e0i nh\u00e0 cung c\u1ea5p:<\/strong> object storage t\u01b0\u01a1ng th\u00edch S3, m\u1ed9t VPS \u1edf n\u01a1i kh\u00e1c, Google Drive ho\u1eb7c NAS \u1edf v\u0103n ph\u00f2ng. N\u00ean d\u00f9ng t\u00e0i kho\u1ea3n ri\u00eang m\u00e0 VPS kh\u00f4ng c\u00f3 quy\u1ec1n x\u00f3a.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110i\u1ec3m cu\u1ed1i c\u00f9ng quan tr\u1ecdng v\u1edbi m\u00e3 \u0111\u1ed9c t\u1ed1ng ti\u1ec1n: k\u1ebb t\u1ea5n c\u00f4ng chi\u1ebfm \u0111\u01b0\u1ee3c quy\u1ec1n root th\u01b0\u1eddng x\u00f3a lu\u00f4n b\u1ea3n sao l\u01b0u m\u00e0 VPS truy c\u1eadp \u0111\u01b0\u1ee3c. H\u00e3y gi\u1eef \u00edt nh\u1ea5t m\u1ed9t b\u1ea3n m\u00e0 VPS ch\u1ec9 ghi \u0111\u01b0\u1ee3c, kh\u00f4ng x\u00f3a \u0111\u01b0\u1ee3c (b\u1eadt versioning ho\u1eb7c kh\u00f3a \u0111\u1ed1i t\u01b0\u1ee3ng \u1edf object storage, ho\u1eb7c \u0111\u1ec3 m\u00e1y backup t\u1ef1 k\u00e9o d\u1eef li\u1ec7u v\u1ec1). Xem th\u00eam <a href=\"https:\/\/tino.vn\/blog\/ransomware-la-gi\/\">ransomware l\u00e0 g\u00ec<\/a>.<\/p>\n\n\n\n<h2 id=\"C\u1ea7n_sao_l\u01b0u_nh\u1eefng_g\u00ec_tr\u00ean_VPS?\">C\u1ea7n sao l\u01b0u nh\u1eefng g\u00ec tr\u00ean VPS?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n kh\u00f4ng c\u1ea7n sao l\u01b0u c\u1ea3 h\u1ec7 \u0111i\u1ec1u h\u00e0nh, v\u00ec c\u00e0i l\u1ea1i m\u1ed9t b\u1ea3n Ubuntu m\u1edbi th\u01b0\u1eddng nhanh h\u01a1n kh\u00f4i ph\u1ee5c. Th\u1ee9 c\u1ea7n gi\u1eef l\u00e0 nh\u1eefng g\u00ec kh\u00f4ng t\u1ef1 sinh l\u1ea1i \u0111\u01b0\u1ee3c. \u0110\u00f3 l\u00e0 d\u1eef li\u1ec7u trong database, file website v\u00e0 file ng\u01b0\u1eddi d\u00f9ng t\u1ea3i l\u00ean, c\u1ea5u h\u00ecnh d\u1ecbch v\u1ee5, ch\u1ee9ng ch\u1ec9, v\u00e0 danh s\u00e1ch vi\u1ec7c ch\u1ea1y theo l\u1ecbch.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Nh\u00f3m<\/th><th>V\u00ed d\u1ee5 \u0111\u01b0\u1eddng d\u1eabn tr\u00ean Ubuntu<\/th><th>Ghi ch\u00fa<\/th><\/tr><\/thead><tbody><tr><td>Database<\/td><td>MySQL\/MariaDB, PostgreSQL<\/td><td>Dump b\u1eb1ng c\u00f4ng c\u1ee5 c\u1ee7a database, kh\u00f4ng ch\u00e9p th\u1eb3ng th\u01b0 m\u1ee5c d\u1eef li\u1ec7u khi database \u0111ang ch\u1ea1y<\/td><\/tr><tr><td>Website, file t\u1ea3i l\u00ean<\/td><td><code>\/var\/www<\/code>, th\u01b0 m\u1ee5c <code>wp-content\/uploads<\/code><\/td><td>Ph\u1ea7n thay \u0111\u1ed5i nhi\u1ec1u nh\u1ea5t c\u00f9ng v\u1edbi database<\/td><\/tr><tr><td>C\u1ea5u h\u00ecnh<\/td><td><code>\/etc\/nginx<\/code>, <code>\/etc\/php<\/code>, <code>\/etc\/ssh\/sshd_config.d<\/code>, file <code>.env<\/code> c\u1ee7a \u1ee9ng d\u1ee5ng<\/td><td>Gi\u00fap d\u1ef1ng l\u1ea1i m\u00e1y ch\u1ee7 gi\u1ed1ng h\u1ec7t<\/td><\/tr><tr><td>Ch\u1ee9ng ch\u1ec9 SSL<\/td><td><code>\/etc\/letsencrypt<\/code><\/td><td>C\u00f3 th\u1ec3 xin l\u1ea1i, nh\u01b0ng gi\u1eef b\u1ea3n sao gi\u00fap kh\u00f4i ph\u1ee5c nhanh h\u01a1n<\/td><\/tr><tr><td>D\u1eef li\u1ec7u \u1ee9ng d\u1ee5ng<\/td><td>Docker volume, th\u01b0 m\u1ee5c d\u1eef li\u1ec7u c\u1ee7a n8n v\u00e0 \u1ee9ng d\u1ee5ng t\u1ef1 host<\/td><td>D\u1eebng \u1ee9ng d\u1ee5ng ho\u1eb7c d\u00f9ng l\u1ec7nh export ri\u00eang n\u1ebfu \u1ee9ng d\u1ee5ng c\u00f3<\/td><\/tr><tr><td>L\u1ecbch ch\u1ea1y v\u00e0 danh s\u00e1ch g\u00f3i<\/td><td><code>crontab -l<\/code>, <code>dpkg --get-selections<\/code><\/td><td>V\u00e0i KB nh\u01b0ng ti\u1ebft ki\u1ec7m nhi\u1ec1u th\u1eddi gian khi d\u1ef1ng l\u1ea1i<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"C\u00e1ch_sao_l\u01b0u_database_tr\u00ean_VPS\">C\u00e1ch sao l\u01b0u database tr\u00ean VPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Database ph\u1ea3i \u0111\u01b0\u1ee3c dump b\u1eb1ng ch\u00ednh c\u00f4ng c\u1ee5 c\u1ee7a n\u00f3 \u0111\u1ec3 b\u1ea3n sao nh\u1ea5t qu\u00e1n: <code>mysqldump<\/code> cho MySQL v\u00e0 MariaDB, <code>pg_dump<\/code> cho PostgreSQL. Ch\u00e9p th\u1eb3ng th\u01b0 m\u1ee5c d\u1eef li\u1ec7u khi database \u0111ang ghi c\u00f3 th\u1ec3 cho ra b\u1ea3n sao kh\u00f4ng kh\u00f4i ph\u1ee5c \u0111\u01b0\u1ee3c.<\/p>\n\n\n\n<h3 id=\"MySQL,_MariaDB:_mysqldump\">MySQL, MariaDB: mysqldump<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># 1. T\u1ea1o user MySQL ri\u00eang cho sao l\u01b0u, ch\u1ec9 c\u00f3 quy\u1ec1n \u0111\u1ecdc c\u1ea7n thi\u1ebft\nsudo mysql -e \"CREATE USER 'backup'@'localhost' IDENTIFIED BY 'MAT_KHAU_MANH';\nGRANT SELECT, SHOW VIEW, TRIGGER, EVENT, PROCESS, LOCK TABLES ON *.* TO 'backup'@'localhost';\"\n\n# 2. L\u01b0u th\u00f4ng tin \u0111\u0103ng nh\u1eadp v\u00e0o file ri\u00eang thay v\u00ec g\u00f5 m\u1eadt kh\u1ea9u trong l\u1ec7nh\nsudo nano \/root\/.my.cnf\n#   [client]\n#   user=backup\n#   password=MAT_KHAU_MANH\nsudo chmod 600 \/root\/.my.cnf\n\n# 3. Dump t\u1ea5t c\u1ea3 database, n\u00e9n l\u1ea1i. C\u1ea3 l\u1ec7nh ch\u1ea1y b\u1eb1ng root (sudo sh -c) v\u00ec \/var\/backups thu\u1ed9c root;\n#    umask 077 \u0111\u1ec3 ch\u1ec9 root \u0111\u1ecdc \u0111\u01b0\u1ee3c file dump\nsudo mkdir -p \/var\/backups\/vps\nsudo sh -c 'umask 077; mysqldump --single-transaction --routines --events --all-databases | gzip &gt; \/var\/backups\/vps\/db-$(date +%F).sql.gz'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Theo <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.4\/en\/mysqldump.html\" rel=\"nofollow noopener\" target=\"_blank\">MySQL 8.4 Reference Manual<\/a>, <code>mysqldump<\/code> c\u1ea7n quy\u1ec1n SELECT, SHOW VIEW, TRIGGER, v\u00e0 PROCESS khi kh\u00f4ng d\u00f9ng <code>--no-tablespaces<\/code>; t\u00f9y ch\u1ecdn <code>--events<\/code> c\u1ea7n th\u00eam quy\u1ec1n EVENT. L\u1ec7nh <code>sudo mysqldump \u2026 > file<\/code> s\u1ebd b\u00e1o &#8220;Permission denied&#8221; khi b\u1ea1n d\u00f9ng user sudo, v\u00ec ph\u00e9p <code>><\/code> ch\u1ea1y b\u1eb1ng user hi\u1ec7n t\u1ea1i ch\u1ee9 kh\u00f4ng ph\u1ea3i root. V\u00ec v\u1eady c\u1ea3 l\u1ec7nh \u0111\u01b0\u1ee3c b\u1ecdc trong <code>sudo sh -c<\/code>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--single-transaction<\/code> cho b\u1ea3n dump nh\u1ea5t qu\u00e1n m\u00e0 kh\u00f4ng kh\u00f3a \u1ee9ng d\u1ee5ng, nh\u01b0ng ch\u1ec9 v\u1edbi b\u1ea3ng InnoDB; b\u1ea3ng MyISAM v\u1eabn c\u00f3 th\u1ec3 thay \u0111\u1ed5i trong l\u00fac dump (<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.4\/en\/mysqldump.html\" rel=\"nofollow noopener\" target=\"_blank\">MySQL 8.4 Reference Manual<\/a>).<\/li>\n\n\n<li>V\u1edbi <code>--all-databases<\/code>, MySQL 8.4 kh\u00f4ng t\u1ef1 k\u00e8m stored routine v\u00e0 event, n\u00ean c\u1ea7n th\u00eam <code>--routines --events<\/code>.<\/li>\n\n\n<li>Tr\u00ean MariaDB, l\u1ec7nh t\u01b0\u01a1ng \u0111\u01b0\u01a1ng l\u00e0 <code>mariadb-dump<\/code>; t\u00ean <code>mysqldump<\/code> v\u1eabn d\u00f9ng \u0111\u01b0\u1ee3c tr\u00ean c\u00e1c b\u1ea3n ph\u1ed5 bi\u1ebfn. Tr\u00ean MariaDB ho\u1eb7c MySQL c\u00e0i t\u1eeb kho Ubuntu, root \u0111\u0103ng nh\u1eadp qua socket, n\u00ean c\u00f3 th\u1ec3 b\u1ecf user <code>backup<\/code> v\u00e0 file <code>.my.cnf<\/code>, ch\u1ea1y script b\u1eb1ng root.<\/li>\n\n\n<li>MySQL ghi r\u00f5 <code>mysqldump<\/code> kh\u00f4ng d\u00e0nh cho d\u1eef li\u1ec7u r\u1ea5t l\u1edbn. Database c\u1ee1 h\u00e0ng ch\u1ee5c GB n\u00ean c\u00e2n nh\u1eafc sao l\u01b0u v\u1eadt l\u00fd, v\u00ed d\u1ee5 <a href=\"https:\/\/tino.vn\/blog\/full-backup-va-restore-voi-mariabackup\/\">full backup v\u00e0 restore v\u1edbi Mariabackup<\/a>.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"PostgreSQL:_pg_dump\">PostgreSQL: pg_dump<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Dump m\u1ed9t database \u1edf \u0111\u1ecbnh d\u1ea1ng custom (\u0111\u00e3 n\u00e9n, kh\u00f4i ph\u1ee5c b\u1eb1ng pg_restore).\n# Ph\u00e9p &gt; ch\u1ea1y b\u1eb1ng root nh\u1edd sudo sh -c, n\u00ean ghi \u0111\u01b0\u1ee3c v\u00e0o \/var\/backups\/vps\nsudo sh -c 'umask 077; sudo -u postgres pg_dump -Fc tendb &gt; \/var\/backups\/vps\/tendb-$(date +%F).dump'\n\n# pg_dump kh\u00f4ng k\u00e8m role (user) v\u00e0 tablespace: sao l\u01b0u ri\u00eang b\u1eb1ng pg_dumpall --globals-only\nsudo sh -c 'umask 077; sudo -u postgres pg_dumpall --globals-only &gt; \/var\/backups\/vps\/pg-globals-$(date +%F).sql'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">T\u00e0i li\u1ec7u PostgreSQL cho bi\u1ebft <code>pg_dump<\/code> t\u1ea1o b\u1ea3n xu\u1ea5t nh\u1ea5t qu\u00e1n ngay c\u1ea3 khi database \u0111ang \u0111\u01b0\u1ee3c d\u00f9ng, v\u00e0 kh\u00f4ng ch\u1eb7n ng\u01b0\u1eddi \u0111\u1ecdc, ng\u01b0\u1eddi ghi kh\u00e1c. M\u1ed7i l\u1ea7n l\u1ec7nh ch\u1ec9 dump m\u1ed9t database; c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng d\u00f9ng chung nh\u01b0 role v\u00e0 tablespace ph\u1ea3i l\u1ea5y b\u1eb1ng <code>pg_dumpall --globals-only<\/code> (<a href=\"https:\/\/www.postgresql.org\/docs\/current\/app-pgdump.html\" rel=\"nofollow noopener\" target=\"_blank\">PostgreSQL docs<\/a>).<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_\u0111\u01b0a_b\u1ea3n_sao_l\u01b0u_ra_ngo\u00e0i_VPS_b\u1eb1ng_rsync_v\u00e0_rclone\">C\u00e1ch \u0111\u01b0a b\u1ea3n sao l\u01b0u ra ngo\u00e0i VPS b\u1eb1ng rsync v\u00e0 rclone<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1ed9t b\u1ea3n sao l\u01b0u ch\u1ec9 n\u1eb1m tr\u00ean ch\u00ednh VPS s\u1ebd m\u1ea5t c\u00f9ng VPS. Hai c\u00f4ng c\u1ee5 ph\u1ed5 bi\u1ebfn \u0111\u1ec3 \u0111\u01b0a n\u00f3 ra ngo\u00e0i l\u00e0 <code>rsync<\/code> v\u00e0 <code>rclone<\/code>. <code>rsync<\/code> ch\u00e9p qua SSH sang m\u1ed9t m\u00e1y ch\u1ee7 kh\u00e1c; <code>rclone<\/code> ch\u00e9p l\u00ean object storage ho\u1eb7c d\u1ecbch v\u1ee5 l\u01b0u tr\u1eef \u0111\u00e1m m\u00e2y nh\u01b0 Google Drive, c\u00f3 th\u1ec3 m\u00e3 h\u00f3a tr\u01b0\u1edbc khi t\u1ea3i l\u00ean.<\/p>\n\n\n\n<h3 id=\"rsync_sang_m\u00e1y_ch\u1ee7_kh\u00e1c_qua_SSH\">rsync sang m\u00e1y ch\u1ee7 kh\u00e1c qua SSH<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># C\u00e1ch an to\u00e0n h\u01a1n: ch\u1ea1y TR\u00caN M\u00c1Y BACKUP \u0111\u1ec3 k\u00e9o d\u1eef li\u1ec7u t\u1eeb VPS v\u1ec1\nrsync -az -e ssh backup@IP_VPS:\/var\/backups\/vps\/ \/backup\/vps-tino\/\n\n# Ho\u1eb7c \u0111\u1ea9y t\u1eeb VPS sang m\u00e1y backup\nsudo rsync -az \/var\/backups\/vps\/ backup@IP_MAY_BACKUP:\/backup\/vps-tino\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">File sao l\u01b0u ch\u1ec9 root \u0111\u1ecdc \u0111\u01b0\u1ee3c (<code>umask 077<\/code>). N\u1ebfu mu\u1ed1n m\u00e1y backup k\u00e9o d\u1eef li\u1ec7u v\u1ec1, h\u00e3y t\u1ea1o tr\u00ean VPS m\u1ed9t user ri\u00eang, v\u00ed d\u1ee5 <code>backup<\/code>, ch\u1ec9 d\u00f9ng \u0111\u1ec3 \u0111\u1ecdc b\u1ea3n sao l\u01b0u. C\u1ea5p quy\u1ec1n \u0111\u1ecdc th\u01b0 m\u1ee5c cho user n\u00e0y b\u1eb1ng <code>sudo chown -R root:backup \/var\/backups\/vps<\/code> v\u00e0 <code>sudo chmod 750 \/var\/backups\/vps<\/code>, r\u1ed3i \u0111\u1ed5i <code>umask 077<\/code> th\u00e0nh <code>umask 027<\/code> trong script.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Khi m\u00e1y backup t\u1ef1 k\u00e9o d\u1eef li\u1ec7u v\u1ec1, VPS kh\u00f4ng c\u1ea7n gi\u1eef th\u00f4ng tin \u0111\u0103ng nh\u1eadp v\u00e0o m\u00e1y backup, n\u00ean d\u00f9 VPS b\u1ecb chi\u1ebfm quy\u1ec1n th\u00ec b\u1ea3n sao v\u1eabn an to\u00e0n. K\u1ebft n\u1ed1i d\u00f9ng SSH key; xem <a href=\"https:\/\/tino.vn\/blog\/cach-ket-noi-vps\/\">c\u00e1ch k\u1ebft n\u1ed1i VPS b\u1eb1ng SSH key<\/a>. Kh\u00f4ng d\u00f9ng t\u00f9y ch\u1ecdn <code>--delete<\/code> cho th\u01b0 m\u1ee5c backup: file b\u1ecb x\u00f3a ho\u1eb7c b\u1ecb m\u00e3 h\u00f3a tr\u00ean VPS s\u1ebd b\u1ecb x\u00f3a theo \u1edf n\u01a1i l\u01b0u b\u1ea3n sao.<\/p>\n\n\n\n<h3 id=\"rclone_l\u00ean_object_storage_ho\u1eb7c_Google_Drive\">rclone l\u00ean object storage ho\u1eb7c Google Drive<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># C\u00e0i v\u00e0 khai b\u00e1o n\u01a1i l\u01b0u (ch\u1ea1y theo h\u01b0\u1edbng d\u1eabn t\u01b0\u01a1ng t\u00e1c).\n# D\u00f9ng sudo \u0111\u1ec3 c\u1ea5u h\u00ecnh n\u1eb1m trong t\u00e0i kho\u1ea3n root, kh\u1edbp v\u1edbi cron ch\u1ea1y b\u1eb1ng root \u1edf ph\u1ea7n sau\nsudo apt install rclone\nsudo rclone config\n\n# Ch\u00e9p th\u01b0 m\u1ee5c backup l\u00ean remote t\u00ean \"kho\" (thay b\u1eb1ng t\u00ean b\u1ea1n \u0111\u1eb7t)\nsudo rclone copy \/var\/backups\/vps kho:vps-backup\/$(hostname)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Khi <code>rclone config<\/code> h\u1ecfi x\u00e1c th\u1ef1c Google Drive tr\u00ean VPS kh\u00f4ng c\u00f3 tr\u00ecnh duy\u1ec7t, ch\u1ecdn kh\u00f4ng d\u00f9ng auto config. Sau \u0111\u00f3 ch\u1ea1y <code>rclone authorize \"drive\"<\/code> tr\u00ean m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n theo h\u01b0\u1edbng d\u1eabn c\u1ee7a rclone, r\u1ed3i d\u00e1n k\u1ebft qu\u1ea3 v\u00e0o VPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remote ki\u1ec3u <code>crypt<\/code> c\u1ee7a rclone t\u1ef1 m\u00e3 h\u00f3a tr\u01b0\u1edbc khi t\u1ea3i l\u00ean v\u00e0 gi\u1ea3i m\u00e3 khi t\u1ea3i v\u1ec1 (<a href=\"https:\/\/rclone.org\/crypt\/\" rel=\"nofollow noopener\" target=\"_blank\">rclone docs<\/a>). H\u00e3y l\u01b0u m\u1eadt kh\u1ea9u m\u00e3 h\u00f3a \u1edf m\u1ed9t n\u01a1i an to\u00e0n ngo\u00e0i VPS: m\u1ea5t m\u1eadt kh\u1ea9u th\u00ec kh\u00f4ng \u0111\u1ecdc l\u1ea1i \u0111\u01b0\u1ee3c b\u1ea3n sao. B\u1ea3n Ubuntu c\u00f3 th\u1ec3 c\u00e0i rclone c\u0169 h\u01a1n b\u1ea3n tr\u00ean trang ch\u1ee7; n\u1ebfu c\u1ea7n t\u00ednh n\u0103ng m\u1edbi, c\u00e0i theo h\u01b0\u1edbng d\u1eabn c\u1ee7a rclone.<\/p>\n\n\n\n<h2 id=\"\u0110\u1eb7t_l\u1ecbch_sao_l\u01b0u_t\u1ef1_\u0111\u1ed9ng_b\u1eb1ng_cron\">\u0110\u1eb7t l\u1ecbch sao l\u01b0u t\u1ef1 \u0111\u1ed9ng b\u1eb1ng cron<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sao l\u01b0u ch\u1ec9 c\u00f3 \u00edch khi ch\u1ea1y \u0111\u1ec1u m\u00e0 kh\u00f4ng c\u1ea7n nh\u1edb. Gom c\u00e1c l\u1ec7nh \u1edf tr\u00ean v\u00e0o m\u1ed9t script v\u00e0 cho cron ch\u1ea1y v\u00e0o gi\u1edd \u00edt truy c\u1eadp. Script n\u00ean ghi log \u0111\u1ec3 bi\u1ebft l\u1ea7n ch\u1ea1y n\u00e0o l\u1ed7i, v\u00e0 t\u1ef1 x\u00f3a b\u1ea3n c\u0169 tr\u00ean VPS \u0111\u1ec3 kh\u00f4ng \u0111\u1ea7y \u1ed5 c\u1ee9ng. Script m\u1eabu cho VPS Ubuntu ch\u1ea1y MySQL ho\u1eb7c MariaDB:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/env bash\n# \/usr\/local\/bin\/backup-vps.sh\nset -euo pipefail\numask 077   # ch\u1ec9 root \u0111\u1ecdc \u0111\u01b0\u1ee3c b\u1ea3n sao l\u01b0u\nNGAY=$(date +%F_%H%M)\nDICH=\/var\/backups\/vps\nmkdir -p \"$DICH\"\n\n# 1. Database (th\u00f4ng tin \u0111\u0103ng nh\u1eadp l\u1ea5y t\u1eeb \/root\/.my.cnf)\nmysqldump --single-transaction --routines --events --all-databases | gzip &gt; \"$DICH\/db-$NGAY.sql.gz\"\n\n# 2. File website, c\u1ea5u h\u00ecnh, ch\u1ee9ng ch\u1ec9\n# tar tr\u1ea3 m\u00e3 1 khi file thay \u0111\u1ed5i l\u00fac \u0111ang \u0111\u1ecdc (website \u0111ang c\u00f3 upload): ch\u1ea5p nh\u1eadn m\u00e3 n\u00e0y\ntar --warning=no-file-changed -czf \"$DICH\/files-$NGAY.tar.gz\" \/var\/www \/etc\/nginx \/etc\/letsencrypt || [ $? -eq 1 ]\n\n# 3. \u0110\u1ea9y ra ngo\u00e0i VPS\nrclone copy \"$DICH\" kho:vps-backup\/$(hostname)\n\n# 4. Xo\u00e1 b\u1ea3n c\u0169 h\u01a1n kho\u1ea3ng 7 ng\u00e0y tr\u00ean VPS\nfind \"$DICH\" -type f -mtime +7 -delete<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># C\u1ea5p quy\u1ec1n v\u00e0 th\u00eam l\u1ecbch ch\u1ea1y l\u00fac 2:30 s\u00e1ng m\u1ed7i ng\u00e0y\nsudo chmod 700 \/usr\/local\/bin\/backup-vps.sh\nsudo crontab -e\n\n# Th\u00eam d\u00f2ng sau v\u00e0o crontab c\u1ee7a root\n30 2 * * * \/usr\/local\/bin\/backup-vps.sh &gt;&gt; \/var\/log\/backup-vps.log 2&gt;&amp;1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00fa ph\u00e1p n\u0103m tr\u01b0\u1eddng th\u1eddi gian c\u1ee7a cron \u0111\u01b0\u1ee3c gi\u1ea3i th\u00edch trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/crontab-la-gi\/\">crontab l\u00e0 g\u00ec<\/a>. Script d\u00f9ng <code>set -euo pipefail<\/code> \u0111\u1ec3 d\u1eebng ngay khi m\u1ed9t l\u1ec7nh l\u1ed7i. <code>umask 077<\/code> gi\u00fap ch\u1ec9 root \u0111\u1ecdc \u0111\u01b0\u1ee3c b\u1ea3n sao l\u01b0u, v\u00ec file ch\u1ee9a to\u00e0n b\u1ed9 d\u1eef li\u1ec7u v\u00e0 private key SSL. H\u00e3y xem <code>\/var\/log\/backup-vps.log<\/code> sau v\u00e0i ng\u00e0y \u0111\u1ea7u, ho\u1eb7c g\u1eedi c\u1ea3nh b\u00e1o (email, Telegram) khi script k\u1ebft th\u00fac v\u1edbi l\u1ed7i. Th\u1eddi gian gi\u1eef b\u1ea3n sao tr\u00ean remote n\u00ean \u0111\u1eb7t \u1edf ph\u00eda n\u01a1i l\u01b0u (v\u00f2ng \u0111\u1eddi \u0111\u1ed1i t\u01b0\u1ee3ng, versioning), kh\u00f4ng x\u00f3a t\u1eeb VPS.<\/p>\n\n\n\n<h2 id=\"Ki\u1ec3m_th\u1eed_kh\u00f4i_ph\u1ee5c_\u0111\u1ecbnh_k\u1ef3\">Ki\u1ec3m th\u1eed kh\u00f4i ph\u1ee5c \u0111\u1ecbnh k\u1ef3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1ed9t b\u1ea3n sao l\u01b0u ch\u1ec9 \u0111\u00e1ng tin khi b\u1ea1n \u0111\u00e3 t\u1eebng kh\u00f4i ph\u1ee5c n\u00f3 th\u00e0nh c\u00f4ng. \u0110\u1ecbnh k\u1ef3, v\u00ed d\u1ee5 m\u1ed7i th\u00e1ng v\u00e0 sau m\u1ed7i thay \u0111\u1ed5i l\u1edbn, h\u00e3y l\u1ea5y m\u1ed9t b\u1ea3n sao t\u1eeb n\u01a1i l\u01b0u ngo\u00e0i VPS. Kh\u00f4i ph\u1ee5c n\u00f3 v\u00e0o m\u1ed9t VPS th\u1eed ho\u1eb7c m\u1ed9t database t\u1ea1m, r\u1ed3i ki\u1ec3m tra website ch\u1ea1y \u0111\u01b0\u1ee3c v\u00e0 d\u1eef li\u1ec7u \u0111\u1ee7.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Gi\u1ea3i n\u00e9n file v\u00e0o th\u01b0 m\u1ee5c t\u1ea1m \u0111\u1ec3 ki\u1ec3m tra\nmkdir -p \/tmp\/thu-khoi-phuc &amp;&amp; tar -xzf files-2026-10-19_0230.tar.gz -C \/tmp\/thu-khoi-phuc\n\n# MySQL\/MariaDB: n\u1ea1p b\u1ea3n dump v\u00e0o M\u00c1Y TH\u1eec (b\u1ea3n --all-databases s\u1ebd ghi \u0111\u00e8 database c\u00f9ng t\u00ean)\ngunzip &lt; db-2026-10-19_0230.sql.gz | mysql\n\n# PostgreSQL: kh\u00f4i ph\u1ee5c v\u00e0o database t\u1ea1m\nsudo -u postgres createdb tendb_thu\nsudo -u postgres pg_restore -d tendb_thu tendb-2026-10-19.dump<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ghi l\u1ea1i th\u1eddi gian kh\u00f4i ph\u1ee5c:<\/strong> \u0111\u00f3 l\u00e0 th\u1eddi gian website ng\u1eebng ho\u1ea1t \u0111\u1ed9ng th\u1ef1c t\u1ebf khi c\u00f3 s\u1ef1 c\u1ed1. N\u1ebfu qu\u00e1 l\u00e2u, c\u00e2n nh\u1eafc gi\u1eef s\u1eb5n m\u1ed9t VPS d\u1ef1 ph\u00f2ng.<\/li>\n\n\n<li><strong>Ki\u1ec3m tra b\u1eb1ng m\u1eaft:<\/strong> m\u1edf website qua file hosts tr\u1ecf v\u1ec1 VPS th\u1eed, \u0111\u0103ng nh\u1eadp trang qu\u1ea3n tr\u1ecb, xem \u0111\u01a1n h\u00e0ng ho\u1eb7c b\u00e0i vi\u1ebft m\u1edbi nh\u1ea5t c\u00f3 m\u1eb7t.<\/li>\n\n\n<li><strong>Vi\u1ebft l\u1ea1i c\u00e1c b\u01b0\u1edbc kh\u00f4i ph\u1ee5c<\/strong> v\u00e0o m\u1ed9t t\u00e0i li\u1ec7u ng\u1eafn, \u0111\u1ec3 ng\u01b0\u1eddi kh\u00e1c trong nh\u00f3m l\u00e0m \u0111\u01b0\u1ee3c khi b\u1ea1n kh\u00f4ng c\u00f3 m\u1eb7t.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Backup_c\u1ee7a_nh\u00e0_cung_c\u1ea5p_VPS:_d\u00f9ng_th\u1ebf_n\u00e0o,_v\u00ec_sao_v\u1eabn_n\u00ean_t\u1ef1_sao_l\u01b0u\">Backup c\u1ee7a nh\u00e0 cung c\u1ea5p VPS: d\u00f9ng th\u1ebf n\u00e0o, v\u00ec sao v\u1eabn n\u00ean t\u1ef1 sao l\u01b0u<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Nhi\u1ec1u nh\u00e0 cung c\u1ea5p c\u00f3 s\u1eb5n b\u1ea3n sao l\u01b0u t\u1ef1 \u0111\u1ed9ng cho VPS. C\u00e1c g\u00f3i <a href=\"https:\/\/tino.vn\/vps-gia-re\">VPS NVMe t\u1ea1i Tino<\/a> c\u00f3 sao l\u01b0u t\u1ef1 \u0111\u1ed9ng; t\u1ea7n su\u1ea5t v\u00e0 s\u1ed1 b\u1ea3n gi\u1eef l\u1ea1i xem trong m\u00f4 t\u1ea3 g\u00f3i ho\u1eb7c h\u1ecfi b\u1ed9 ph\u1eadn h\u1ed7 tr\u1ee3 (ki\u1ec3m tra ng\u00e0y 19\/10\/2026). B\u1ea3n sao l\u01b0u n\u00e0y h\u1eefu \u00edch khi c\u1ea7n \u0111\u01b0a c\u1ea3 VPS v\u1ec1 tr\u1ea1ng th\u00e1i tr\u01b0\u1edbc \u0111\u00f3, nh\u01b0ng ch\u1ec9 n\u00ean l\u00e0 m\u1ed9t trong ba b\u1ea3n c\u1ee7a quy t\u1eafc 3-2-1.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>T\u1ea7n su\u1ea5t:<\/strong> b\u1ea3n sao l\u01b0u c\u1ee7a nh\u00e0 cung c\u1ea5p ch\u1ea1y theo l\u1ecbch c\u1ed1 \u0111\u1ecbnh. D\u1eef li\u1ec7u ph\u00e1t sinh gi\u1eefa hai k\u1ef3 sao l\u01b0u (\u0111\u01a1n h\u00e0ng, b\u00ecnh lu\u1eadn, workflow) ch\u1ec9 an to\u00e0n n\u1ebfu b\u1ea1n t\u1ef1 dump th\u00eam v\u1edbi t\u1ea7n su\u1ea5t d\u00e0y h\u01a1n.<\/li>\n\n\n<li><strong>Ph\u1ea1m vi kh\u00f4i ph\u1ee5c:<\/strong> b\u1ea3n sao c\u1ea3 VPS th\u01b0\u1eddng kh\u00f4i ph\u1ee5c to\u00e0n b\u1ed9; mu\u1ed1n l\u1ea5y l\u1ea1i m\u1ed9t b\u1ea3ng d\u1eef li\u1ec7u hay m\u1ed9t th\u01b0 m\u1ee5c, b\u1ea3n dump v\u00e0 file n\u00e9n c\u1ee7a ri\u00eang b\u1ea1n ti\u1ec7n h\u01a1n.<\/li>\n\n\n<li><strong>C\u00f9ng m\u1ed9t nh\u00e0 cung c\u1ea5p:<\/strong> b\u1ea3n sao n\u1eb1m ngo\u00e0i VPS nh\u01b0ng v\u1eabn trong h\u1ea1 t\u1ea7ng c\u1ee7a nh\u00e0 cung c\u1ea5p. B\u1ea3n th\u1ee9 ba \u1edf n\u01a1i kh\u00e1c b\u1ea3o v\u1ec7 b\u1ea1n c\u1ea3 khi t\u00e0i kho\u1ea3n d\u1ecbch v\u1ee5 g\u1eb7p s\u1ef1 c\u1ed1 ho\u1eb7c d\u1ecbch v\u1ee5 h\u1ebft h\u1ea1n.<\/li>\n\n\n<li><strong>Tr\u00e1ch nhi\u1ec7m:<\/strong> v\u1edbi VPS kh\u00f4ng qu\u1ea3n l\u00fd, vi\u1ec7c d\u1eef li\u1ec7u c\u00f3 nh\u1ea5t qu\u00e1n v\u00e0 kh\u00f4i ph\u1ee5c \u0111\u01b0\u1ee3c hay kh\u00f4ng l\u00e0 ph\u1ea7n vi\u1ec7c c\u1ee7a b\u1ea1n.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1ea1i Tino, b\u1ea3n sao l\u01b0u c\u1ee7a g\u00f3i (n\u1ebfu g\u00f3i c\u00f3 h\u1ed7 tr\u1ee3) n\u1eb1m trong tab Backups c\u1ee7a trang qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5: Qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 \u2192 Cloud Computing \u2192 ch\u1ecdn VPS. C\u00e1c b\u01b0\u1edbc c\u00f3 \u1ea3nh trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/truy-cap-va-lay-thong-tin-vps\/\">h\u01b0\u1edbng d\u1eabn truy c\u1eadp v\u00e0 l\u1ea5y th\u00f4ng tin VPS<\/a>. Tr\u01b0\u1edbc khi c\u1ea7n d\u00f9ng, h\u00e3y xem tab n\u00e0y \u0111ang c\u00f3 nh\u1eefng b\u1ea3n n\u00e0o v\u00e0 c\u00e1ch kh\u00f4i ph\u1ee5c, ho\u1eb7c h\u1ecfi b\u1ed9 ph\u1eadn h\u1ed7 tr\u1ee3 k\u1ef9 thu\u1eadt. B\u00e0i {a(&#8220;backup-va-restore-la-gi&#8221;, &#8220;backup v\u00e0 restore l\u00e0 g\u00ec&#8221;)} gi\u1ea3i th\u00edch th\u00eam v\u1ec1 h\u1ec7 th\u1ed1ng sao l\u01b0u c\u1ee7a Tino.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_kh\u00f4i_ph\u1ee5c_VPS_khi_g\u1eb7p_s\u1ef1_c\u1ed1\">C\u00e1ch kh\u00f4i ph\u1ee5c VPS khi g\u1eb7p s\u1ef1 c\u1ed1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Khi VPS g\u1eb7p s\u1ef1 c\u1ed1, vi\u1ec7c \u0111\u1ea7u ti\u00ean l\u00e0 x\u00e1c \u0111\u1ecbnh ph\u1ea1m vi: ch\u1ec9 m\u1ea5t m\u1ed9t \u00edt d\u1eef li\u1ec7u, h\u1ecfng c\u1ea5u h\u00ecnh, hay c\u1ea3 VPS kh\u00f4ng kh\u1edfi \u0111\u1ed9ng \u0111\u01b0\u1ee3c ho\u1eb7c \u0111\u00e3 b\u1ecb x\u00e2m nh\u1eadp. Ph\u1ea1m vi quy\u1ebft \u0111\u1ecbnh b\u1ea1n kh\u00f4i ph\u1ee5c t\u1eeb b\u1ea3n n\u00e0o v\u00e0 kh\u00f4i ph\u1ee5c v\u00e0o \u0111\u00e2u, tr\u00e1nh ghi \u0111\u00e8 nh\u1ea7m l\u00ean d\u1eef li\u1ec7u c\u00f2n t\u1ed1t.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>M\u1ea5t ho\u1eb7c sai m\u1ed9t ph\u1ea7n d\u1eef li\u1ec7u:<\/strong> kh\u00f4i ph\u1ee5c database ho\u1eb7c th\u01b0 m\u1ee5c c\u1ea7n thi\u1ebft t\u1eeb b\u1ea3n dump g\u1ea7n nh\u1ea5t, gi\u1eef nguy\u00ean VPS.<\/li>\n\n\n<li><strong>H\u1ecfng sau khi n\u00e2ng c\u1ea5p ho\u1eb7c s\u1eeda c\u1ea5u h\u00ecnh:<\/strong> quay v\u1ec1 snapshot ch\u1ee5p tr\u01b0\u1edbc \u0111\u00f3, ho\u1eb7c kh\u00f4i ph\u1ee5c file c\u1ea5u h\u00ecnh t\u1eeb b\u1ea3n sao.<\/li>\n\n\n<li><strong>VPS h\u1ecfng n\u1eb7ng:<\/strong> kh\u00f4i ph\u1ee5c c\u1ea3 VPS t\u1eeb b\u1ea3n sao l\u01b0u c\u1ee7a g\u00f3i n\u1ebfu c\u00f3. N\u1ebfu kh\u00f4ng, <a href=\"https:\/\/tino.vn\/blog\/docs\/cach-cai-lai-he-dieu-hanh-tren-dich-vu-vps-tai-tino\/\">c\u00e0i l\u1ea1i h\u1ec7 \u0111i\u1ec1u h\u00e0nh cho VPS<\/a> (thao t\u00e1c n\u00e0y x\u00f3a s\u1ea1ch d\u1eef li\u1ec7u hi\u1ec7n c\u00f3). Sau \u0111\u00f3 c\u00e0i l\u1ea1i ph\u1ea7n m\u1ec1m, r\u1ed3i kh\u00f4i ph\u1ee5c c\u1ea5u h\u00ecnh, file v\u00e0 database t\u1eeb b\u1ea3n sao ngo\u00e0i VPS.<\/li>\n\n\n<li><strong>B\u1ecb x\u00e2m nh\u1eadp:<\/strong> kh\u00f4ng kh\u00f4i ph\u1ee5c \u0111\u00e8 l\u00ean h\u1ec7 th\u1ed1ng \u0111ang b\u1ecb chi\u1ebfm quy\u1ec1n. D\u1ef1ng VPS s\u1ea1ch, ch\u1ecdn b\u1ea3n sao t\u1eeb tr\u01b0\u1edbc th\u1eddi \u0111i\u1ec3m b\u1ecb x\u00e2m nh\u1eadp, \u0111\u1ed5i to\u00e0n b\u1ed9 m\u1eadt kh\u1ea9u, SSH key v\u00e0 API key, r\u1ed3i r\u00e0 l\u1ea1i <a href=\"https:\/\/tino.vn\/blog\/bao-mat-vps\/\">c\u00e1c b\u01b0\u1edbc b\u1ea3o m\u1eadt VPS<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Khi_n\u00e0o_ch\u01b0a_c\u1ea7n_t\u1ef1_d\u1ef1ng_h\u1ec7_th\u1ed1ng_backup?\">Khi n\u00e0o ch\u01b0a c\u1ea7n t\u1ef1 d\u1ef1ng h\u1ec7 th\u1ed1ng backup?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng ph\u1ea3i VPS n\u00e0o c\u0169ng c\u1ea7n script sao l\u01b0u ri\u00eang. N\u1ebfu m\u1ecdi th\u1ee9 tr\u00ean VPS \u0111\u1ec1u t\u1ea1o l\u1ea1i \u0111\u01b0\u1ee3c t\u1eeb n\u01a1i kh\u00e1c trong th\u1eddi gian ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c, b\u1ea3n sao l\u01b0u c\u1ee7a nh\u00e0 cung c\u1ea5p c\u1ed9ng v\u1edbi m\u00e3 ngu\u1ed3n tr\u00ean Git l\u00e0 \u0111\u1ee7.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VPS th\u1eed nghi\u1ec7m, h\u1ecdc t\u1eadp:<\/strong> m\u1ea5t d\u1eef li\u1ec7u c\u0169ng kh\u00f4ng \u1ea3nh h\u01b0\u1edfng ai.<\/li>\n\n\n<li><strong>\u1ee8ng d\u1ee5ng kh\u00f4ng l\u01b0u tr\u1ea1ng th\u00e1i:<\/strong> m\u00e3 ngu\u1ed3n n\u1eb1m tr\u00ean Git, c\u1ea5u h\u00ecnh d\u1ef1ng b\u1eb1ng script, d\u1eef li\u1ec7u n\u1eb1m \u1edf m\u1ed9t database \u0111\u00e3 \u0111\u01b0\u1ee3c sao l\u01b0u ri\u00eang \u1edf n\u01a1i kh\u00e1c.<\/li>\n\n\n<li><strong>D\u00f9ng control panel c\u00f3 s\u1eb5n sao l\u01b0u ra ngo\u00e0i:<\/strong> khi \u0111\u00f3 vi\u1ec7c c\u1ea7n l\u00e0m l\u00e0 b\u1eadt t\u00ednh n\u0103ng \u0111\u00f3, tr\u1ecf v\u1ec1 n\u01a1i l\u01b0u ngo\u00e0i VPS v\u00e0 th\u1eed kh\u00f4i ph\u1ee5c, kh\u00f4ng c\u1ea7n vi\u1ebft script ri\u00eang.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu website ho\u1eb7c \u1ee9ng d\u1ee5ng c\u00f3 d\u1eef li\u1ec7u ph\u00e1t sinh h\u1eb1ng ng\u00e0y, h\u00e3y d\u1ef1ng \u00edt nh\u1ea5t b\u1ea3n dump database h\u1eb1ng ng\u00e0y ra ngo\u00e0i VPS. T\u00ecm hi\u1ec3u th\u00eam v\u1ec1 VPS trong b\u00e0i <a href=\"https:\/\/tino.vn\/blog\/vps-la-gi\/\">VPS l\u00e0 g\u00ec<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/tino.vn\/vps-gia-re\">Xem c\u00e1c g\u00f3i VPS NVMe t\u1ea1i Tino<\/a><\/div>\n<\/div>\n\n\n\n<h2 id=\"C\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">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=\"Backup_VPS_bao_l\u00e2u_m\u1ed9t_l\u1ea7n_l\u00e0_\u0111\u1ee7?\">Backup VPS bao l\u00e2u m\u1ed9t l\u1ea7n l\u00e0 \u0111\u1ee7?<\/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 class=\"wp-block-paragraph\">T\u00f9y l\u01b0\u1ee3ng d\u1eef li\u1ec7u b\u1ea1n ch\u1ea5p nh\u1eadn m\u1ea5t. H\u00e3y t\u1ef1 h\u1ecfi: n\u1ebfu VPS h\u1ecfng ngay b\u00e2y gi\u1edd, m\u1ea5t d\u1eef li\u1ec7u c\u1ee7a bao nhi\u00eau gi\u1edd th\u00ec c\u00f2n ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c? Website b\u00e1n h\u00e0ng th\u01b0\u1eddng c\u1ea7n dump database \u00edt nh\u1ea5t m\u1ed7i ng\u00e0y; website gi\u1edbi thi\u1ec7u \u00edt c\u1eadp nh\u1eadt c\u00f3 th\u1ec3 sao l\u01b0u h\u1eb1ng tu\u1ea7n. Lu\u00f4n t\u1ea1o th\u00eam m\u1ed9t b\u1ea3n ngay tr\u01b0\u1edbc khi n\u00e2ng c\u1ea5p ho\u1eb7c s\u1eeda c\u1ea5u h\u00ecnh l\u1edbn.<\/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=\"B\u1ea3n_sao_l\u01b0u_n\u00ean_gi\u1eef_trong_bao_l\u00e2u?\">B\u1ea3n sao l\u01b0u n\u00ean gi\u1eef trong bao l\u00e2u?<\/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 class=\"wp-block-paragraph\">M\u1ed9t c\u00e1ch ph\u1ed5 bi\u1ebfn l\u00e0 gi\u1eef b\u1ea3n h\u1eb1ng ng\u00e0y trong m\u1ed9t \u0111\u1ebfn hai tu\u1ea7n, b\u1ea3n h\u1eb1ng tu\u1ea7n trong m\u1ed9t \u0111\u1ebfn hai th\u00e1ng v\u00e0 v\u00e0i b\u1ea3n h\u1eb1ng th\u00e1ng. Gi\u1eef nhi\u1ec1u m\u1ed1c gi\u00fap b\u1ea1n quay l\u1ea1i \u0111\u01b0\u1ee3c tr\u01b0\u1edbc th\u1eddi \u0111i\u1ec3m d\u1eef li\u1ec7u b\u1ecb l\u1ed7i ho\u1eb7c b\u1ecb m\u00e3 h\u00f3a, v\u00ec s\u1ef1 c\u1ed1 c\u00f3 khi v\u00e0i ng\u00e0y sau m\u1edbi \u0111\u01b0\u1ee3c ph\u00e1t hi\u1ec7n. N\u1ebfu c\u00f3 y\u00eau c\u1ea7u ph\u00e1p l\u00fd v\u1ec1 l\u01b0u tr\u1eef, \u00e1p d\u1ee5ng theo y\u00eau c\u1ea7u \u0111\u00f3.<\/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=\"Sao_l\u01b0u_c\u00f3_l\u00e0m_VPS_ch\u1eadm_kh\u00f4ng?\">Sao l\u01b0u c\u00f3 l\u00e0m VPS ch\u1eadm 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 class=\"wp-block-paragraph\">C\u00f3 th\u1ec3, v\u00ec n\u00e9n file v\u00e0 dump database d\u00f9ng CPU v\u00e0 \u1ed5 c\u1ee9ng. H\u00e3y ch\u1ea1y v\u00e0o gi\u1edd \u00edt truy c\u1eadp, c\u00f3 th\u1ec3 th\u00eam <code>nice -n 10 ionice -c3<\/code> tr\u01b0\u1edbc l\u1ec7nh trong script \u0111\u1ec3 gi\u1ea3m \u01b0u ti\u00ean. V\u1edbi database l\u1edbn, dump tr\u00ean m\u1ed9t b\u1ea3n sao (replica) ho\u1eb7c d\u00f9ng c\u00f4ng c\u1ee5 sao l\u01b0u v\u1eadt l\u00fd s\u1ebd nh\u1eb9 h\u01a1n cho m\u00e1y ch\u00ednh.<\/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=\"C\u00f3_n\u00ean_l\u01b0u_backup_VPS_l\u00ean_Google_Drive_kh\u00f4ng?\">C\u00f3 n\u00ean l\u01b0u backup VPS l\u00ean 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 class=\"wp-block-paragraph\">\u0110\u01b0\u1ee3c, v\u1edbi d\u1eef li\u1ec7u nh\u1ecf v\u00e0 v\u1eeba. rclone h\u1ed7 tr\u1ee3 Google Drive; n\u00ean d\u00f9ng remote ki\u1ec3u crypt \u0111\u1ec3 m\u00e3 h\u00f3a tr\u01b0\u1edbc khi t\u1ea3i l\u00ean, v\u00e0 d\u00f9ng m\u1ed9t t\u00e0i kho\u1ea3n ri\u00eang cho sao l\u01b0u thay v\u00ec t\u00e0i kho\u1ea3n c\u00e1 nh\u00e2n. L\u01b0u \u00fd dung l\u01b0\u1ee3ng g\u00f3i Drive v\u00e0 gi\u1edbi h\u1ea1n t\u1ed1c \u0111\u1ed9 t\u1ea3i l\u00ean; d\u1eef li\u1ec7u l\u1edbn h\u1ee3p v\u1edbi object storage h\u01a1n.<\/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=\"VPS_Windows_sao_l\u01b0u_th\u1ebf_n\u00e0o?\">VPS Windows sao l\u01b0u th\u1ebf n\u00e0o?<\/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 class=\"wp-block-paragraph\">Windows Server c\u00f3 t\u00ednh n\u0103ng Windows Server Backup, nh\u01b0ng ph\u1ea3i c\u00e0i th\u00eam qua Add Roles and Features v\u00ec ch\u01b0a c\u00f3 s\u1eb5n. T\u00ednh n\u0103ng n\u00e0y \u0111i\u1ec1u khi\u1ec3n b\u1eb1ng giao di\u1ec7n ho\u1eb7c l\u1ec7nh <code>wbadmin<\/code>, d\u00f9ng \u0111\u1ec3 sao l\u01b0u v\u00e0 kh\u00f4i ph\u1ee5c h\u1ec7 \u0111i\u1ec1u h\u00e0nh, \u1ed5 \u0111\u0129a, th\u01b0 m\u1ee5c hay \u1ee9ng d\u1ee5ng. SQL Server c\u00f3 l\u1ec7nh backup ri\u00eang. D\u00f9 d\u00f9ng c\u00f4ng c\u1ee5 n\u00e0o, v\u1eabn c\u1ea7n \u0111\u01b0a m\u1ed9t b\u1ea3n sao ra ngo\u00e0i VPS nh\u01b0 v\u1edbi Linux.<\/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=\"Website_WordPress_\u0111\u00e3_c\u00f3_plugin_backup_th\u00ec_c\u00f3_c\u1ea7n_backup_VPS_n\u1eefa_kh\u00f4ng?\">Website WordPress \u0111\u00e3 c\u00f3 plugin backup th\u00ec c\u00f3 c\u1ea7n backup VPS n\u1eefa 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 class=\"wp-block-paragraph\">Plugin ch\u1ec9 sao l\u01b0u website WordPress \u0111\u00f3; c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7, c\u00e1c website kh\u00e1c, cron v\u00e0 ch\u1ee9ng ch\u1ec9 tr\u00ean VPS kh\u00f4ng n\u1eb1m trong b\u1ea3n sao. N\u1ebfu VPS ch\u1ec9 ch\u1ea1y m\u1ed9t website, plugin c\u00f3 l\u01b0u ra ngo\u00e0i (Google Drive, S3) v\u00e0 \u0111\u00e3 th\u1eed kh\u00f4i ph\u1ee5c l\u00e0 ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c. Xem <a href=\"https:\/\/tino.vn\/blog\/cach-backup-website-wordpress\/\">c\u00e1ch backup website WordPress<\/a>.<\/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\": \"Backup VPS bao l\u00e2u m\u1ed9t l\u1ea7n l\u00e0 \u0111\u1ee7?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>T\u00f9y l\u01b0\u1ee3ng d\u1eef li\u1ec7u b\u1ea1n ch\u1ea5p nh\u1eadn m\u1ea5t. H\u00e3y t\u1ef1 h\u1ecfi: n\u1ebfu VPS h\u1ecfng ngay b\u00e2y gi\u1edd, m\u1ea5t d\u1eef li\u1ec7u c\u1ee7a bao nhi\u00eau gi\u1edd th\u00ec c\u00f2n ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c? Website b\u00e1n h\u00e0ng th\u01b0\u1eddng c\u1ea7n dump database \u00edt nh\u1ea5t m\u1ed7i ng\u00e0y; website gi\u1edbi thi\u1ec7u \u00edt c\u1eadp nh\u1eadt c\u00f3 th\u1ec3 sao l\u01b0u h\u1eb1ng tu\u1ea7n. Lu\u00f4n t\u1ea1o th\u00eam m\u1ed9t b\u1ea3n ngay tr\u01b0\u1edbc khi n\u00e2ng c\u1ea5p ho\u1eb7c s\u1eeda c\u1ea5u h\u00ecnh l\u1edbn.<\/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\": \"B\u1ea3n sao l\u01b0u n\u00ean gi\u1eef trong bao l\u00e2u?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>M\u1ed9t c\u00e1ch ph\u1ed5 bi\u1ebfn l\u00e0 gi\u1eef b\u1ea3n h\u1eb1ng ng\u00e0y trong m\u1ed9t \u0111\u1ebfn hai tu\u1ea7n, b\u1ea3n h\u1eb1ng tu\u1ea7n trong m\u1ed9t \u0111\u1ebfn hai th\u00e1ng v\u00e0 v\u00e0i b\u1ea3n h\u1eb1ng th\u00e1ng. Gi\u1eef nhi\u1ec1u m\u1ed1c gi\u00fap b\u1ea1n quay l\u1ea1i \u0111\u01b0\u1ee3c tr\u01b0\u1edbc th\u1eddi \u0111i\u1ec3m d\u1eef li\u1ec7u b\u1ecb l\u1ed7i ho\u1eb7c b\u1ecb m\u00e3 h\u00f3a, v\u00ec s\u1ef1 c\u1ed1 c\u00f3 khi v\u00e0i ng\u00e0y sau m\u1edbi \u0111\u01b0\u1ee3c ph\u00e1t hi\u1ec7n. N\u1ebfu c\u00f3 y\u00eau c\u1ea7u ph\u00e1p l\u00fd v\u1ec1 l\u01b0u tr\u1eef, \u00e1p d\u1ee5ng theo y\u00eau c\u1ea7u \u0111\u00f3.<\/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\": \"Sao l\u01b0u c\u00f3 l\u00e0m VPS ch\u1eadm 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 th\u1ec3, v\u00ec n\u00e9n file v\u00e0 dump database d\u00f9ng CPU v\u00e0 \u1ed5 c\u1ee9ng. H\u00e3y ch\u1ea1y v\u00e0o gi\u1edd \u00edt truy c\u1eadp, c\u00f3 th\u1ec3 th\u00eam nice -n 10 ionice -c3 tr\u01b0\u1edbc l\u1ec7nh trong script \u0111\u1ec3 gi\u1ea3m \u01b0u ti\u00ean. V\u1edbi database l\u1edbn, dump tr\u00ean m\u1ed9t b\u1ea3n sao (replica) ho\u1eb7c d\u00f9ng c\u00f4ng c\u1ee5 sao l\u01b0u v\u1eadt l\u00fd s\u1ebd nh\u1eb9 h\u01a1n cho m\u00e1y ch\u00ednh.<\/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\": \"C\u00f3 n\u00ean l\u01b0u backup VPS l\u00ean 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>\u0110\u01b0\u1ee3c, v\u1edbi d\u1eef li\u1ec7u nh\u1ecf v\u00e0 v\u1eeba. rclone h\u1ed7 tr\u1ee3 Google Drive; n\u00ean d\u00f9ng remote ki\u1ec3u crypt \u0111\u1ec3 m\u00e3 h\u00f3a tr\u01b0\u1edbc khi t\u1ea3i l\u00ean, v\u00e0 d\u00f9ng m\u1ed9t t\u00e0i kho\u1ea3n ri\u00eang cho sao l\u01b0u thay v\u00ec t\u00e0i kho\u1ea3n c\u00e1 nh\u00e2n. L\u01b0u \u00fd dung l\u01b0\u1ee3ng g\u00f3i Drive v\u00e0 gi\u1edbi h\u1ea1n t\u1ed1c \u0111\u1ed9 t\u1ea3i l\u00ean; d\u1eef li\u1ec7u l\u1edbn h\u1ee3p v\u1edbi object storage h\u01a1n.<\/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\": \"VPS Windows sao l\u01b0u th\u1ebf n\u00e0o?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Windows Server c\u00f3 t\u00ednh n\u0103ng Windows Server Backup, nh\u01b0ng ph\u1ea3i c\u00e0i th\u00eam qua Add Roles and Features v\u00ec ch\u01b0a c\u00f3 s\u1eb5n. T\u00ednh n\u0103ng n\u00e0y \u0111i\u1ec1u khi\u1ec3n b\u1eb1ng giao di\u1ec7n ho\u1eb7c l\u1ec7nh wbadmin, d\u00f9ng \u0111\u1ec3 sao l\u01b0u v\u00e0 kh\u00f4i ph\u1ee5c h\u1ec7 \u0111i\u1ec1u h\u00e0nh, \u1ed5 \u0111\u0129a, th\u01b0 m\u1ee5c hay \u1ee9ng d\u1ee5ng. SQL Server c\u00f3 l\u1ec7nh backup ri\u00eang. D\u00f9 d\u00f9ng c\u00f4ng c\u1ee5 n\u00e0o, v\u1eabn c\u1ea7n \u0111\u01b0a m\u1ed9t b\u1ea3n sao ra ngo\u00e0i VPS nh\u01b0 v\u1edbi Linux.<\/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\": \"Website WordPress \u0111\u00e3 c\u00f3 plugin backup th\u00ec c\u00f3 c\u1ea7n backup VPS n\u1eefa kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Plugin ch\u1ec9 sao l\u01b0u website WordPress \u0111\u00f3; c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7, c\u00e1c website kh\u00e1c, cron v\u00e0 ch\u1ee9ng ch\u1ec9 tr\u00ean VPS kh\u00f4ng n\u1eb1m trong b\u1ea3n sao. N\u1ebfu VPS ch\u1ec9 ch\u1ea1y m\u1ed9t website, plugin c\u00f3 l\u01b0u ra ngo\u00e0i (Google Drive, S3) v\u00e0 \u0111\u00e3 th\u1eed kh\u00f4i ph\u1ee5c l\u00e0 ch\u1ea5p nh\u1eadn \u0111\u01b0\u1ee3c. Xem <a>c\u00e1ch backup website WordPress<\/a>.<\/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\n\n\n<h2 id=\"Ngu\u1ed3n_tham_kh\u1ea3o\">Ngu\u1ed3n tham kh\u1ea3o<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/cyber-security-hub.education.gov.uk\/321-backup\" rel=\"nofollow noopener\" target=\"_blank\">Department for Education (UK) Cyber Security Hub: The 3-2-1 backup strategy<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.4\/en\/mysqldump.html\" rel=\"nofollow noopener\" target=\"_blank\">MySQL 8.4 Reference Manual: mysqldump<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/www.postgresql.org\/docs\/current\/app-pgdump.html\" rel=\"nofollow noopener\" target=\"_blank\">PostgreSQL documentation: pg_dump<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/download.samba.org\/pub\/rsync\/rsync.1\" rel=\"nofollow noopener\" target=\"_blank\">rsync manual<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/rclone.org\/crypt\/\" rel=\"nofollow noopener\" target=\"_blank\">rclone: Crypt<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/wbadmin\" rel=\"nofollow noopener\" target=\"_blank\">Microsoft Learn: wbadmin<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n\n\n<li><a href=\"https:\/\/tino.vn\/vps-gia-re\">Tino: b\u1ea3ng gi\u00e1 VPS NVMe<\/a> (truy c\u1eadp 19\/10\/2026)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>T\u00e1c gi\u1ea3: \u0110\u00f4ng T\u00f9ng \u00b7 Duy\u1ec7t k\u1ef9 thu\u1eadt: Nguy\u1ec5n V\u0103n Phong \u00b7 C\u1eadp nh\u1eadt: 20\/10\/2026 Backup VPS l\u00e0 t\u1ea1o b\u1ea3n sao d\u1eef li\u1ec7u c\u1ee7a m\u00e1y ch\u1ee7 (database, file website, c\u1ea5u h\u00ecnh) v\u00e0 l\u01b0u \u1edf n\u01a1i kh\u00e1c \u0111\u1ec3 kh\u00f4i ph\u1ee5c khi VPS h\u1ecfng, b\u1ecb x\u00f3a nh\u1ea7m ho\u1eb7c b\u1ecb t\u1ea5n c\u00f4ng. Snapshot ch\u1ec9 l\u00e0 \u1ea3nh ch\u1ee5p \u1ed5 [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":131094,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7727],"tags":[],"class_list":["post-131113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/131113","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=131113"}],"version-history":[{"count":2,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/131113\/revisions"}],"predecessor-version":[{"id":131159,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/131113\/revisions\/131159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/131094"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=131113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=131113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=131113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}