1
ChadK
Backup shell script
  • 2004/7/14 13:12

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Does anyone have a good backup script for shell? Perhaps something that can also back up the MySQL data?

My simple solution for now is to have two shell scripts (because I'm not fluent enough to make a single script do both processes as needed). One runs every 24 hours and the other every hour. The hourly script only updates files where the 24 hour script does this:
Quote:

#!/bin/sh
echo "Creating backup..."
tar -cvf backup.tar public_html/
rm backup.tar.gz
gzip backup.tar
echo "Finished backup..."



Login

Who's Online

494 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 494


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits