This script will backup create a tarball of a single directory and then upload it to a FTP server. This script was created in order to backup pfSense squid logs.
- Upload the script to: /etc
- Make it executable: chmod +x /etc/backup_pfsense_logs.sh
- Download and install the pfSense Cron package
- Create a cron job to run it as root.
Minute: 0
Hour: *
Mday: *
Month: *
Wday: *
Who: root
Command: /etc/backup_pfsense_logs.sh