FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How do I copy directories in DirectAdmin





mike_phi
Hi there, I finally manged to upload my website, I how ever have uploaded it with an extra directory depth, I would like to copy all files and directories contained in a sub directory to the public_html.

eg
current problematic situation

<domains>
|
<mydomain name>
|
<public_html>
|
<unnecesary sub directory>
|
<mysite index page and necesarry directories>


desired situation

<domains>
|
<mydomain name>
|
<public_html>
|
<mysite index page and necesarry directories>

how can I copy all the "<mysite index page and necesarry directories>
" up one directory.




measures
I have tried using the compresion supplied with directadmin but when I attempt to extract the archive it creates the same directory path with the repeated directories concatenated to the origional directory

e.g.
Step 1
I archive this

<domains>
|
<mydomain name>
|
<public_html>
|
<unnecesary sub directory>
|
<target archive directory> (archive file.gz.tar)

Step 2
I then copy the archive to

<domains>
|
<mydomain name>
|
<public_html> (archive file.gz.tar)

step3

I then extract the archive in public_html directory

but the result is


<domains>
|
<mydomain name>
|
< public_html>
|
<domains>
|
<mydomain name>
|
< public_html>
|
<unnecesary sub directory>
|
<target archive directory extracted here>


I would like it to be

<domains>
|
<mydomain name>
|
< public_html>
|
<target archive directory extracted here>

Hence getting rid of my problem of having the "<unnecesary sub directory>" as listed in the first diagram Sad

Another question is there any other method I can just copy or move these files and directories trapped in this sub directory to the desired location, I was considering ftp again but that took too long in the first place and is not a elagant efficient solution please please help

cheers Mic
Loathing in Fear
Ok, its quite easy if you know how to do it Smile

1. Select the files you want to have copied / moved to another (sub)directory.
2. Press: "Add to Clipboard"
3. Go to the (sub)directory where you want to have your files moved to.
4. Press: "Move Clipboard files here."

And the files should have been moved now Smile

I hope this helps Wink

--------------------------
Grtz Loathing Wink
mike_phi
Directories are not supported

here is the message I get when I attempt to copy a directory

Quote:
Result of file copy



Details

Directory copying is not currently supported



and to copy this file by file and recreate the directories will take me forever as it is a PHPnuke site and contains loads of files and directories I just want to move the entire installation one directory back

thats why I took the option of an archive so I could jusd move one file and extract it but as you can see in the above listed post this is not really posible or I have missed something while archiving.

Cheers Mic Sad
mike_phi
Hi All after doing some research on DA (Direct Admin) I learned that a directory copy is not posible.

I guess the only way to do it would be to have a shell login and manipulate the files using Linux/Unix commands but I dont think we have the option of doing a rlogin, I could be wrong so please if anybody has any other info please reply.

At the momment the only solution I have come up with with regard to directory copying is by means of archiving the dirctory then moving the archive file.

cheers and thanx for the help Mic
Bondings
Yes indeed DirectAdmin doesn't support directory copying at the moment. Maybe in the future it will. Wink
saiyeek
Come on I have an solution for you. If you like web based thingy
GO tohttp://www.net2ftp.com
Login with your ftp username and password with ftp.frih.net as your ftp host.
After logging in you can copy paste directories files everything.

But there is daily transfer limit. like 10 MB or something. Its fast and use ful if your directory is less than 10 MB.
Related topics
The worlds shortest and laziest Mambo tutorial.
password protected directories with directadmin?
Fix for deleting files/directories owned by apache
DirectAdmin Problem
Can I copy/upload entire directories in a frihost account
PHPNuke installation problem
Installing Mambo (PLEASE ASSIST!!! IF someone please can!)
Virtual directories? I have a need
File upload problem :'(
Folder content copy with file renaming software
Earn up to 1000FRIH$ to submit my sites to free directories
Password Protected Directories
How do I download my directories and files
Directadmin folder/file creating permission for Joomla
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.