Ever felt the need to create a backup copy of your website's files or folders? Just like having a spare key, keeping copies of important data before making changes to an existing file or folder ensures peace of mind. WebhostingM's cPanel's File Manager offers a user-friendly way to duplicate files and folders within your website's file structure.
Why Copy Files and Folders?
-
Backup and Redundancy: Creating copies safeguards your website's data in case of accidental deletion, server issues, or unexpected events. Think of it as a digital safety net!
-
Version Control: Duplicating files allows you to experiment with changes on a copy while keeping the original version intact. This is particularly useful for website development and design iterations.
-
Organize and Distribute: Duplicate folders can be used to organize similar files or distribute content to different sections of your website.
Copying Files and Folders in cPanel File Manager
-
Log in to your cPanel interface.
-
Navigate to the "Files" section and click on the "File Manager" icon. This opens a file management interface similar to your computer's file explorer.
-
Locate the file or folder you want to copy. Use the directory structure on the left side of the File Manager to navigate.
-
Select the file or folder you want to copy. Hold down the "Ctrl" key (Windows/Linux) or "Command" key (Mac) to choose multiple files. You can also click and drag to highlight a group of files.
-
Look for the "Copy" option in the top right corner of the File Manager. It might be represented by a copy icon or a text label.
-
Choose the destination for the copy. A pop-up window will appear, asking you to specify the location where you want to save the copied file or folder. You can either browse the directory structure or manually enter the file path.
-
Click "Copy File(s)" to initiate the duplication process. The time it takes will depend on the size and number of files being copied.
Once copied, the duplicate file or folder will appear in the destination directory. You can now manage the copy as needed.
Advanced Tip: Copying Using Command Line
While the File Manager offers a point-and-click approach, cPanel also supports copying files and folders using the command line.
This is beneficial for advanced users who prefer more control over the process.
Here's a table outlining common "cp" (copy) commands:
Command | Description |
---|---|
|
Copies a file, prompting confirmation before overwriting existing files. |
|
Copies the "contact.html" file to "/about/contact-us.html". |
|
Copies all ".php" files to the "public_html/about" directory. |
|
Copies specific files (filename1.txt and filename2.txt) to the "public_html/about" directory. |
|
Copies the "legal" directory and its contents to the "public_html/about" directory (recursive copy). |
|
Copies all files and subdirectories within "public_html/legal" to "public_html/about". |
By effectively duplicating your website's data, you can ensure security, maintain different versions for development, and organize your content with ease.
Remember, a well-managed website is a happy website (and a happy website owner)!
WebHostingM Support
If you encounter any difficulties getting this one, WebHostingM's support team is here to help! You can contact our support team for personalized assistance.