Skip to content

You can use this script for back up all accounts in your cpanel server and you don't need any cpanel license for do that

Notifications You must be signed in to change notification settings

momen707/script-for-back-up-for-cpanel-account-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

script-for-back-up-for-cpanel-account-

Hello

you can use our script for backup any account on cpanel even if your license is expired it doesn't matter you can backup and move this back to another server

to use this script you have Two cases

first cases

if you want to move this backup to another server

use this commandline

backup_update.sh your_url your_email_address your_file_path_where_will_you_save_your_backup your_username_at_cpanel your_storage_ip your_server_username

example :

backup_update.sh example.com example@example.com /home/cpmove-$i.tar.gz /home/username_example/public_html/example/ username_example 127.0.0.1 example_server username

note : you should use ssh keys in case you want to move this backup to another storage

The second case

if you don't want to move this backup to another server

use this commandline

backup_update.sh your_url your_email_address your_file_path_where_will_you_save_your_backup your_username_at_cpanel

example :

backup_update.sh example.com example@example.com /home/cpmove-$i.tar.gz /home/username_example/public_html/example/ username_example

please note :

you have should to install ssmtp with right config

and if you have one or more than account you need to backup it you can do that but it is hard-coded

you have to edite line 18 in backup_update.sh file and add all user do you need in this

declare -a usernamex=( user1 user2 )

thanks

About

You can use this script for back up all accounts in your cpanel server and you don't need any cpanel license for do that

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages