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.

Rsync Backup Notification

Featured Replies

I am trying to setup a script that gives me a notification, for each action, after several rsync backup commands are executed.

 

The commands I am using are like:

 

# Sincronización de la carpeta Fotos
rsync -avh "/mnt/user/Fotos" "/mnt/remotes/192.168.X.X_Backups_Unraid/Backup_UnRaid"
  if [[ $? -eq 0 ]]; then
    /usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Fotos Sincronizada"
  else
    /usr/local/emhttp/webGui/scripts/notify -i warning -s "Operation failed" -d "Error. Carpeta Fotos no Sincronizada"
  fi

# Sincronización de la carpeta Andrea
rsync -avh "/mnt/user/Andrea" "/mnt/remotes/192.168.X.X_Backups_Unraid/Backup_UnRaid"
if [[ $? -eq 0 ]]; then
  /usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Andrea Sincronizada"
else
  /usr/local/emhttp/webGui/scripts/notify -i warning -s "Operation failed" -d "Error. Carpeta Andrea no Sincronizada"
fi

 

The problem is that when running the scrip, it only executes the first loop, and then "stays hung" (namely, it does not run none of the other commands nor shows done button).

 

If I execut the command 

/usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Fotos Sincronizada"

from terminal, the message succesfully apears but the action never finish ("#" does not appear and I can not exit from the command)

 

Can someone help me with it?

 

Thank you

Edited by dellorianes

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.