Servers & Hosting (Plesk, CloudPanel, Linux)

Create a Bash Script for Server Auto-Backup

A custom bash script that automatically backs up your files and/or database on a schedule.

The Problem

You're relying on manual backups (or no backups), and every day without an automated one is a day you're one mistake away from losing everything.

About this problem

Manual backups depend entirely on remembering to do them, which is exactly the kind of task that gets skipped during a busy week — right up until the week something goes wrong. A simple scheduled script removes that dependency on memory entirely, running reliably in the background regardless of what else is happening.

This typically comes up after a scare (an accidental deletion, a bad update) makes someone realise they have no real backup, or simply as basic due diligence before it becomes a problem.

What's Included

What's NOT Included

How It Works

  1. Identify exactly what needs backing up — specific files/directories, a database, or both.
  2. Write a bash script that captures that data, compresses it, and names files with clear timestamps.
  3. Add retention logic so old backups are automatically cleaned up rather than accumulating indefinitely.
  4. Set up a cron job to run the script on your chosen schedule.
  5. Run a real test and a real test restore to confirm the backup is genuinely usable, not just created.

In practice: you buy the service, send over whatever access or details the job needs, I investigate and do the work, and you confirm it's resolved before we call it done.

Frequently Asked Questions

Why not just use a backup plugin or service instead of a custom script?
A plugin or paid service can work well too, but a lightweight custom script avoids extra cost, extra attack surface, and gives exact control over what's backed up and where — useful when existing tools don't fit cleanly.
How do I know if my backup script actually works?
By testing a real restore, not just confirming the script runs without errors — a backup that's never been restored is unverified, not confirmed working.
Where should backup files be stored?
Ideally not only on the same server being backed up — this script covers local backups with rotation; off-server upload is a separate, related service if needed.
How often should an automated backup run?
Depends on how much data change you can tolerate losing — daily is a common default, but more frequent runs make sense for fast-changing data.
What happens if the backup script fails silently?
Without monitoring, a failure might not be noticed — ongoing success/failure monitoring can be added as a follow-up if that reassurance matters to you.
Can this back up a database as well as files?
Yes, the script is tailored to whatever you actually need backed up — files, a database dump, or both together on the same schedule.
Please note: the price shown applies to a standard case matching the description above. Every situation is different, and if your request falls outside the normal scope of this service, I will explain this before doing any additional chargeable work. I will never silently turn a small job into an expensive project.
Running into an issue with a service you've already bought, or unsure which one fits your problem? Message me directly on WhatsApp — no ticket system, no bot.