Enabling automated backups for your VPS.
When managing an enterprise-grade Virtual Private Server (VPS), manual backups are no longer enough. If your applications process daily transactional data, customer user profiles, or database entries, a sudden software corruption or bad deployment script could result in severe data loss.
Setting up Automated Backups creates a set-and-forget safety net. At Ceylon Servers, you can configure automated cloud infrastructure tracking using either our 1-click Control Panel snapshots or automated Linux server command tasks.
Follow this guide to enable automatic internal or external backup loops for your Linux VPS:
Method 1: Enabling Scheduled Backups via Ceylon Servers Client Area (Recommended)
The safest way to backup a VPS is from the outside host hypervisor level. This creates a full "snapshot" image of your entire server operating system without putting any processing load on your active websites.
Securely log in to your Ceylon Servers Portal and open your Client Area account dashboard.
- Go to Services âž” My Services and select your active Cloud VPS/Linux Server.
- Scroll down to your automated Server Information / Management Options console drawer workspace.
- On the navigation sidebar or menu bar layout, locate and click on the "Auto Backups" or "Snapshots" tab option.
- Configure Your Automation Schedule:
- Frequency Selection: Turn the automation toggle switch ON and choose your retention frequency routing loop (Daily, Weekly, or Monthly).
Retention Policy: Define how many older backup iterations you want to save (e.g., Setting this to 3 means the system will keep the last 3 days of backups and automatically overwrite the oldest one on day 4).
Click the blue "Save Settings" or "Enable Automated Backups" button.
Once activated, our data center backup storage vaults will silently take an identical carbon copy mirror image of your server volumes during low-traffic off-peak night cycles completely automatically!
Method 2: Setting up Automated Internal Local Backups (Using Cron Jobs)
If you prefer to have customized control over your data—such as compressing only specific database files and website directories every single night—you can use the built-in Linux Cron Job scheduling daemon via your terminal SSH window.
Step 1: Create Your Automation Script Matrix
Connect to your VPS via SSH using PuTTY or your native Terminal.
Create a fresh secure backup automation shell script file:
Bash
sudo
nano /root/backup_script.sh
Paste this standard high-efficiency backup sequence string into the text layout (This script creates a zipped file of your primary website folder name and names it with the exact current date):
Bash
#!/bin/bash
# Define target directory and destination path arrays
BACKUP_DIR="/var/www/html"
DEST_DIR="/backup/local_archives"
DATE=$(date +%Y-%m-%d)
# Create destination path if missing
mkdir -p $DEST_DIR
# Execute secure high-compression tar archiving command loop
tar -czf $DEST_DIR/vps_backup_$DATE.tar.gz $BACKUP_DIR
Save the file by pressing Ctrl + O, hit Enter, and exit the text view editor by pressing Ctrl + X.
Give the script absolute administrative execution rights:
Bash
sudo
chmod +x /root/backup_script.sh
Step 2: Schedule the Cron Job Loop to Run Automatically
Open the system cron schedule control matrix editor:
Bash
sudo
crontab -e
Scroll to the very bottom line of the file and paste this execution instruction:
Plaintext
0
2 * * * /bin/bash /root/backup_script.sh
How to read this rule: The code 0 2 * * * specifies that the server must trigger and execute your custom backup script file automatically every single night at exactly 2:00 AM server time.
Save and close the editor. Your automated internal tracking is now completely locked and active!
Best Practice Disaster Recovery Tip:
- Keep Off-Site Backups: Storing local server scripts using Method 2 inside the same server chassis volume is convenient for quick rollbacks, but it won't protect you if the entire server storage fills up or crashes. Always combine it with Method 1 (External Provider Backups) to stay 100% safe.
Need a Fully Managed Off-Site Cloud Backup Vault? If your corporate server architecture demands isolated, encrypted daily differential snapshots or incremental snapshots pushed straight to a separate high-security location, we've got you covered!
Please Open a Ticket under our Cloud Infrastructure Support department from your CeylonServers client room. Our dedicated systems engineers will immediately provision and attach an isolated premium Acronis Backup Vault or external backup volume partition customized specifically for your VPS resources!