> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/id/pemeliharaan/data-and-backups/exporting-projects.md).

# Mengekspor proyek

Di Server Pro dan Community Edition `5.4.0` kami telah menyertakan skrip yang memungkinkan Administrator mengekspor semua proyek pengguna (termasuk yang masih terlihat di **Dihapus** dan **Dibuang** folder) ke sebuah direktori di disk.

{% hint style="info" %}
Keluaran dari menjalankan skrip ini sama seperti mengunduh Zip semua proyek secara manual dari dasbor proyek pengguna. Skrip ini akan mengosongkan setiap perubahan yang tertunda sebelum memulai unduhan untuk memastikan bahwa ekspor berisi versi terbaru dari proyek.
{% endhint %}

### Batasan

Skrip ekspor memiliki batasan berikut:

* Tidak ada pengaturan proyek, seperti nama image TeX Live atau compiler, yang diekspor. Pengaturan ini harus ditetapkan saat proyek diunggah ke akun pengguna.
* Proyek yang diekspor tidak berisi riwayat versi apa pun.
* Tidak ada informasi kolaborator yang dipertahankan. Proyek perlu dibagikan ulang. Jika menggunakan berbagi tautan, tautan Lihat dan Edit akan dibuat ulang (tidak akan sama seperti sebelumnya).
* Setiap komentar dan informasi perubahan terlacak tidak akan diekspor.
* Riwayat obrolan proyek tidak akan diekspor.

{% hint style="danger" %}
Skrip ini **tidak** dirancang untuk menggantikan pencadangan sistem penuh. Untuk memastikan Anda dapat memulihkan instance Anda dalam skenario pemulihan bencana, kami **sangat** merekomendasikan untuk melakukan [pencadangan yang konsisten](https://docs.overleaf.com/on-premises/maintenance/data-and-backups/..#performing-a-consistent-backup).
{% endhint %}

### **Flag**

| Nama           | Deskripsi                                                                               |
| -------------- | --------------------------------------------------------------------------------------- |
| `--help`       | Tampilkan bantuan                                                                       |
| `--user-id`    | ID pengguna (diperlukan kecuali menggunakan `--export-all` atau `--project-id`)         |
| `--project-id` | Ekspor satu proyek (**tidak dapat** digunakan dengan `--user-id` atau `--export-all`)   |
| `--list`       | Daftar proyek pengguna (**tidak dapat** digunakan dengan `--output`)                    |
| `--output`     | File zip keluaran (untuk operasi ekspor tunggal)                                        |
| `--export-all` | Ekspor proyek semua pengguna (memerlukan `--output-dir`)                                |
| `--output-dir` | Direktori untuk menyimpan file ekspor semua pengguna                                    |
| `--log-level`  | Tingkat log yang didukung: `lacak`\|`debug`\|`info`\|`peringatan`\|`kesalahan`\|`fatal` |

### **Penggunaan**

Gunakan perintah berikut untuk mengekspor proyek untuk semua pengguna:

{% code overflow="wrap" %}

```bash
# Pengguna Overleaf Toolkit
$ bin/docker-compose exec sharelatex /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/export-user-projects.mjs --export-all --output-dir=/var/lib/overleaf/data/exports"

# Pengguna docker-compose.yml lama
docker exec sharelatex /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/export-user-projects.mjs --export-all --output-dir=/var/lib/overleaf/data/exports"
```

{% endcode %}

{% hint style="info" %}
Jika Anda menjalankan Server Pro atau Community Editition <= 3.5.13, Anda perlu memperbarui contoh di atas untuk menggunakan **`export-legacy-user-projects.js`** skrip.
{% endhint %}

### **Selesai**

Setelah ekspor selesai, Anda dapat mengakses file melalui direktori di host yang di-bind-mount ke **/var/lib/overleaf** di **docker-compose.yml** file Anda atau `OVERLEAF_DATA_PATH` variabel lingkungan di **config/overleaf.rc** file jika Anda menggunakan Toolkit.

{% hint style="info" %}
Saat ini Overleaf mengizinkan nama proyek duplikat. Jika proyek seorang pengguna berisi duplikat, proyek-proyek ini tetap akan ditambahkan ke ekspor Zip pengguna, tetapi saat diekstrak, hanya satu versi yang akan ada. Di Linux, `unzip -B` akan menulis file dengan nama yang sama sebagai file cadangan alih-alih menimpanya.
{% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/id/pemeliharaan/data-and-backups/exporting-projects.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
