Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Scp config via cron not working

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 833 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      ljorgensen
      last edited by

      Hi,

      I have installed the cron package and via that entered this into /etc/crontab:

      0      4      *      *      *      root    /usr/bin/scp /cf/conf/config.xml pfsense-backup@syslog-01.kb.dk:backups/config-hostname-date +%Y%m%d.xml

      (syslog-01.kb.dk is our logging and configuration backup server). root's id_rsa.pub is in syslog-01.kb.dk:/home/pfsense-backup/.ssh/authorized_keys and that file is chmod 600.

      When I run it by hand it works fine.

      It doesn't appear to get executed by cron at all. What am I doing wrong?

      Lars

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.