> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/programming/rsync-kullanarak-dosya-aktarimi.md).

# rsync kullanarak dosya aktarımı

rsync

![](https://i.imgur.com/R08MunC.png)

## ❌ Bazı Dosyaları Hariç Tutma

<details>

<summary>**`rsync`** kullanarak hariç tutulacak dosya desenlerini belirtmek için aşağıdaki örnekleri kullanabilirsiniz:</summary>

\- \*\*\`.log\`\*\*: .log uzantılı tüm dosyaları hariç tutar. - \*\*\`.png\`\*\*: .png uzantılı tüm dosyaları hariç tutar. - \*\*\`/dirname/\`\*\*: dirname dizinini hariç tutar. - \*\*\`/dirname/\*\`\*\*: dirname dizinindeki tüm dosyaları hariç tutar. - \*\*\`/dirname/file.txt\`\*\*: dirname dizinindeki file.txt dosyasını hariç tutar.

</details>

<details>

<summary>**`rsync`** için birden fazla desen belirtebilirsiniz **`--exclude`** seçeneği ile, örneğin:</summary>

\- Bu \`.pyc\` ve \`.log\` uzantılı tüm dosyaları, ayrıca /tmp/ dizinini hariç tutacaktır.

```bash
rsync -av --exclude=*.pyc --exclude=*.log --exclude=/tmp/ . /path/to/destination
```

</details>

<details>

<summary>Ayrıca, **`--exclude-from`** seçeneğiyle hariç tutulacak dosyaları içeren bir dosya belirtebilirsiniz</summary>

\- \`exclude-list.txt\` dosyasında listelenen desenlerle eşleşen tüm dosyaları hariç tutacaktır. - Dosya, her satıra bir \`pattern\` içermelidir

```bash
rsync -av --exclude-from=exclude-list.txt . /path/to/destination
```

</details>

## 💡 Örnek Kullanım

* Bu komut `exclude-list.txt` dosyasında listelenen dosyaları ve dizinleri hariç tutacaktır
* **`a`** seçeneği arşivleme modunu etkinleştirir, yani dosya meta verilerini (öznitelikleri, izinleri, vb.) korur.
* **`v`** seçeneği etkinleştirilirse, rsync'in ne yaptığını gösterir.
* **`z`** seçeneği etkinleştirilirse, dosyaları sıkıştırır ve yükleme sırasında çıkarır.
* **`e ssh`** seçeneği rsync'in SSH ile nasıl bağlantı kuracağını belirtir.
* `E`, ile dosya içerisindeki `Icon` gibi bilgiler de aktarılır
* `r`, ile alt dizinlerde de ilerler
* `t`, dosyanın son değişiklik bilgisini korur

```bash
rsync -avz --exclude-from=exclude-list.txt -e ssh /local/path/ user@remote-server:/path/to/destination
```

```bash
*.log
/tmp/
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yemreak.com/arsiv/programming/rsync-kullanarak-dosya-aktarimi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
