best way to backup Linux directories?

Discussion in 'OT Technology' started by AbortionSurvivor, Mar 10, 2005.

  1. AbortionSurvivor

    AbortionSurvivor Active Member

    Joined:
    Jun 5, 2002
    Messages:
    3,016
    Likes Received:
    0
    Location:
    Nor. Cal
    I have a linux box running RH9.0, and need to backup two directories.
    The destination for the backups would be on a W2k3 server.


    I can mount a shared Win2k3 directory on the linux box so it can be easly accessed by the linux box.

    Other requirements are that only incremental backups are run everynight, and that one of the directories can only be accessed by root.

    I have no idea on how to make a script files, or how to make them load automatically.

    can someone point me in the right direction?
     
  2. AbortionSurvivor

    AbortionSurvivor Active Member

    Joined:
    Jun 5, 2002
    Messages:
    3,016
    Likes Received:
    0
    Location:
    Nor. Cal
  3. Penguin Man

    Penguin Man Protect Your Digital Liberties

    Joined:
    Apr 27, 2002
    Messages:
    21,696
    Likes Received:
    0
    Location:
    Edmonton, AB
    Set it up as a cron job (man cron or man crontab for more information) under the user that has the right permissions.
     
  4. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    I've wondered the same for my debian box actually..
     
  5. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,624
    Likes Received:
    40
    Location:
    Atlanta, GA
    write a shell script to:

    1)mount up the windows share
    2)tar and gzip the files that you want
    3)mv the gz to the windows share

    Then setup the script to run via cron at whatever interval you please. You can add fancy stuff like incrementation, or just keep a couple weeks worth of logs.

    Lots of samples and details here:

    http://www.linux-backup.net/

    EDIT: Damn they forgot to renew their domain. :rofl: Here is what the page used to look like: http://64.233.187.104/search?q=cache:RZxe06APCsIJ:www.linux-backup.net/+linux+backup&hl=en
     
  6. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
  7. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    so what is the filesystem type on the w2k3 server? i hope not ntfs
     
  8. AbortionSurvivor

    AbortionSurvivor Active Member

    Joined:
    Jun 5, 2002
    Messages:
    3,016
    Likes Received:
    0
    Location:
    Nor. Cal

    It's NTFS. We we ever need to restore from backup, we have a few linux boxes that can be used.

    Thanks for a the tips guys.
     
  9. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    so linux can write to ntfs now? :confused:
     
  10. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,624
    Likes Received:
    40
    Location:
    Atlanta, GA
    I was assuming he was sharing a dive on windows and mapping it via smbclient.
     
  11. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    :uh: i haven't used samba in ... 3 years? i gotta do that stat
     
  12. __23skidoo

    __23skidoo ...has the nuts

    Joined:
    Jan 3, 2002
    Messages:
    4,588
    Likes Received:
    0
    Location:
    Atlanta
    I've always used zip or gzip for my home systems.
     

Share This Page