Page 1 of 1

Cron entries

Posted: Mon Jun 28, 2004 10:21 am
by Twiggy
I need mySamba server to backup a small amount of data to a Zip disk on a regular basis. How can I configure Cron to do this for me?

Posted: Mon Jun 28, 2004 1:21 pm
by pthread
Write a script to do the backup itself, then 'man crontab' it should tell you everything you need to know.

Posted: Mon Jun 28, 2004 1:24 pm
by Twiggy
I need to use absolute path's for commands right? All the documentation I've been reading has made it look like this is the case.

On another note, how can I configure a parallel external Zip drive? I dunno how to tell which /dev/ file it's used by.

Posted: Mon Jun 28, 2004 6:13 pm
by dann
The parallel zip drive will be detected as a scsi device. When the module is loaded in you can probably determine what the device is by running dmesg. If the device is attached at boot, chances are the module is loaded and it is ready to go. Again, dmesg |less will allow you to scroll through the boot messages and find what device your zip drive has been assigned too.

For instance, if it is the only scsi device is may be /dev/sda0.

As for absolute paths in your script for cron or in cron in general, you cannot go wrong using absolute paths.

Posted: Mon Jun 28, 2004 9:09 pm
by pthread
Absolute paths own you...

Posted: Tue Jun 29, 2004 7:43 am
by Twiggy
I followed the instructions for the Zip drive, and I'm not getting any mounting of the module at boot...what's the module called? Maybe if I manually insmod it I can get it working :o/

Posted: Tue Jun 29, 2004 10:51 am
by dann
The module I use is ppa. It is under the scsi drivers. There is a <a href="http://www.tldp.org/HOWTO/ZIP-Drive.html">zip drive howto</a> over at the linux doc project:

Posted: Tue Jun 29, 2004 11:57 am
by Twiggy
Hmm...took me a while but it looks like I use imm to find the Zip drive. Works though. Whats the best way to modprobe this module (and parport) on bootup? The drive will need to be mounted all the time.