> For the complete documentation index, see [llms.txt](https://docs.mydbsync.com/cloud-replication-main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mydbsync.com/cloud-replication-main/source-setup/salesforce/file-replication.md).

# File Replication

DBSync File Replication is useful to download the files of the source application attachment, document, content & chatter feed into a specified directory. This section explains how to enable and run the file.

* In the Database details tab, *Download Attachments/Document/Content version as local files* must be checked and saved to enable the file replication process.
* *Download files to Directory* shows the default path in local directory for file replication. The path can be changed as required.
* *Keep multiple versions of files when downloading (older versions will be renamed before new ones are downloaded)* and check and save them to enable file versioning. This feature helps to retain the existing downloaded files as a backup. The existing files will be retained, and the new file will be downloaded as a new version. If this feature is not enabled, the existing file will be replaced with the new file.
* It is also necessary to check the required objects for file replication in the Source apps Sync Object Details tab. To download files in attachment and document, the objects attachment and document should be checked. To download files in content and chatter feed, the object contentversion must be checked.
* To initiate download of all the files from Source to local directory, Source to Database clean copy button should be used. Incremental download can be initiated using Source to Database command button.
* Other modes of running replication can also be used to initiate File Replication. The details are shown in the section [Running Replication](https://docs.mydbsync.com/cloud-replication-main/running-replication.md)

**Features**

* Download the files from Salesforce *attachment, document, content & chatter feed* into specified local directory.
* Compatible with *Windows* as well as *Linux*.
