New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
looks like the installer doesn't work with debian (7):
E: Unable to locate package pdo-mysql
breaks the whole installation as it is not installing the packages
Fixed.
I'm sure you can work something out.
The API allows for a ftp/scp transfer but not needed.
The backup is saved locally in a directory chosen by the admin.
So in theory you could pick up the backup directory.
Initiate a backup using API and get it from that directory.
Yes its possible but a pain in the ass, plus the way mysql is set on plesk makes it even more problematic.
exact error i got
cant seem to get mailgun to work on the script
How? HTTP? Keep in mind it's for single cPanel accounts and the script doesn't get SSH access to the cPanel server.
SMTP?
@PetaByet Having issues with Proxmox,
Unknown option: snapshot
it's because pve-manager has it's own vzdump and snapshot doesn't work without-mode snapshot
Does the command for Proxmox look like
vzdump -mode snapshot --compress --dumpdir /somewhere 1234
?@petabyet yup dont think its an issue with your script tbh ill work it out... would be nice to see some sort of progress bar with a speed meter when you initiate a backup from the web interface
Took a second look at the available API and it sure is lacking at this moment. Like the Backup API, you can list but not start a backup....
Here's an idea that might get you in the right direction,
Use the FileMan API (this is a local API only so there need to be a php file saved somewhere on the cPanel server) to zip all files in a random temp directory. then the backupserver can download the zipped file when its completed.
https://documentation.cpanel.net/display/SDK/cPanel+API+2+-+Fileman#cPanelAPI2-Fileman-Fileman::fileop
Database backups done in the same file...
That's it.
Will give this a shot sometime! Looks amazing!
https://github.com/PetaByet/cdp/blob/master/includes/backuprestore.php#L79
Are these getting filtered somewhere in the code?
CDP.me beta 1.6 has been released.
https://github.com/PetaByet/cdp/releases/tag/beta-1.6
This has been addressed.
Got the cPanel backups sorted with the API's. I could't find a good way to download backups other than FTP, so the script creates a temporary FTP account to get the backup. There is no auto backup restores for cPanel for now.
Will have a look at this
I'm hoping to have the first stable release later this week, and looking forward for some black friday / cyber monday storage offers for CDP . I also welcome web hosts to test CDP and use it in production later on.
@petabyte the Proxmox stuff still doesn't work. You need to specify the compress method.
See the gzip below
vzdump -mode snapshot -compress gzip -dumpdir /back 101
@petabyte I edited the command to include gzip but it still failed.
http://pastebin.com/agxr16ib
@rmlhhd Seems like it's a proxmox-specific issue. I'll have it looked at in a moment.
i get this in on the start page over the (non working) "Last 10 Backup logs":
Warning: array_reverse() expects parameter 1 to be array, null given in /var/www/includes/home.php on line 116
@PetaByet is it possible to restore the backup to another server (ip), without downloading it?
@rmlhhd Please download the latest cron.php and re-try, it should work. It seems like Proxmox uses
vzrestore
instead ofvzdump --restore
for backup restores. I'll get this added in the next release.Make sure includes/db-backuplog.json is a valid json file and is readable. An valid one with no logs should look like this.
Coming in the next release .
You are the King!
There a plan for cPanel ?
@PetaByet just wondering where in your project plan is the addition of the 2 factor authorization, I know its 2nd on your To-do-list does that mean its coming soon? This is a good tool that shows great promise but its slightly insecure at the moment without it, unless you run it via a SSH tunnel.
Really shows promise and will save a lot of headache compared to Bacula / Rsync.
@PetaByet: consider adding a donation button somewhere on the cdp.me web page, I tried finding one, but came up empty handed.
Maybe I'm just blind? ;-)
The script has cPanel backups
I'm pretty sure I'll be adding 2fo in one of the stable releases, no ETA though. What kind of 2 factor auth do you want? Google Authenticator, SMS, email, others?
There isn't one yet, but you can PM me for donations.
Google Authenticator, and although never built a site using it myself if its like most of Googles stuff it should be easy it integrate in.
Edit: Just checked and does seem fairly straight forward to do.
If you made Yubikey authentication, that'd be fun PAM would do fine though.
maybe some google auth would be a good idea?
Why not? I should have it ready in the next release.