Backup using Cron and a backup script fails on Security Token
Hello together,
I have for my personal sites a small shared hosting and no access to the WHM Backup Config. But I still want to have my personal Backup files on a seperate Backup VPS Server.
The VPS was easily configured and is right now used with SFTP Access (Maybe also already a Problem, but couldn't figure that out so far, as i would plainly install vsftpd and i would be good to go.
I have created on for my Accounts a Cronjob as seen below
0 0 * * 0 php -f /home/ACCOUNT/public_html/backup/backup.php
The Path i was given by my Hoster as i had asked him directly the ecact Path i would need to use in order to get the script running.
where i use the Script i have created using the Guide here:
/http://www.ericzhang.me/howto-cpanel-automatic-backups/
For testing purpose i had ran the Cron every 2 minutes and send the result by mail to see if it was successful..... Well, it was not.
Properbly it is the Security Token (cpsess) that gets generated each time you login. Is there any other Script that would help me here, because i believe rewriting this one is for me way out of my possibilities as I have not the sligtest idea of it, I do not even understand how it does what it was supposed to do ;) Help with that matter would be highly welcome!
For testing purpose i had ran the Cron every 2 minutes and send the result by mail to see if it was successful..... Well, it was not.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
HTTP/1.1 401 Access Denied
Set-Cookie: cprelogin=no; HttpOnly; path=/; port=2083; secure
Set-Cookie: cpsession=%3aO_zJdMMvTcG3s2w[.Shortened.]8a2949637881e80; HttpOnly; path=/; port=2083; secure
Server: cpsrvd/11.46.2.0
Content-type: text/html; charset="utf-8"
Connection: close
Date: Fri, 16 Jan 2015 05:02:02 GMT
Content-Length: 21107
cPanel Login
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Properbly it is the Security Token (cpsess) that gets generated each time you login. Is there any other Script that would help me here, because i believe rewriting this one is for me way out of my possibilities as I have not the sligtest idea of it, I do not even understand how it does what it was supposed to do ;) Help with that matter would be highly welcome!
-
Hello :) You may find the following thread helpful, as there's discussion of a similar topic with links to potential solutions: Backing Up cPanel Accounts Thank you. 0 -
Wow THANKS Michael, had searched here already, but couldn't find any solution. So properbly this one here can closed if there really is a solution, then i do not need to mess here with a non working script around ;) 0
Please sign in to leave a comment.
Comments
2 comments