backups

Discussion in 'Linux, BSD and Other OS's' started by edijs, May 16, 2007.

  1. edijs

    edijs Programmer

    Likes Received:
    9
    Trophy Points:
    38
    Hi!

    I wonder if anyone can tell me what can I do to make backups from a certain directory on one harddrive to another harddrive (like make a single file out of that first directory and put it simply at the start of this second hdd)? that's in FreeBSD. :rolleyes:
     
  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    In any UNIX-like OS, you can use the tar tool. "tar" is short for Tape ARchiver, and will allow you to compress/combine multiple data sources into a single file (or to a sting of files, or append only new data to an existing archive, etc). It's quite flexible and powerful, and is usually used in combination with cron to automate backups on Unixy systems.

    There are a lot of possibilities for how you use tar, so you should read the manual before making an attempt at automated backups:
    Code:
    man tar
    Once you've done that, let me know if you need any specific help.
     
  3. edijs

    edijs Programmer

    Likes Received:
    9
    Trophy Points:
    38
    thanks! i'll sure do! :cool:
     
  4. edijs

    edijs Programmer

    Likes Received:
    9
    Trophy Points:
    38
    okay, so if I use

    Code:
    tar -c -f - TEST
    (Where TEST is a directory) "tar" will create a new archive, containing the directory TEST. BUT where and how the archive's called?

    EDIT: And another thing. How can I make this "tar" to execute like once a week?
     

Share This Page