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.

Automatischer Datentransfer von Unraid auf Synology

Featured Replies

Hallo zusammen,

ich betreibe einen Unraid Server gemeinsam mit einer Synology Diskstation.

Ich möchte gerne gewisse Ordnerinhalte automatisch auf der Synology sichern.

Meine Synology habe ich als SMB-Share in Unraid eingebunden.

Ich habe mir "User scripts" installiert und versucht das ganze mit einem Script durchzuführen, was aber leider nicht geklappt hat.

Könnt ihr mir sagen, wie man es am besten umsetzen kann?

Viele Dank für eure Hilfe!

Update:
Ich konnte die Dateien mit diesem simplen Command verschieben:

mv /mnt/user/Test/* /mnt/remotes/SYNOLOGY-NAS_my\ files/inbox

Bei diesem Script zeigt er jedoch "No such directory" - warum weiß ich leider nicht.
Kann es mir jemand erklären? Hat es was mit dem Leerzeichen zu tun (my files)?

#!/bin/bash

SRC="/mnt/user/Test/"

DEST="/mnt/remotes/SYNOLOGY-NAS_my\ files/inbox"

# Sicherstellen, dass Synology gemountet ist

# mountpoint -q "$DEST" || exit 1

# Dateien verschieben

rsync -av --remove-source-files "$SRC" "$DEST"

# Leere Ordner im Cache löschen

find "$SRC" -type d -empty -delete

Edited by simon262

  • Community Expert
48 minutes ago, simon262 said:

Ich möchte gerne gewisse Ordnerinhalte automatisch auf der Synology sichern.

Meine Synology habe ich als SMB-Share in Unraid eingebunden.

Ich habe mir "User scripts" installiert und versucht das ganze mit einem Script durchzuführen, was aber leider nicht geklappt hat.

Könnt ihr mir sagen, wie man es am besten umsetzen kann?

Was hat denn nicht geklappt?

Wenn Du nur kopieren willst sollte ein Script mit CP reichen.

Wenn es wirklich synchronisieren soll (auch mit löschen auf dem Ziel) würde ich es mit rsync probieren.

  • Author

Jetzt haben wir uns grad überschnitten, habe grad meinen Post geupdatet mit den Scriptbefehlen...

Edited by simon262

4 hours ago, simon262 said:

DEST="/mnt/remotes/SYNOLOGY-NAS_my\ files/inbox"

du setzt dein Ziel im script in quotes "", probier da dann bitte ohne das \ zur Markierung des Leerzeichens.

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.