Every Salesforce admin has a backup task that depends on someone remembering to do it. It works for a few months. Then there is a release week, or a holiday, or a change of role, and the gap is only noticed on the day a file is needed. Automating the download is not about saving ten minutes. It is about removing the person from the list of things that can fail.
This guide covers the three ways to automate bulk file downloads from Salesforce, what each really automates, and a working setup for the no-code route.
What "Automated" Has to Mean
Before comparing methods, it helps to be strict about the requirement. A file export is automated when all five of these hold:
- It starts without a person.
- The files end up in their final location without a person.
- It only fetches what changed, so it can run often.
- It keeps a record of what happened on each run.
- Somebody finds out when it fails.
Most setups that are described as automated meet the first point and stop there.
Option 1: The Native Scheduled Export
The Data Export Service can be scheduled from Setup → Data Export → Schedule Export, with the options for attachments and Salesforce Files ticked.
- What it automates: generating the export, weekly at best.
- What stays manual: an admin receives an email, logs in, and clicks every ZIP part to download it within 48 hours. In a large org that is dozens of files.
- Incremental? No. Every run is the full selected data set.
It fails requirement 2 and 3. As a weekly safety net for record data it is worth switching on. As an automated file download it is half a process. More in Salesforce data export limits.
Option 2: A Scheduled Script
A developer can write a script that queries for files modified since the last run, calls the REST API for each file body, writes it to disk, and is triggered by cron or Task Scheduler.
- What it automates: everything, if it is built completely.
- What it costs: authentication and token refresh, query paging, per-file downloads, retry on timeouts, API limit back-off, file name collisions, a state file for the last successful run, logging and alerting. Each is small. Together they are a small application.
- The real risk: ownership. The script works until an API version is retired or its author moves on, and then nobody knows how it runs.
Choose this when you already operate scheduled jobs on a server and have a developer who will own it for years.
Option 3: A Desktop Tool with a Built-In Scheduler
SFDC File Exporter includes a scheduler, so any export you can run by hand can be saved as a recurring job. It meets requirements 1 to 4 directly, and 5 through its job history and notification settings.
Setting it up
- Log in with OAuth. For unattended jobs use the OAuth login with a Connected App rather than username and password. OAuth tokens refresh automatically, so the job keeps working across weeks. Setup is in the login guide.
- Configure the export. Pick the method (list view, object, CSV, notes, documents or static resources), the object, any filters, and the output folder.
- Click Schedule instead of Export. This opens the scheduler without running the job.
- Choose the schedule type. Once for a single future run, Daily for the same time every day, or Custom Cron for anything else.
- Turn on Incremental Export. Each run then downloads only files added or modified since the previous successful run. The app tracks that date for you.
- Save. The job appears in the Job History dashboard with its next run time.
The full walkthrough with screenshots is in how to schedule Salesforce exports.
Cron expressions you will actually use
| Expression | Runs | Good for |
|---|---|---|
0 1 * * * | Every day at 1:00 AM | Nightly incremental backup |
30 23 * * 1-5 | Weekdays at 11:30 PM | Business-day case attachments |
0 2 * * 1 | Mondays at 2:00 AM | Weekly archive |
0 8 1 * * | 1st of each month at 8:00 AM | Month-end invoice or contract pull |
The five fields are minute, hour, day of month, month and day of week, with 0 as Sunday.
Three Automation Recipes
Nightly file backup
One job per major object (Account, Opportunity, Case), daily at staggered times between 1 and 3 AM, incremental mode on, each writing to its own folder. Scheduled runs are written to folders prefixed Automatic_Export_ with a timestamp, which keeps them apart from manual runs.
Weekly archive to shared storage
A Monday 2 AM cron job whose output folder sits inside a synced OneDrive, SharePoint or network drive. The export writes locally and your existing sync client carries the files to shared storage. See moving Salesforce files to external storage.
Month-end document pull
A list view of closed-won opportunities or paid invoices for the previous month, exported on the 1st. Finance receives the same folder structure every month without asking for it.
Keeping It Reliable
- Keep the app running. The scheduler runs inside the application. The machine must be on and the app open, minimised is fine. Add it to the startup items so a reboot does not silently stop your backups. A small always-on PC or VM is a better home for this than a laptop.
- Run off-peak. Overnight jobs avoid competing with other integrations for the daily API allocation.
- Filter before scheduling. A narrower scope means fewer API requests per run.
- One folder per job. It makes each job auditable and prevents file name conflicts.
- Review the job history weekly. Enable job history tracking in Settings and look at it on a fixed day. A row of missed runs means the app was closed. The job history guide explains the statuses.
Which Option Fits
| Native export | Custom script | SFDC File Exporter | |
|---|---|---|---|
| Starts automatically | Yes, weekly | Yes | Yes |
| Files land without a person | No | Yes | Yes |
| Incremental | No | If built | Yes |
| Organised by parent record | No | If built | Yes |
| Run log | Email only | If built | Job history |
| Needs a developer | No | Yes, ongoing | No |
| Needs a machine left on | No | Yes | Yes |
Frequently Asked Questions
Can Salesforce automatically export files on a schedule?
Only through the Data Export Service, which can be scheduled weekly on Enterprise, Performance and Unlimited editions or monthly on Professional and Developer. It still needs a person to download each ZIP part within 48 hours, so the export is scheduled but the retrieval is manual.
How do I automate bulk file downloads from Salesforce without code?
Use a tool with a built-in scheduler. In SFDC File Exporter you configure the export as normal, click Schedule instead of Export, choose Once, Daily or a custom cron expression, and turn on incremental mode. The job then runs on that cadence and downloads only files added or modified since the last successful run.
What is an incremental Salesforce file export?
An export that only downloads files created or changed since the previous successful run, rather than the full archive every time. It keeps a local copy current while using a small fraction of the API requests and time of a full export.
Does the computer need to stay on for scheduled exports?
Yes, for any desktop-based scheduler. SFDC File Exporter's scheduler runs inside the application, so the machine must be on and the app open, although it can be minimised. If the app was closed at the scheduled time the job runs at its next scheduled interval once the app is reopened. Adding the app to the machine's startup items avoids missed runs.
Will a nightly file export use up my Salesforce API limit?
A full export every night could. An incremental one rarely does, because each run only requests the files added that day. Schedule it outside business hours and filter it to the objects you need, and the daily cost is typically a few hundred to a few thousand requests rather than hundreds of thousands.
Set It Up Once
The useful test of an automated export is whether it still runs in the week when nobody is thinking about it. Schedule it, make it incremental, give it an always-on machine, and check the history on a fixed day. Download SFDC File Exporter and run the export manually on the free tier first to confirm the output is what you need. Scheduling is part of the Pro license.