LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I automagically back up a directory to DVD-RAM (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-automagically-back-up-a-directory-to-dvd-ram-729179/)

Polish-Jack 05-28-2009 05:07 PM

How do I automagically back up a directory to DVD-RAM
 
I am running a small machine that hosts a directory for several client computers to use as a mapped drive so the client computers can run the application in the directory.

I need a way to backup/copy this directory to a DVD-RAM disk automagically ever night. How would I go about doing this?

veerain 05-29-2009 03:44 AM

tar -cvpf backup.tar directory
mkisofs -R backup.iso "directory containg only backup.tar"
cdrecord -sao -speed=8 backup.iso

Polish-Jack 05-29-2009 01:23 PM

Quote:

Originally Posted by contusion (Post 3556306)
tar -cvpf backup.tar directory
mkisofs -R backup.iso "directory containg only backup.tar"
cdrecord -sao -speed=8 backup.iso

DVD-RAM does not need to be burned like a regular CD. Once it is mounted it acts like a slow HDD. I did some reading and think that CRON would be my best bet, I just have to figure out how to use it. I am guessing what I need is something like this...

Mount the drive
CP the directory with auto overwrite switches to the mounted DVD-RAM
Unmount the drive

Would something like this work?

jamescondron 05-29-2009 02:04 PM

Only one way to find out, give it a go.

archtoad6 06-19-2009 05:56 AM

Did you try it & did it work? -- It's important to let others know.

EricTRA 06-19-2009 06:06 AM

Some usefull info

Mondoarchive for Linux

Of course there are other possibilities using 'dd' or tar or cpio or ...


All times are GMT -5. The time now is 02:20 AM.