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..."