Coding · Automation

Back Up an Important Folder Automatically

Set up a simple routine that copies your important files to a backup place on a schedule.

Prompt Code output

I want my important files backed up without having to remember. My computer runs [OPERATING_SYSTEM]. The folder I want to protect is [FOLDER_TO_BACK_UP], and I want copies saved to [BACKUP_LOCATION]. I would like this to happen [SCHEDULE]. First tell me if a built-in feature of my computer already does this, and how to switch it on. If not, write a short script that copies new and changed files and keeps a simple log of what it did. Explain where to save it, how to run it by hand to test, and how to schedule it using the tools already on my computer. Tell me to test it with a small sample folder first and to check that the copies really open.

Fill in the brackets

[OPERATING_SYSTEM]
Windows, Mac, or Linux
[FOLDER_TO_BACK_UP]
e.g. Documents\Invoices or my Photos folder
[BACKUP_LOCATION]
e.g. an external USB drive, or a synced cloud folder like OneDrive
[SCHEDULE]
e.g. every evening at 8 pm, every Friday

How to use

  1. Copy the prompt.
  2. Replace the text inside [BRACKETS] with your own details.
  3. Paste it into ChatGPT or another AI assistant.
  4. Read the result and ask for changes if needed.

Tip: Once a month, open a few files from the backup to make sure they really work.