Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <?php
  2. $cpaneluser = 'user'; // cPanel username
  3. $cpaneluserpass = 'pass'; // cPanel password
  4. $theme = 'paper_lantern'; // Must match current selected cPanel theme ("paper_lantern" in the majority of cases)
  5. $ftp = true; // If it's false the backup will be stored in user's home directory, otherwise it will be uploaded via FTP to some custom location
  6. $ftpserver = 'serverX.web-hosting.com'; // Must be localhost for current server or custom hostname for remote FTP upload
  7. $ftpusername = 'user'; // cPanel/SFTP username. Should be the same as cPanel username for local upload or custom for remote upload
  8. $ftppassword = 'pass'; // cPanel/SFTP password. Should be the same as cPanel password for local upload or custom for remote upload
  9. $ftpport = '21098'; // SFTP port. Should be 21 in most cases.
  10. $ftpdirectory = '/home/user/backups'; // Directory on FTP server to store backups. MUST EXIST BEFORE BACKUP OR BACKUP PROCESS WILL FAIL
  11. // Do not edit below this line
  12. $domain = 'localhost';
  13. $secure = true;
  14. $auth = base64_encode($cpaneluser . ":" . $cpaneluserpass);
  15. if ($secure) {
  16. $url = "ssl://" . $domain;
  17. $port = 2083;
  18. } else {
  19. $url = $domain;
  20. $port = 2082;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement