{"id":11835,"date":"2024-03-23T15:37:56","date_gmt":"2024-03-23T10:07:56","guid":{"rendered":"https:\/\/www.skynats.com\/?p=11835"},"modified":"2025-01-08T20:36:54","modified_gmt":"2025-01-08T15:06:54","slug":"setting-up-additional-backup-destination-to-a-custom-drive-in-a-cpanel-server","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/setting-up-additional-backup-destination-to-a-custom-drive-in-a-cpanel-server\/","title":{"rendered":"Setting Up Additional Backup Destination to a Custom Drive in a cPanel server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have mounted a new disk \/backup2 to the backup server 10.xxx.xxx.110 in order store the backups from the live server 103.xxx.xxx.120 which is a cPanel server.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The backups will be currently kept on a functional server. To move the backups to the backup server&#8217;s \/backup2 mount, we need to configure the backups.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s look at how to set up the backup configuration:<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"h-setting-up-backup-configuration\"><strong>Setting up Backup Configuration :<\/strong><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, ensure that the disk is correctly mounted in the backup server ;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#df -h<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"635\" height=\"201\" sizes=\"(max-width: 635px) 100vw, 635px\" src=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/03\/backup-configuration.png\" alt=\"Backup configuration\" class=\"wp-image-11837\" srcset=\"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/03\/backup-configuration.png 635w, https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2024\/03\/backup-configuration-300x95.png 300w\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The server has correctly mounted the drive\/backup2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can now set up the backup to the \/backup2 drive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, create a new user called &#8220;backup_user&#8221; with the home directory set to \/backup2\/. You can use the useradd command with the -m option to create the user and automatically generate the home directory. Here&#8217;s how you can do it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#useradd -m -d \/backup2\/backup_user backup_user.\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Running this command will create the user &#8220;backup_user&#8221;, with the home directory set to \/backup2\/backup_user.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"h-now-we-can-configure-additional-backup-destination-in-live-server-s-whm\"><strong>Now we can configure additional backup destination in live server\u2019s WHM:<\/strong><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the WHM dashboard and type Backup Configuration into the search field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An option for multiple backup destinations should be available in the Backup Configuration interface. Click on Create New Destination.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the below information in the form that appears ;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Backup Destination Type<\/strong>: Select the &#8220;custom&#8221; type<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Destination Name<\/strong>: Enter the name as you wish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Backup Directory<\/strong>: Enter the path to the backup destination. Here I\u2019m using the directory name as \u2018backups\u2019. The backups will be stored in \/backup2\/backup_user\/backups.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remote Host<\/strong>: Enter the backup server\u2019s ip address. (for me, it\u2019s 10.xxx.xxx.110)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Port<\/strong>: The ssh port that the system uses to communicate with the remote server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remote account username<\/strong>: Provide the remote user account name. Here i\u2019m using the user \u2018backup_user\u2019.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Authentication Type<\/strong>: The authentication type which the system use to connect to remote server.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Timeout<\/strong>: The number of seconds that the system will wait for a response from the remote server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Save Configuration<\/strong>: After filling out the necessary details, click on the &#8220;Save&#8221; or &#8220;Add Destination&#8221; button to save your configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After saving, cPanel may undergo a verification step to ensure access to the specified backup destination. Upon completion of the validation process, the backup can be enabled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following these steps, you will be able to configure that the  additional backup destination to a custom drive in cPanel<a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">.<\/a> However, backups will be stored in the directory associated with the user you&#8217;ve created, ensuring their proper storage and accessibility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our&nbsp;<a href=\"https:\/\/www.skynats.com\/blog\/\">Support Team<\/a>&nbsp;is available to help if you encounter any issues or errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have mounted a new disk \/backup2 to the backup server 10.xxx.xxx.110 in order store the backups from the live server 103.xxx.xxx.120 which is a cPanel server.&nbsp; The backups will be currently kept on a functional server. To move the backups to the backup server&#8217;s \/backup2 mount, we need to configure the backups. Let&#8217;s look [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[400,5,764,416,103,68],"tags":[417,18],"class_list":["post-11835","post","type-post","status-publish","format-standard","hentry","category-backup-configuration","category-blog","category-cpanel","category-cpanel-server-management","category-cpanel-server-support","category-server-management","tag-backup-configuration","tag-cpanel"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/11835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=11835"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/11835\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=11835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=11835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=11835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}