Wie führe ich eine Datensicherung für alle Dateien, aufgelistet in der crontab

Ich versuche ein backup der crontab-Einträge Struktur und die Dateien unter crontab.

Aber ich bin stecken geblieben mit wie Suche ich Dateien in crontab -l und kopieren Sie die Skripte laufen unter ihm.

Meine Möglichkeiten

Habe ich aufgeführt

crontab -l > test.txt 

cat test.txt 

Aber wie kann ich die Suche der Dateien nach Liste.

Meine Einträge sind wie:

# daily pingback report
30 1 * * * php /var/opx/cron-script/daily-email-reports/pingback_report.php | curl --data-binary @- https://pxc.com/email/send

# --------------------------------------------------------------------------------------------------
# daily jobs 02+ hours
# --------------------------------------------------------------------------------------------------

# daily Failed Device Search
0 2 * * *  /var/opx/cron-script/failed_device_search.sh

# daily Device Not Detected (we are not getting any of these, so commenting out)
# 5 2 * * *  /var/opx/cron-script/device_not_detected.sh

    # daily Failed App Search (we are not getting any of these, so commenting out)
    # 10 2 * * *  /var/opx/cron-script/failed_app_search.sh

    # daily oss event report (uncomment when dev db issue is fixed)
    10 3 * * * /var/opx/cron-script/event-analysis/daily-oss-event-report

    # Copy tomcat logs from s1 and s2 , compress them and move to S3 storage
    #30     21      *       *       *       /var/opx/cron-script/log_backup.sh

Ich möchte zum kopieren von Skripten in diesen Einträgen.

InformationsquelleAutor Akki | 2013-12-03
Schreibe einen Kommentar