10 0 * * * /usr/bin/find /var/lib/freeswitch/recordings/*/archive -type f -mtime +180 -exec rm -rf {} \;
15 0 * * * /usr/bin/sudo -u postgres psql fusionpbx -c "DELETE FROM v_xml_cdr WHERE to_timestamp(start_epoch) < NOW() - INTERVAL '365 days';" > /dev/null
When I input psql then it ask password. I typing password find in file /etc/fusionpbx/config.php then not accep. why? help mePersonally I use these in a cron job which can be adapted to suit:
Code:10 0 * * * /usr/bin/find /var/lib/freeswitch/recordings/*/archive -type f -mtime +180 -exec rm -rf {} \; 15 0 * * * /usr/bin/sudo -u postgres psql fusionpbx -c "DELETE FROM v_xml_cdr WHERE to_timestamp(start_epoch) < NOW() - INTERVAL '365 days';" > /dev/null
So the first deletes recordings older than six months, the second cdrs over a year.
Have you installed from the standard installer script? There should be no need for a password using the above.