Manually backup users

Becksteen

New member
Joined
Feb 28, 2012
Messages
3
Hi there,

As a reseller, I want to use my own SFTP server at home to backup the users' files and databases. My hosting provider disabled the feature to backup via a cron job in DirectAdmin itself. So I would like to write a PHP script myself that creates a tar ball of every user, including their files and databases –*just like the built in backup feature.

Now, here is my question: How can I access the user accounts from a PHP script running under the reseller account? Is that possible? If not, what are the alternatives?

Many thanks in advance for your help!
 
Hello,

I guess you should ask your hosting provider. As if open_basedir is enabled, you probably won't access homedirs with PHP script.
You might want to try to use CMD_API_SITE_BACKUP for this... but your customers should have enough free space for backups.
 
Thank you for your reply!

You're correct, I can't access homedirs with a PHP script. But can I choose a destination with CMD_API_SITE_BACKUP? I really want to backup those user accounts...Because when the backups are created and stored on the user account itself, it'll take a lot of disk space and it's not very practical.
 
I'd rather say "no". You can not. You should really sort it with your hosting company or find another reseller, or even order a VPS for your needs and hire somebody to maintain your server (some of us here are ready to give you a commerce service).
 
Back
Top