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 Script Not Excluding Folders

Featured Replies

I have been trying to use ChatGPT to create an unraid user script that backups my files to another unraid server. It won't exclude my folders tho - any idea on how to fix it?

 

#!/bin/bash

# Source and Destination Directories
declare -a SOURCE_DIRS=(
    "/mnt/user/APK"
    "/mnt/user/Computer_Apps"
    "/mnt/user/Documents"
    "/mnt/user/data"
    "/mnt/user/Photos"
    "/mnt/user/ss-recordings"
)
DEST_DIR="/mnt/remotes/192.168.1.12_networkbackup/"

# Folders to Exclude
declare -a EXCLUDE_FOLDERS=(
    "/mnt/user/data/media/movies-4k/"
    "/mnt/user/data/media/tv-4k/"
)

# Rsync Options
RSYNC_OPTIONS="-avz --delete --progress"

# Loop through each source directory
for SOURCE_DIR in "${SOURCE_DIRS[@]}"; do
    # Exclude folders
    EXCLUDE_ARGS=""
    for EXCLUDE_FOLDER in "${EXCLUDE_FOLDERS[@]}"; do
        EXCLUDE_ARGS+=" --exclude=${EXCLUDE_FOLDER}"
    done

    # Run rsync
    rsync ${RSYNC_OPTIONS} ${EXCLUDE_ARGS} "${SOURCE_DIR}" "${DEST_DIR}"
done

 

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.