Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Create a Bash script—a command-line automation tool—for backups on a Debian VPS—save as backup sh:
#!/bin/bash\ntar -czf /backups/site-$(date +%Y%m%d).tar.gz /var/www\n
make executable:
chmod +x backup.sh
Run:
./backup.sh
On Hetzner ensures uptime—protects phpMyAdmin data with daily archives

Back to All Tips