...
archive.php can be run manually or you could get it to run regularly by adding a script to launch it from corn cron i.e.
Code Block | ||||
---|---|---|---|---|
| ||||
#!/bin/bash TIMESTAMP=$(date +"%Y-%m-%d-%H:%M:%S") if [ ! -f /rogocron/archive.lock ] then touch /rogocron/archive.lock cd /var/www/html/cli php archive.php -a admin > /rogolog/archive/archive.log.${TIMESTAMP} rm -rf /rogocron/archive.lock fi |
...
Code Block | ||||
---|---|---|---|---|
| ||||
$cfg_archivedb_username = 'rogo_archive'; $cfg_archivedb_passwd = 'a<a passwordpassword>'; $cfg_archivedb_database = 'rogo_archive'; $cfg_archivedb_host = 'database<database hosthost>'; $cfg_archivedb_port = 'database<database portport>'; $cfg_archivedb_charset = 'utf8mb4'; |
...