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 25, 2026

Spent the morning reorganizing my cable management setup, and I can't believe I waited this long to...

March 24, 2026

Spent most of today reorganizing my project folder structure, and it reminded me how much time we...

March 23, 2026

Spent the morning finally tackling my downloads folder. You know that moment when you open it and...

March 22, 2026

Spent the morning fixing something I should have done months ago: the rat's nest of cables behind...

March 21, 2026

Spent the morning reorganizing my project folders, and the difference in mental clarity is...

View all posts