Loading
October 26, 2026

AmirHesamTech

Raspberry Pi, homelab, Linux and automation — projects and practical guides

Updated September 2026. This guide is about the files themselves — naming, sorting, syncing and archiving. For pulling data out of invoices, receipts and forms, see document processing automation.

File chaos is not a storage problem, it is a naming and routing problem. Once every file that arrives is named consistently and lands in a predictable place, searching stops being a daily activity. This guide sets up that system, then automates it across Google Drive, Dropbox and OneDrive with no code.

Decide the system before you automate it

Automation enforces whatever structure you give it, so the structure comes first.

Advertisement
  • Name files so they sort themselves: start with the date in year-month-day order, then the client or project, then what the thing is. YYYY-MM-DD_client_invoice sorts chronologically in any folder, on any system, because the digits line up.
  • Choose one folder logic and keep it: by client, then by year is the most forgiving for freelancers. By year, then by client suits businesses with few customers and many projects.
  • Keep the depth shallow. Three levels is plenty; anything deeper and people stop filing correctly.
  • Have one inbox folder where unsorted things land, so nothing is ever “somewhere on the desktop”.
  • Never rely on “final”. Version numbers or dates only — _v2, not _FINAL_real_final.

The tools

Tool Good for Worth knowing
Zapier Simple, reliable rules between two services Easiest to learn; free plans limit automations to a trigger and one action
Make Multi-step routing, renaming and conditions More capable per run, and a steeper first hour
Your cloud storage’s own rules Sorting inside one service Free, no third party sees your files — check what your provider already offers
Desktop watchers (such as Hazel on macOS) Files that live on your computer Runs locally, so nothing leaves the machine
A sync client Keeping one folder mirrored across devices Real-time mirroring beats scheduled copying for files you edit

Four workflows worth building

1. Email attachments file themselves

Trigger on an email with an attachment carrying a particular label, save the file into the client’s folder in cloud storage, and rename it with the date and sender. This single automation removes the most common source of desktop clutter.

2. New files get a standard name

Trigger on a new file in your inbox folder, build a name from the creation date and the original name, then rename and move it. Keep the original name in the string — it is often the only clue about what the file is.

3. Signed documents land in the right place

Trigger when an e-signature service completes a document, save the signed copy to the client folder, and add a row to a register with the date and parties. Contracts are exactly the kind of file people cannot find two years later.

4. A month-end tidy

On a schedule, move anything older than a set age out of the inbox folder into an archive by year. Archiving on a timer is what stops the system decaying after the first enthusiastic month.

Think twice before mirroring everything everywhere

Copying every file into three clouds sounds safe and usually is not: you get three versions that disagree, three sets of sharing permissions, and three bills. Prefer one home for each kind of file, plus a genuine backup. Sync is not backup — a file deleted or encrypted by ransomware syncs that change everywhere. Keep at least one copy that is not connected to the others, and see our cloud storage and backup guide.

Set it up safely

  1. Test with copies of real files, in a test folder, until the naming comes out right.
  2. Move, don’t delete. Never give an automation permission to delete anything; send it to an archive folder instead.
  3. Watch the first week. Most mistakes show up immediately — a wrong folder, a date format that sorts oddly.
  4. Turn on failure alerts so you know when a run breaks rather than discovering a month of unfiled documents.
  5. Write down what each automation does. Future you will not remember why files are being renamed.

Fixing a backlog without losing a day to it

Do not try to rename ten years of files. Draw a line instead:

  1. Freeze the old material. Move everything as it stands into a single archive folder, organised only by year. Search still finds it, and it stops getting in the way.
  2. Start the new system empty and let the automations fill it.
  3. Pull files forward only when you touch them. If you open something from the archive for real work, rename it properly and file it in the new structure on the way back.
  4. Give it a quarter. Everything you actually use migrates itself, and the rest stays where it cannot hurt you.

Access and privacy

  • Check what the automation platform can reach. Connecting cloud storage usually grants broad access to the whole account.
  • Keep client files in folders shared only with the people who need them, and review sharing links occasionally — old links outlive projects.
  • Personal data brings obligations. Know which folders hold it, who can see them, and how long you keep it.
  • Use local automation for anything genuinely confidential, so the file never passes through a third party.

Frequently asked questions

Which cloud storage is best for this?

The one you already pay for. All the main services connect to the main automation platforms; switching storage to get slightly better automation is rarely worth the disruption.

Can automation rename files that are already a mess?

Partly. A bulk rename can standardise dates and prefixes, but it cannot know what an ambiguously named file contains. Fix the incoming flow first, then tidy the backlog gradually.

Do I need a paid plan?

Free tiers handle one or two simple rules. Multi-step workflows — save, rename, move, log — generally need a paid plan on the connector platforms, though your storage provider’s built-in rules may cover it at no extra cost.

What happens if two automations act on the same file?

They fight, and you get duplicates or loops. Give each folder a single owner automation, and avoid rules that trigger on changes their own actions create.

Related guides

Advertisement

65 Posts

SDET and QA engineer. I build Raspberry Pi servers, a Proxmox homelab and automations, and share how on TikTok and Instagram (@techwithamirh3sam).

View All Posts

You Missed

REWARDS 🔰 LV1 0🪙 ❯
🔰
Recruit
Guest Operative
Level1
XP0 / 100
💬 Need help?
coins0
Streak0 days · best 0
📋 Daily missions
↻ Resets daily at midnight
Rank ladder
How to earn
✓ Welcome bonus for joining — +200 🪙 & +100 XP (one-time)
✓ Daily check-in (streak bonus) — +20 XP & +12–24 🪙 (more 🪙 the longer your streak)
✓ Spin the daily wheel — +10 to +150 🪙 (free, once a day)
✓ Daily missions — check-in +15 🪙/+10 XP · daily spin +15 🪙/+10 XP
✓ Finish ALL daily missions — +30 🪙 & +20 XP bonus
✓ Level up — +25 🪙 every new level
✓ Achievements — first sign-in +50 🪙 · Lv5 +75 · Lv10 +150 · Lv25 +300 · 7-day streak +100 · 30-day +250 · collector +100 · subscriber +50
✓ Complete your profile (name, bio, photo) — up to +55 XP (one-time)
✓ Subscribe to the newsletter — +250 🪙 (one-time)
Coins and XP are just for fun: they have no cash value and can't be exchanged for money or prizes. You never earn them for viewing or clicking ads, or for how many pages or articles you open.
🛒 Token Shop0 🪙
🛍️ Shop0items
🎒 Inventory0items

🎡 Daily Spin

One free spin every day — pure bonus coins!
🪙
💬Need help?