Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple Backup Script
# Backup htdocs
tar -cvzf ~/Backup/Files/htdocs-$(date +%d).tar.gz /opt/lampp/htdocs
# Backup database
/opt/lampp/bin/mysqldump -u [user] -p[password] --all-databases > ~/Backup/Files/semua_database-$(date +%d).sql
// crontab -e
// 0 23 * * * sh /home/app/Backup/Script/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.