{"id":2134,"date":"2026-09-18T17:30:00","date_gmt":"2026-09-18T14:30:00","guid":{"rendered":"https:\/\/narhost.com\/destek\/vpste-rsync-snapshot-yedekleme\/"},"modified":"2026-09-14T22:30:18","modified_gmt":"2026-09-14T19:30:18","slug":"vpste-rsync-snapshot-yedekleme","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/vpste-rsync-snapshot-yedekleme\/","title":{"rendered":"VPS&#8217;te Rsync veya Snapshot ile Yedek Alma"},"content":{"rendered":"<p class=\"kb-dogrulama\">Son g\u00f6zden ge\u00e7irme: Eyl\u00fcl 2026 \u00b7 Ubuntu 24.04 ve AlmaLinux 9 resm\u00ee dok\u00fcman\u0131na g\u00f6re<\/p>\n<div id=\"hizli-cozum\" class=\"ai-box ai-box--cozum\">\n<p class=\"ai-box-title\">H\u0131zl\u0131 \u00e7\u00f6z\u00fcm<\/p>\n<p><strong>VPS snapshot yedekleme nas\u0131l yap\u0131l\u0131r?<\/strong> Dosya d\u00fczeyinde d\u00fczenli yedek i\u00e7in <code>rsync -avz -e ssh \/veri\/ kullanici@hedef-sunucu:\/yedek\/<\/code> komutunu bir cron g\u00f6revine ba\u011flay\u0131n; riskli bir i\u015flem (b\u00fcy\u00fck g\u00fcncelleme, kernel de\u011fi\u015fikli\u011fi) \u00f6ncesi anl\u0131k bir dondurma noktas\u0131 i\u00e7in diskiniz LVM ise <code>lvcreate --size 5G --snapshot --name yedek-anlik \/dev\/vg0\/root<\/code> komutunu \u00e7al\u0131\u015ft\u0131r\u0131n. VPS\/VDS y\u00f6netimsiz oldu\u011fu i\u00e7in kurulum ve zamanlama tamamen sizin sorumlulu\u011funuzdad\u0131r.<\/p>\n<ol>\n<li>Yede\u011fi g\u00f6nderece\u011finiz ikinci bir sunucu ya da depolama alan\u0131 haz\u0131rlay\u0131n.<\/li>\n<li>SSH anahtar\u0131yla parolas\u0131z ba\u011flant\u0131 kurup <code>rsync<\/code> komutunu test edin.<\/li>\n<li>Komutu <code>crontab<\/code>&#8216;a ekleyip d\u00fczenli \u00e7al\u0131\u015ft\u0131r\u0131n.<\/li>\n<li>Diskiniz LVM ise riskli i\u015flemler \u00f6ncesi <code>lvcreate --snapshot<\/code> ile anl\u0131k nokta al\u0131n.<\/li>\n<\/ol>\n<\/div>\n<table class=\"kb-uyg\">\n<tr>\n<th>Panel<\/th>\n<td>Yok (SSH \/ root)<\/td>\n<\/tr>\n<tr>\n<th>Sistem<\/th>\n<td>VPS \/ VDS (y\u00f6netimsiz, se\u00e7ti\u011finiz Linux da\u011f\u0131t\u0131m\u0131)<\/td>\n<\/tr>\n<tr>\n<th>Yetki<\/th>\n<td>root<\/td>\n<\/tr>\n<tr>\n<th>Narhost \u00fcr\u00fcn\u00fc<\/th>\n<td><a href=\"https:\/\/narhost.com\/vps-sunucu\" title=\"VPS Sunucu paketleri - Narhost\">VPS Sunucu<\/a>, VDS Sunucu<\/td>\n<\/tr>\n<\/table>\n<div class=\"kb-once\">\n<p class=\"label\">Ba\u015flamadan \u00f6nce<\/p>\n<ul>\n<li>Sunucunuza root ya da sudo yetkili SSH eri\u015fiminiz olmal\u0131.<\/li>\n<li>Yede\u011fi g\u00f6nderece\u011finiz ikinci bir sunucu, depolama alan\u0131 ya da hesap olmal\u0131.<\/li>\n<li>Diskinizin LVM (Logical Volume Manager) ile b\u00f6l\u00fcmlenip b\u00f6l\u00fcmlenmedi\u011fini bilmelisiniz (<code>lsblk<\/code> ve <code>pvs<\/code> ile g\u00f6r\u00fcl\u00fcr); klasik b\u00f6l\u00fcmlerde snapshot al\u0131namaz.<\/li>\n<li>Snapshot i\u00e7in ay\u0131raca\u011f\u0131n\u0131z ekstra disk alan\u0131 olmal\u0131; snapshot dolu bir diskte tutulamaz.<\/li>\n<\/ul>\n<\/div>\n<h2>Rsync ve snapshot ne i\u015fe yarar, aralar\u0131ndaki fark<\/h2>\n<p>\u0130kisi de &#8220;yedek&#8221; s\u00f6zc\u00fc\u011f\u00fcyle an\u0131l\u0131r ama farkl\u0131 i\u015fler yapar. <strong>rsync<\/strong> dosya d\u00fczeyinde \u00e7al\u0131\u015f\u0131r: kaynak ve hedef aras\u0131ndaki fark\u0131 bulur, yaln\u0131z de\u011fi\u015fen par\u00e7alar\u0131 kopyalar; d\u00fczenli aral\u0131klarla \u00e7al\u0131\u015fan bir cron g\u00f6revine ba\u011fland\u0131\u011f\u0131nda ger\u00e7ek bir yedekleme ak\u0131\u015f\u0131 olur. <strong>LVM snapshot<\/strong> ise diskin belirli bir andaki tam g\u00f6r\u00fcnt\u00fcs\u00fcn\u00fc saniyeler i\u00e7inde dondurur; dosya kopyalamaz, yaln\u0131zca o andan sonra yaz\u0131lan bloklar\u0131 ayr\u0131 tutar. Riskli bir i\u015flemden (b\u00fcy\u00fck g\u00fcncelleme, veritaban\u0131 ta\u015f\u0131ma) hemen \u00f6nce al\u0131n\u0131r ve i\u015flem ba\u015far\u0131s\u0131z olursa saniyeler i\u00e7inde geri d\u00f6nmek i\u00e7in kullan\u0131l\u0131r; uzun s\u00fcreli bir ar\u015fiv yede\u011fi de\u011fildir.<\/p>\n<p>Narhost VPS ve VDS \u00fcr\u00fcnleri y\u00f6netimsizdir: sunucudaki i\u015fletim sistemi, disk yap\u0131land\u0131rmas\u0131 ve yedekleme stratejisi tamamen sizin sorumlulu\u011funuzdad\u0131r; Narhost altyap\u0131 ve a\u011f\u0131 sa\u011flar, sunucu i\u00e7i kurulum yapmaz.<\/p>\n<figure class=\"nh-sema\"><img src=\"https:\/\/narhost.com\/destek\/wp-content\/uploads\/2026\/09\/vpste-rsync-snapshot-yedekleme-sema-narhost.webp\" alt=\"VPS snapshot yedekleme ak\u0131\u015f \u015femas\u0131 \u2014 rsync ile d\u00fczenli senkronizasyon ve LVM anl\u0131k g\u00f6r\u00fcnt\u00fcs\u00fc ad\u0131mlar\u0131\" width=\"1200\" height=\"500\" loading=\"lazy\" decoding=\"async\"><figcaption>Rsync ile d\u00fczenli senkronizasyon ve LVM ile anl\u0131k dondurma noktas\u0131 aras\u0131ndaki be\u015f ad\u0131ml\u0131 uygulama ak\u0131\u015f\u0131.<\/figcaption><\/figure>\n<h2>Ad\u0131m ad\u0131m VPS snapshot yedekleme<\/h2>\n<h3>Y\u00f6ntem 1 \u2014 Rsync ile uzak sunucuya d\u00fczenli yedek<\/h3>\n<ol class=\"kb-adimlar\">\n<li>Hedef sunucuda SSH anahtar\u0131yla parolas\u0131z ba\u011flant\u0131 kurun; kaynak sunucudan anahtar\u0131n\u0131z\u0131 hedefe kopyalay\u0131n.\n<pre><code class=\"language-bash\">ssh-copy-id kullanici@hedef-sunucu<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: sonraki ba\u011flant\u0131larda \u015fifre sorulmaz.<\/p>\n<\/li>\n<li>Rsync komutunu \u00e7al\u0131\u015ft\u0131r\u0131p aktar\u0131m\u0131 test edin.\n<pre><code class=\"language-bash\">rsync -avz -e ssh \/var\/www\/ kullanici@hedef-sunucu:\/yedek\/www\/<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: dosya listesi akar, sonunda g\u00f6nderilen\/al\u0131nan bayt say\u0131s\u0131 \u00f6zeti g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<li>Komutu her gece \u00e7al\u0131\u015facak \u015fekilde <code>crontab<\/code>&#8216;a ekleyin.\n<pre><code class=\"language-bash\">crontab -e\n0 3 * * * rsync -az -e ssh \/var\/www\/ kullanici@hedef-sunucu:\/yedek\/www\/ >> \/var\/log\/rsync-yedek.log 2>&amp;1<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>crontab -l<\/code> ile sat\u0131r\u0131 listeledi\u011finizde g\u00f6revin kay\u0131tl\u0131 oldu\u011funu g\u00f6r\u00fcrs\u00fcn\u00fcz.<\/p>\n<\/li>\n<\/ol>\n<h3>Y\u00f6ntem 2 \u2014 LVM snapshot ile anl\u0131k dondurma noktas\u0131<\/h3>\n<div class=\"warn-box\">\n<p class=\"label\">Dikkat<\/p>\n<p>Snapshot yaln\u0131zca diskiniz LVM ile yap\u0131land\u0131r\u0131lm\u0131\u015fsa \u00e7al\u0131\u015f\u0131r; <code>lsblk<\/code> \u00e7\u0131kt\u0131s\u0131nda <code>lvm<\/code> ibaresi yoksa bu y\u00f6ntem sizin i\u00e7in uygun de\u011fildir, rsync tabanl\u0131 yede\u011fe g\u00fcvenin.<\/p>\n<\/div>\n<ol class=\"kb-adimlar\">\n<li>Volume grup ve mant\u0131ksal birim adlar\u0131n\u0131 \u00f6\u011frenin.\n<pre><code class=\"language-bash\">lsblk\npvs\nlvs<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>lvs<\/code> \u00e7\u0131kt\u0131s\u0131nda k\u00f6k b\u00f6l\u00fcm\u00fcn\u00fcz\u00fcn ait oldu\u011fu volume grubu ve birim ad\u0131 listelenir (\u00f6rnek: <code>vg0\/root<\/code>).<\/p>\n<\/li>\n<li>Riskli i\u015flemden hemen \u00f6nce anl\u0131k nokta olu\u015fturun.\n<pre><code class=\"language-bash\">lvcreate --size 5G --snapshot --name yedek-anlik \/dev\/vg0\/root<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>lvs<\/code> listesinde <code>yedek-anlik<\/code> adl\u0131 yeni bir birim g\u00f6r\u00fcn\u00fcr; boyutu de\u011fi\u015ftirdi\u011finiz veri kadar b\u00fcy\u00fcr.<\/p>\n<\/li>\n<li>\u0130\u015flem ba\u015far\u0131s\u0131z olursa anl\u0131k noktaya geri d\u00f6n\u00fcn.\n<pre><code class=\"language-bash\">lvconvert --merge \/dev\/vg0\/yedek-anlik<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: bir sonraki yeniden ba\u015flatmada k\u00f6k b\u00f6l\u00fcm, snapshot al\u0131nan ana geri d\u00f6ner.<\/p>\n<\/li>\n<\/ol>\n<p>Komutlar\u0131n tam parametre listesi ve s\u00fcr\u00fcm farklar\u0131 i\u00e7in <a href=\"https:\/\/man7.org\/linux\/man-pages\/man1\/rsync.1.html\" title=\"rsync resm\u00ee man sayfas\u0131\" target=\"_blank\" rel=\"noopener\">rsync&#8217;in resm\u00ee man sayfas\u0131na<\/a> ve <a href=\"https:\/\/man7.org\/linux\/man-pages\/man8\/lvcreate.8.html\" title=\"lvcreate resm\u00ee man sayfas\u0131\" target=\"_blank\" rel=\"noopener\">lvcreate&#8217;in resm\u00ee man sayfas\u0131na<\/a> bakabilirsiniz; her iki komut da Ubuntu 24.04 ve AlmaLinux 9&#8217;un standart depolar\u0131nda haz\u0131r gelir.<\/p>\n<h2>Do\u011frulama<\/h2>\n<div class=\"success-box\">\n<p class=\"label\">Sonu\u00e7<\/p>\n<p>Hedef sunucuda <code>\/yedek\/www\/<\/code> alt\u0131nda kaynak sunucudaki dosya say\u0131s\u0131na yak\u0131n bir liste g\u00f6r\u00fcyorsan\u0131z rsync \u00e7al\u0131\u015f\u0131yordur; <code>lvs<\/code> \u00e7\u0131kt\u0131s\u0131nda snapshot biriminin kullan\u0131m oran\u0131 zamanla art\u0131yorsa (de\u011fi\u015fen bloklar biriktik\u00e7e) snapshot da aktiftir.<\/p>\n<\/div>\n<h2>H\u00e2l\u00e2 \u00e7\u00f6z\u00fclmediyse<\/h2>\n<ul>\n<li><strong>SSH anahtar\u0131yla ba\u011flanam\u0131yorsunuz.<\/strong><a href=\"https:\/\/narhost.com\/destek\/sunucuya-ssh-ile-nasil-baglanilir\/\" title=\"Sunucuya SSH ile nas\u0131l ba\u011flan\u0131l\u0131r - Narhost Destek\">SSH ba\u011flant\u0131 ad\u0131mlar\u0131n\u0131<\/a> kontrol edin.<\/li>\n<li><strong>Snapshot birimi disk alan\u0131n\u0131 h\u0131zla dolduruyor.<\/strong> Snapshot, kaynak b\u00f6l\u00fcmde \u00e7ok fazla de\u011fi\u015fiklik oldu\u011funda b\u00fcy\u00fcr; i\u015finiz bitince <code>lvremove<\/code> ile hemen silin.<\/li>\n<li><strong>Sunucunuz zaten yava\u015f, komutlar\u0131 \u00e7al\u0131\u015ft\u0131rmaktan \u00e7ekiniyorsunuz.<\/strong> \u00d6nce <a href=\"https:\/\/narhost.com\/destek\/vds-aldim-ama-kasiyor-ne-yapmaliyim\/\" title=\"VDS ald\u0131m ama kas\u0131yor ne yapmal\u0131y\u0131m - Narhost Destek\">performans te\u015fhis kart\u0131na<\/a> bak\u0131n.<\/li>\n<\/ul>\n<div class=\"cta-box\">\n<p class=\"label\">Narhost deste\u011fi<\/p>\n<p>VPS\/VDS y\u00f6netimsiz oldu\u011fu i\u00e7in Narhost deste\u011fi sizin yerinize komut \u00e7al\u0131\u015ft\u0131rmaz; talebe sunucu IP&#8217;nizi, kulland\u0131\u011f\u0131n\u0131z da\u011f\u0131t\u0131m\u0131 ve ald\u0131\u011f\u0131n\u0131z hata mesaj\u0131n\u0131 ekleyin, ekibimiz y\u00f6nlendirme yapar.<\/p>\n<p><a class=\"cta-btn\" href=\"https:\/\/narhost.com\/submitticket.php\" title=\"Narhost destek talebi a\u00e7\">Destek talebi a\u00e7<\/a><\/div>\n<div class=\"kb-ilgili\">\n<p class=\"label\">Sonraki ad\u0131mlar<\/p>\n<ul>\n<li><a href=\"https:\/\/narhost.com\/destek\/yedekleme-ve-geri-yukleme-rehberi\/\" title=\"Yedekleme ve geri y\u00fckleme rehberi - Narhost Destek\">Yedekleme ve geri y\u00fckleme rehberi<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/vps-vds-ilk-kurulum-rehberi\/\" title=\"VPS VDS ilk kurulum rehberi - Narhost Destek\">VPS\/VDS ilk kurulum rehberi<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/sunucuya-ssh-ile-nasil-baglanilir\/\" title=\"Sunucuya SSH ile nas\u0131l ba\u011flan\u0131l\u0131r - Narhost Destek\">Sunucuya SSH ile nas\u0131l ba\u011flan\u0131l\u0131r<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/vds-aldim-ama-kasiyor-ne-yapmaliyim\/\" title=\"VDS ald\u0131m ama kas\u0131yor ne yapmal\u0131y\u0131m - Narhost Destek\">VDS ald\u0131m ama kas\u0131yor ne yapmal\u0131y\u0131m<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"kb-faq\">\n<h2>S\u0131k\u00e7a sorulan sorular<\/h2>\n<h3>VPS snapshot yedekleme i\u00e7in LVM zorunlu mu?<\/h3>\n<p>Snapshot komutu evet, LVM gerektirir; LVM kullanm\u0131yorsan\u0131z rsync ile dosya d\u00fczeyinde d\u00fczenli yedek alma tek se\u00e7ene\u011finiz olur, ikisi birbirinin alternatifi de\u011fil tamamlay\u0131c\u0131s\u0131d\u0131r.<\/p>\n<h3>Rsync yede\u011fi ne s\u0131kl\u0131kta \u00e7al\u0131\u015ft\u0131r\u0131lmal\u0131?<\/h3>\n<p>Bu tamamen sitenizin ya da uygulaman\u0131z\u0131n de\u011fi\u015fim h\u0131z\u0131na ba\u011fl\u0131d\u0131r; g\u00fcnl\u00fck i\u00e7erik \u00fcreten bir sistemde her gece, nadiren de\u011fi\u015fen bir sunucuda haftal\u0131k bir cron g\u00f6revi yeterli olabilir.<\/p>\n<h3>Snapshot, tam bir yedek yerine ge\u00e7er mi?<\/h3>\n<p>Hay\u0131r. Snapshot ayn\u0131 diskte tutulur; disk tamamen ar\u0131zalan\u0131rsa snapshot da kaybolur. Kal\u0131c\u0131 bir yedek i\u00e7in rsync ile veriyi ayr\u0131 bir sunucuya ta\u015f\u0131man\u0131z gerekir.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>VPS snapshot yedekleme iki farkl\u0131 y\u00f6ntemdir: rsync ile uzak sunucuya d\u00fczenli dosya senkronizasyonu ve LVM ile riskli i\u015flem \u00f6ncesi anl\u0131k dondurma noktas\u0131. Y\u00f6netimsiz VPS\/VDS i\u00e7in root&#8217;ta komutlarla uygulan\u0131r.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[171,273],"class_list":["post-2134","post","type-post","status-publish","format-standard","hentry","category-vds-server","category-vps-server","tag-yedekleme","tag-rsync"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/2134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=2134"}],"version-history":[{"count":1,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/2134\/revisions"}],"predecessor-version":[{"id":2167,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/2134\/revisions\/2167"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=2134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=2134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=2134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}