> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.scriptation.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I restore an earlier version of my script?

If your script still exists but you need an **earlier version** of it — for example, after a [conflicted copy](https://help.scriptation.com/en/article/i-have-a-conflicted-copy-what-do-i-do-now-uwpryx/), an accidental overwrite, or after the file was opened in [another PDF app](https://help.scriptation.com/en/article/im-missing-all-of-my-layers-1q3wawc/) — Dropbox, Google Drive, and OneDrive all keep file version history. Log in to your cloud provider on the web, find the version from before things went wrong, and restore it.

### Restore an earlier version from your cloud provider

* [Dropbox — restore an earlier version](https://help.dropbox.com/delete-restore/recover-older-versions)
* [Google Drive — restore an earlier version](https://knowledge.workspace.google.com/kb/how-to-recover-versions-of-a-google-drive-document-000007648)
* [OneDrive — restore an earlier version](https://support.microsoft.com/en-us/office/restore-a-previous-version-of-a-file-stored-in-onedrive-159cad6d-d76e-4981-88ef-de6e96c93893)

||| ⚠️ HEADS UP: **Files stored in iCloud Drive or On My iPad / On My iPhone don't have file version history.** Neither location stores older versions of your files, so there's no way to roll back to a previous state from these storage types. The only recovery path is the **Recently Deleted** folder — [iCloud Drive's Recently Deleted](https://help.scriptation.com/en/article/i-accidentally-deleted-my-script-how-do-i-recover-it-tw4inu/) for iCloud files, or [Scriptation's Recently deleted](https://help.scriptation.com/en/article/i-accidentally-deleted-my-script-how-do-i-recover-it-tw4inu/) for On My iPad / iPhone files — and only if an older copy was deleted at some point.

| 💡 TIP: For production work we recommend [Dropbox](https://help.scriptation.com/en/article/how-do-i-sync-with-dropbox-cloud-storage-18wk2i8/). It has the most reliable file version history and the cleanest restore flow.

### Looking for something else?

* **Your file was deleted** — see [I accidentally deleted my script](https://help.scriptation.com/en/article/i-accidentally-deleted-my-script-how-do-i-recover-it-tw4inu/) for recovery paths via Scriptation's Recently deleted folder, provider trash, and iCloud Recently Deleted.
* **Your annotations vanished after the file was opened in another PDF app** — see [I'm missing all my Layers — Lost Layer recovery](https://help.scriptation.com/en/article/im-missing-all-of-my-layers-1q3wawc/).
* **You're trying to merge a conflicted copy** — see [I have a conflicted copy. What do I do now?](https://help.scriptation.com/en/article/i-have-a-conflicted-copy-what-do-i-do-now-uwpryx/).

### Still stuck?

Tap the **Send us an email** button at the bottom of this page. Include the name of the file, which cloud provider stores it, and roughly when the version you want existed.

# What's Next

[I accidentally deleted my script. How do I recover it?](https://help.scriptation.com/en/article/i-accidentally-deleted-my-script-how-do-i-recover-it-tw4inu/)
[I have a conflicted copy. What do I do now?](https://help.scriptation.com/en/article/i-have-a-conflicted-copy-what-do-i-do-now-uwpryx/)
[I'm missing all my Layers — Lost Layer recovery](https://help.scriptation.com/en/article/im-missing-all-of-my-layers-1q3wawc/)
[How do I sync with Dropbox cloud storage?](https://help.scriptation.com/en/article/how-do-i-sync-with-dropbox-cloud-storage-18wk2i8/)