so I have my own dedi server and have root access. my db's are in /var/lib/mysql.
I need to copy one database named cpmx51 over to /home/cpmx51/backup as name:
cpmx51_bk1180
where 1 = 2011
where 180 = 180th day of the year for example.
normally I just run php files as php -f /path/to/php/file.php
but here, any one of my accounts cannot "read" the file/database since owner and group = mysql. All I really want to do is use php to do:
cp -r -p /var/lib/mysql/cpmx51 /home/cpmx51/backups/cpmx51_bk1180;
any suggestions on how to surmount the permissions issues? I'm open to other approaches.
Thanks,
Sam