title: How do i backup all files listed in crontab
body: <p>I am trying to backup the crontab entries structure and files running under crontab.</p>
  
  <p>But I am stuck with how do i search files in <code>crontab -l</code> and copy the scripts running under it.</p>
  
  <p>My possible ways </p>
  
  <p>I have listed </p>
  
  <pre><code>crontab -l &gt; test.txt 
  
  cat test.txt 
  </code></pre>
  
  <p>But how can I search the files after listing.</p>
  
  <p>My entries are like:</p>
  
  <pre><code># 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
  </code></pre>
  
  <p>I want to copy scripts running in these entries.</p>