Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. making nightly backups of a samba server

making nightly backups of a samba server

Scheduled Pinned Locked Moved System Admin
sysadminlinuxtoolsquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keegan
    wrote on last edited by
    #1

    Does anyone here use any external utility to backup in linux? My boss wanted me to explore around with samba and linux to see how easy it would be to set up a file server with domain logons, and i've got that down pretty good. However, i've been googling, and the best i can find is to either manually do it with a tar command every time i wanna do it, or use AMANDA. I just want to backup user directories (everything in /home). Whats the best way to do this? *.* cin >> knowledge;

    S 1 Reply Last reply
    0
    • K keegan

      Does anyone here use any external utility to backup in linux? My boss wanted me to explore around with samba and linux to see how easy it would be to set up a file server with domain logons, and i've got that down pretty good. However, i've been googling, and the best i can find is to either manually do it with a tar command every time i wanna do it, or use AMANDA. I just want to backup user directories (everything in /home). Whats the best way to do this? *.* cin >> knowledge;

      S Offline
      S Offline
      Sebastian Benitez
      wrote on last edited by
      #2

      You can make your own script with bash and tar + gzip and then "cron" or "at" it. "semper aliquid haeret", Bacon. -- Sebastián.

      K 1 Reply Last reply
      0
      • S Sebastian Benitez

        You can make your own script with bash and tar + gzip and then "cron" or "at" it. "semper aliquid haeret", Bacon. -- Sebastián.

        K Offline
        K Offline
        keegan
        wrote on last edited by
        #3

        i already did that, but my c++ knowledge of linux time isn't good enough. I'd have to make a program that checks the time every so often and runs the tar command if the time is correct. but i don't really want that, it seems it would be a resource hog. *.* cin >> knowledge;

        S 1 Reply Last reply
        0
        • K keegan

          i already did that, but my c++ knowledge of linux time isn't good enough. I'd have to make a program that checks the time every so often and runs the tar command if the time is correct. but i don't really want that, it seems it would be a resource hog. *.* cin >> knowledge;

          S Offline
          S Offline
          Sebastian Benitez
          wrote on last edited by
          #4

          No, what i meant is you can use a bash script running with cron. Cron is a daemon that runs programs at specific times, depending on what you put in the conf file. Check the manpages, do a: "man cron" from the shell and you will learn how to use it. Then you only have to write a script, something like this (I don't remember the tar syntax): #!/bin/sh tar cvf backup.tar /home Then you write it to a file, say backup.sh and perhaps chmod it to o+x so you can execute it from the shell. It's been a long time since I don't use linux, so I almost forgot many commands. "semper aliquid haeret", Bacon. -- Sebastián.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups