Results 1 to 8 of 8
I need a command line program to burn a directory to a cd-R. ie so I can use a script and set up a cron job. I need to back ...
- 02-08-2007 #1
Command line file copy to CD
I need a command line program to burn a directory to a cd-R. ie so I can use a script and set up a cron job. I need to back a directory periodicly and automaticly.
Can anyone give me some direction here?
- 02-08-2007 #2
I have a SUSE book here that suggests to use a program called "Konserve". You may already have it on your system. check K menu > System > Desktop Applet > Konserve Apparently it allows for scheduled backups and I wouldn't be surprised if you could kick it off with a cron entry.
Other than that, the command line cdrecord will send files to CD-R and CD R/W.Ubuntu 11.04 on IBM ThinkCentre
Fedora, VMware Player (windows xp,Knoppix 6.5) on Lenovo Laptop
GRUB Fedora / Windows 7, VMware Player (Windows 2008 server) on NCIX quad core PC.
- 02-08-2007 #3
Thanks
cdrecord seems to only support SCSI devices???
I'll look for Konserve it does not appear on my menu.
- 02-08-2007 #4
Ok found konserv
looks like it only backups to directories.
cdrecord seems to be SCSI only. It did not recognize my CD/DVD burner on my current machine.
In this case this is a stand alone machine no network no internet.
I need to backup to cds automaticly. I can't believe no one is doing this. All the backup programs I've found so far simply make a compressed image of some sort to a folder on the machine or network. You then need to manualy transfere this to a cd. But I have really dumb users in this case and can't trust them to do it correctly. I'm running a POS and we are talking video store clerks here.
does not have to be open source!!! but would prefer it
- 02-08-2007 #5
OOps I guess it cdrecord might work. I must have typed something wrong the last I check but it is now showing my cd writer as a device. cool
But you still must build an iso image before the burn.
- 02-09-2007 #6
A script can help
Use mkisofs and cdrecordPut your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
Linux User #425940
Don't PM me with questions, instead post in the forums
- 04-03-2007 #7
I am doing exactly the same thing without a glitch using
tar -cvzf file.tar.gz {folders}
mkisofs file.tar.gz /tmp/file.iso # intermediary step
cdrecord -v -dao dev=x,0,0 file.iso
rm -rf /tmp/file.iso # intermediary disc cleanup
Is there any way to write directly to cd-r ? I wrote to the cd-r using tar -cvzf /dev/cdwriter folder, but the cd was trash dump for obvious reasons.
Is there any other work around?
- 04-03-2007 #8
Walla!!!
I got the answer:
mkisofs -R {source_file} | cdrecord -v fs=6m speed=2 dev=x,x,x
where
-R enables Rock Ridge protocol in order to describe iso 9660 format for the cd media
x,x,x can be get cdrecord -scanbus
fs describes the non-default buffer size (default 4MB)


Reply With Quote