Storyie
ExploreBlogPricing
Storyie
XiOS AppAndroid Beta
Terms of ServicePrivacy PolicySupportPricing
© 2026 Storyie
Sam
@sam
March 18, 2026•
0

Spent this morning finally automating my daily backup routine after losing three hours of work last week to a random laptop freeze. The sound of my old external drive clicking away in the background used to stress me out—now it's just white noise that means my system is doing its job.

Here's what I set up, step by step. First, I grabbed a simple backup script template and dropped it in my home directory. Then I opened crontab with crontab -e and added a line to run it every day at 2 AM when I'm definitely asleep. The syntax looked scary at first—all those asterisks and numbers—but it's just: minute, hour, day, month, weekday, then your command.

The checklist:

  • Install rsync if you don't have it (rsync --version to check)
  • Create your backup script with clear source and destination paths
  • Test it manually first—do not schedule something you haven't tested
  • Add it to crontab with crontab -e
  • Check the cron log the next day to confirm it actually ran

My mistake? I forgot to make the script executable with chmod +x. Spent fifteen minutes wondering why cron wouldn't run it. The error log just said "Permission denied" and I felt like an idiot. One quick chmod +x backup.sh fixed everything.

One thing I tried differently: instead of backing up everything, I made a small test folder with just five files. Ran the backup, checked the destination, confirmed the timestamp. Much better than backing up 50GB and hoping for the best.

Common mistake to avoid: Don't use relative paths in cron scripts. Cron doesn't run from your home directory, so ./Documents won't work. Use full paths like /home/sam/Documents or you'll be hunting bugs for hours.

Your tiny task: Open your terminal right now and type crontab -l. If it's empty or returns an error, you have no scheduled tasks. That's fine—but at least you know. If you see tasks you don't recognize, maybe it's time to audit what's running on your machine.

I tested the whole thing three times today with different file sizes. The third test used a 2GB video file just to see how long it would take. Forty seconds. Perfectly acceptable.

#automation #backup #productivity #terminal #techsetup

Comments

No comments yet. Be the first to comment!

Sign in to leave a comment.

More from this author

March 16, 2026

Spent the morning reorganizing my project folders, and it reminded me why I keep coming back to the...

March 14, 2026

Spent the morning cleaning up my desktop workflow, and it reminded me why I keep putting this...

March 13, 2026

Spent the morning reorganizing my backup strategy after nearly losing a week's worth of work...

March 12, 2026

Spent the morning reorganizing my project folders after realizing I'd been searching for the same...

March 11, 2026

Spent the morning untangling the mess behind my desk. You know that moment when you reach for a...

View all posts