making nightly backups of a samba server
-
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;
-
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;
You can make your own script with bash and tar + gzip and then "cron" or "at" it. "semper aliquid haeret", Bacon. -- Sebastián.
-
You can make your own script with bash and tar + gzip and then "cron" or "at" it. "semper aliquid haeret", Bacon. -- Sebastián.
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;
-
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;
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.