Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Crontab Befehl

Empfohlene Antworten

Veröffentlicht

Morgen Leute,

folgendes ist zu machen:

erstellen Sie einen Eintrag für eine Crontab, der

bewirkt, dass ein Backup ihres Arbeitsverzeichnisses in ein Archiv-Verzeichnis

einmal wöchentlich durchgeführt wird. Richten Sie crontab so ein, dass dieses Skript regelmäßig ausgeführt wird.

Ich habe "vi crontab -e" ausgeführt und folgende Zeile reingeschrieben:

30 18 * * 1 tar cvf backup.tar /home/rien/workspace/

Skript soll jeden Montag um 18:30 ausgeführt werden und ein Tar-Archive mit dem Namen backup von dem Verzeichnis /workspace/ erstellen.

Frage:

- Ist das so inetwa richtig?

- Wie schreibe ich den Befehl, dass das Skript das Tar-Archive an einen bestimmten Ort speichert?

- Wo muss ich das Crontab speichern, damit es regelmäßig ausgeführt wird?

Wir haben erst vor Kurzem mit Unix angefangen. Bin also noch nicht so erfahren

Ich danke euch schonmal im Vorraus

Bearbeitet von Rien

  • Autor

Ok kompletter Pfad mache ich.

Aber wo muss ich das Crontap speichern?

Und wie lautet der Befehl dafür, dass er das back.tar in einem bestimmt Pfad speicher?

Wenn du wirklich "vi crontab -e" ausgeführt hast wird da garnichts funktionieren. Wenn es hoch kommt hast du jetzt die Datei "crontab" da liegen. Zum editieren der richtigen Crontab reicht ein "crontab -e".

Grüße

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.