Results 1 to 11 of 11
-
03-31-2004, 10:23 AM #1WHT Addict
- Join Date
- Mar 2003
- Posts
- 117
Account backups via Cron Jobs - package the account
Has anyone ran across a way for a client to setup a cron to run a backup and have it FTP somewhere? or run and generate a backup within their account?
Again this is directed to running a cron so they do not have to login to their cpanel.
I was basically looking for something like what
/scripts/pkgacct username
does. It makes a full backup of the accounts (including sql) so the client could upload and run a cron to execute it.
-
01-22-2005, 07:35 PM #2WHT Addict
- Join Date
- Mar 2003
- Posts
- 114
Anyone know the answer to this?? - I am interested in it too.
Thanks
Daniel
-
01-22-2005, 10:41 PM #3Backup Guru
- Join Date
- Feb 2002
- Location
- New York, NY
- Posts
- 4,618
It's simple to run a cron job to back up individual accounts. You can do automatic FTP backups by piping the username and password information to the ftp command, but a simpler method would be to used rsync to perform the backups. You can set up individual cron jobs for each user, and have rsync synchronize the data.
Scott Burns, President
BQ Internet Corporation
Remote Rsync and FTP backup solutions
*** http://www.bqbackup.com/ ***
-
01-23-2005, 06:37 AM #4WHT Addict
- Join Date
- Mar 2003
- Posts
- 114
Thanks - If I did do it the /pkgacct way, is the username and password you are referring to the one for the FTP account ???
The reason I am interested in the pkgacct / restorepkg method, is because I have done it manually before, and needed to restore from a backup - and had no problems doing it this way.
Thanks again,
Daniel
-
04-24-2005, 04:45 AM #5WHT Addict
- Join Date
- Mar 2003
- Posts
- 114
Originally posted by djblamire
Thanks - If I did do it the /pkgacct way, is the username and password you are referring to the one for the FTP account ???
The reason I am interested in the pkgacct / restorepkg method, is because I have done it manually before, and needed to restore from a backup - and had no problems doing it this way.
Thanks again,
Daniel
Thanks
Daniel
-
04-24-2005, 10:35 AM #6Aspiring Evangelist
- Join Date
- Jan 2004
- Posts
- 448
One possible - http://www.totalchoicehosting.com/help/id207.htm
-
04-25-2005, 06:53 AM #7WHT Addict
- Join Date
- Dec 2004
- Posts
- 137
Remember normal users don't have permission to the pkgacct scripts.
CinuSupportPRO.com -Transparent Technical Support for WebhostsLet the PROs handle your support
-
04-25-2005, 01:10 PM #8WHT Addict
- Join Date
- Mar 2003
- Posts
- 114
Originally posted by cinu
Remember normal users don't have permission to the pkgacct scripts.
Cinu
Would it be possible to duplicate that script, but only allow it to pkgacct their account (and give them permissions to do so) ??
Thanks in advance,
Daniel
-
04-25-2005, 01:20 PM #9WHT Addict
- Join Date
- Dec 2004
- Posts
- 137
Yes it is possible to copy the script or give users permission to access the script. But normally the script will pack the user account in the form cpmove-username.tar.gz and will place it in /home or /home2 where the users dont have permission to write. You need to edit this so that the resullt of pkgacct should be placed in the users home directory.
Thanks
CinuSupportPRO.com -Transparent Technical Support for WebhostsLet the PROs handle your support
-
04-25-2005, 01:30 PM #10WHT Addict
- Join Date
- Mar 2003
- Posts
- 114
Originally posted by cinu
Yes it is possible to copy the script or give users permission to access the script. But normally the script will pack the user account in the form cpmove-username.tar.gz and will place it in /home or /home2 where the users dont have permission to write. You need to edit this so that the resullt of pkgacct should be placed in the users home directory.
Thanks
Cinu
How would I give a user permission to this script?
Thanks for your help
Daniel
-
04-25-2005, 10:31 PM #11WHT Addict
- Join Date
- Dec 2004
- Posts
- 137
Hello,
Again there may be lot of problems running this script in user permission even if you copy the script to users home directory and chmod it to user execute permission . The script will try pack mysqldump and you will get a "permission denied". I don't know shell scripting in detail; but only the very basic.
Anyway I don't recommend you this method. Instead the user can use the backup option in cpanel whenever they wish to do so.....
Thanks
CinuSupportPRO.com -Transparent Technical Support for WebhostsLet the PROs handle your support