Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with a "simple" cron job

Featured Replies

I tried setting a backup cron job, but it's not working.

 

I'm using two files:

  • a cron file (backup.cron), to run everyday, at 10:45 AM
  • and a script (backup.sh) file to compress everything into a Dropbox monitored folder, this script file works every time I run it manually

/boot/config/plugins/dynamix/backup.cron

45 10 * * * /bin/bash /boot/config/plugins/dynamix/backup.sh

 

/boot/config/plugins/dynamix/backup.sh

#!/bin/bash
#Purpose = Backup of Important Data
#Created on 14-5-2016
#Author = Marcio Matielo
#Version 1.0
#START

# Data do Backup
TIME=`date +%Y-%m-%d--%H-%M`

# Nome do arquivo
FILENAME=backup-$TIME.tar.gz

# Arquivos a serem salvos
SRCDIR=/boot

# Onde será salvo o backup
DESDIR=/mnt/user/Cloud/Dropbox/unRAID/boot

tar -cpzf $DESDIR/$FILENAME $SRCDIR

#END

 

This is what unRAID is sending me, at 09:11 AM, via e-mail

/bin/sh: /boot/config/plugins/dynamix: Is a directory

  • Community Expert

Probably a typo, but you say the script is

/boot/config/plugins/backup.sh

...

but the cron is

/boot/config/plugins/dynamix/backup.cron

45 10 * * * /bin/bash /boot/config/plugins/dynamix/backup.sh

If so then the cron has the wrong path to the script.
  • Author

Probably a typo...

 

Yes, it was a typo, sorry... both files are at the same directory: /boot/config/plugins/dynamix/

 

root@Savannah:/boot/config/plugins/dynamix# ls
backup.cron*                dynamix.cfg*   parity-check.cron*  users/
backup.sh*                  monitor.cron*  plugin-check.cron*
docker-update.cron*         monitor.ini*   ssd-trim.cron*
dynamix-2016.04.02.tar.gz*  mover.cron*    status-check.cron*
root@Savannah:/boot/config/plugins/dynamix#

 

If so then the cron has the wrong path to the script.

 

Considering it's a typo, is the path really wrong?

Did you solved?

 

Gus

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.