How do you restore multiple cP-move files at once? Print

  • 0

Introduction

cPanel Software does not have a built-in API or commands that will allow you to restore multiple cP-moves files. 

However, you can craft up a custom loop in order to restore all the cP-moves files.

 

Procedure

1. You'd want to group all the cP-moves files all into a single location, then construct a find command to locate all the files. 

 

You should be able to construct a find command with the following manual page:

How to use find command

 

2. After you have construct a find command to locate all the cP-move files, you can set it as a variable by using a FOR loop command with the restorepkg script.

 

Here is our documentation on restorepkg script:

Script: Restorepkg

 

Here is instruction on how to create a FOR loop command (Specifically Section 7.2):

How to use For loop

 

Note: If you do not have the experience in constructing the For loop command, it is best to reach out to a qualified system administrator to create a well-crafted for loop on your behalf.  If you do not have one, you can also visit the link below:

System Administration Service


Was this answer helpful?
Back

Send Message