[Bio-Linux] Cron and Qiime

Tony Travis a.travis at abdn.ac.uk
Sun Oct 3 11:31:49 EDT 2010


On 30/09/10 15:12, Anthony Pemberton wrote:
> Mike,
>
> OK cron is running. This looks like the problem I encountered with the script /etc/cron.daily/backup - under
> #What to backup
> backup_filesystems=(${FILESYSTEMS:="/home" "/home1"})
>
> Note the use of the double quotes around the partitions you want to backup (these are the mount points). If I remember correctly, the quotes were missing and are now required. I think that is why the script is failing. The default config is a "red-herring" because what the script is saying is: if the file exists read it, if not continue.
>
> The way to quickly test the script after editing is to run it from the command line eg.
>
> % sudo -i
> # cd /etc/cron.daily
> # ./backup
>
> and see what happens. Use of echo statements in shell scripts like this helps to debug,

Hello, Tony.

Tim added my changes to bio-linux-backups, but I have also noticed 
problems if an "/etc/default/backup" file is absent. Sorry, I should 
have posted something to the list.

I use these defaults (from Bio-Linux 5) for our NBX's:

> # @(#)/etc/default/backup  2009-07-17  A.J.Travis
>
> #
> # Bio-Linux 5.0 backup configuration
> #
>
> # Where to backup
> #DESTINATION="/backups"
>
> # What to backup
> #FILESYSTEMS="/ /home /var /usr"
> FILESYSTEMS="/ /home"
>
> # Compression scheme.  For large drives bzip2 is probably too slow.
> #COMPRESSION="z"

HTH,

   Tony.
-- 
Dr. A.J.Travis, University of Aberdeen, Rowett Institute of Nutrition
and Health, Greenburn Road, Bucksburn, Aberdeen AB21 9SB, Scotland, UK
tel +44(0)1224 712751, fax +44(0)1224 716687, http://www.rowett.ac.uk
mailto:a.travis at abdn.ac.uk, http://bioinformatics.rri.sari.ac.uk/~ajt



More information about the Bio-linux-list mailing list