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.

rsnapshot cron

Featured Replies

Hallo Community.

Wenn ich in meinem Unraid Testsystem alles halbwags hinbekommen, möchte ich weg von Proxmox und eben hin zu Unraid. Ich habe aber bei manchen Apps noch so meine Probleme.

Um meine Backups zu machen, möchte ich die App rsnapshot verwenden. Die rsnapshot configtest gibt ein ok aus. Im Container in der /config/crontabs/root habe ich folgende Einträge:

# rsnapshot examples
0 6 * * * root /usr/bin/rsnapshot daily
0 6 * * 1 root /usr/bin/rsnapshot weekly
0 6 1 * * root /usr/bin/rsnapshot monthly

Der CronJob startet aber nicht. Bei manueller Ausführung von

/usr/bin/rsnapshot daily

wird das Backup aber wie gewünscht ausgeführt.

 

Muss noch etwas Eingestellt werden damit Cron funktioniert?

Danke für eure Hilfe.

 

  • Author
13 hours ago, cz13 said:

Hallo!

Die rsnapshot.conf müsste passen.

config_version  1.2
snapshot_root   /DatenBackupIntern
no_create_root  1
#
cmd_cp          /bin/cp
cmd_rm          /bin/rm
cmd_rsync       /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger      /usr/bin/logger
cmd_du          /usr/bin/du
#
retain  daily   7
retain  weekly  4
retain  monthly 6
#
verbose         4
loglevel        4
#
logfile /config/rsnapshot.log
lockfile        /var/run/rsnapshot.pid
#
link_dest       1
#
backup  /DatenPlatte/   DatenBackupIntern/

Die funktioniert ja auch wenn ich rsnapshot per Hand ausführe. In der rsnapshot.log steht nichts, da sie ja nicht ausgeführt wird. Ich glaube es liegt an der crontab.

Ich hab mir ein kleines Skript geschrieben, bei dem die Ausgabe von date alle 5 Sekunden in eine Datei hineingeschrieben wird. Dieses Skript wird auch nicht ausgeführt. 

Gibt es eine Datei bei der cronjobs geloggt werden?

 

EDIT: 

Was mir auch noch aufgefallen ist, beim Container steht bei "PORT ZUWEISUNGEN" nichts drinnen..

 

rsnapshot.png

Edited by honigundich

1 hour ago, honigundich said:

Was mir auch noch aufgefallen ist, beim Container steht bei "PORT ZUWEISUNGEN" nichts drinnen..

 

das hat nichts zu heißen, hängt einfach daran ob der maintainer einen expose eingefügt hat oder nicht.

 

On 9/24/2023 at 8:10 PM, honigundich said:

Der CronJob startet aber nicht. Bei manueller Ausführung von

/usr/bin/rsnapshot daily

wird das Backup aber wie gewünscht ausgeführt.

dann nutze halt user scripts solange und führ deinen command von unraid aus ;)

  • Author
18 minutes ago, alturismo said:

dann nutze halt user scripts solange und führ deinen command von unraid aus ;)

hab ich gerade eingerichtet. Danke.

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.