Results 1 to 2 of 2
Hello,
Need a little help with a .bash file script. Current script below works fine when initiated and creates the backup files of site and database. Where I need help, ...
- 09-21-2011 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 27
Help With Incremental Backup
Hello,
Need a little help with a .bash file script. Current script below works fine when initiated and creates the backup files of site and database. Where I need help, is that each time I initiate a backup, I would like to have each saving incremented by date and time. This way if I have to go back to a specific time it is available.
Thanks JR
#!/bin/bash
tar -cvjf backup/site.tar.bz2 /home/virtual/site.com/var/www/html/ > /dev/null 2>&1
mysqldump -u site -ppass site > backup/site.sql
- 09-23-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
What are you using to do the backup - rsync? or something else?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote