Find the answer to your Linux question:
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, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,664
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •