Tar command

Discussion in 'Server Operation' started by PortMan, Sep 1, 2006.

  1. PortMan

    PortMan New Member

    I want to archive (zip / tar) all the files and directories in /home/www/ and have them put into a file 09-01-2006.tar that is put in /backups/

    I've read the man pages, but just can't figure it out. Can someone show me what the command would be to do this?

    Thanks.
     
  2. rduarte

    rduarte New Member

    tar -cvzf /backups/09-01-2006.tar.gz /var/www/
     
  3. PortMan

    PortMan New Member

    Thanks, that did the trick!
     
  4. PortMan

    PortMan New Member

    Is there a command that will backup all of my mysql databases and tar them?
     
  5. rduarte

    rduarte New Member

  6. falko

    falko Super Moderator Howtoforge Staff

Share This Page