Restore folder from all websites trash
Hello,
My question is how can I restore one folder from .trash of all websites?
For example, I want to restore "abc" folder from all website .trash folder.
Regards,
-
From the "File Manager" you can select to see the hidden folders, then enter the ".trash" and finally move the folder to its place. Have you had a problem with that? This folder is hosted outside of public_html per user. 0 -
Hello, In cPanel, under "File Manager", you should see a "View Trash" button on the toolbar. You can use this option to restore contents that were previously deleted through File Manager: File Manager - Version 66 Documentation - cPanel Documentation Thank you. 0 -
This only restore folder from one website. Suppose, I have 100+ websites, it is difficult to go to each website file manager and restore it. Any other command which can run to restore for all website? 0 -
Hello, There's no simple command to use for all accounts, but you could make use of the following cPanel API 1 functions: cPanel API 1 Functions - Fileman::restorefile - Software Development Kit - cPanel Documentation EX: cpapi1 --user=username Fileman restorefile 123
The above command restored the "123" directory that was previously deleted via File Manager for the "username" cPanel account. Thank you.0
Please sign in to leave a comment.
Comments
4 comments