#1  
Old 23rd December 2007, 01:34
unsichtbare unsichtbare is offline
Senior Member
 
Join Date: Sep 2007
Posts: 111
Thanks: 18
Thanked 7 Times in 6 Posts
Default moving files simple question

I feel silly for asking this, but how would I move all the files and folders from one folder into another folder?

I am migrating from a Fedora/Plesk server to a Ubuntu (W/ISP Config) and the public html folders are called httpdocs and web respectively. I have a .tgz file which, when untared and unzipped on the new server will create httpdocs. I need to move the contents of httpdocs (files and folders) into web?

-J
Reply With Quote
Sponsored Links
  #2  
Old 23rd December 2007, 02:22
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Post Try this

Go to the httpdocs folder on your Fedora/Plesk box and type this:
Code:
 
tar czvf mydocs.tgz *
That will create a compressed tar archive containing all of your files that are in httpdocs

Copy mydocs.tgz over to the web folder on your Ubuntu box.
Go to the web folder and type the following to extract your files:
Code:
 
tar xzvf mydocs.tgz
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography
Reply With Quote
  #3  
Old 23rd December 2007, 02:32
wpwood3 wpwood3 is offline
Senior Member
 
Join Date: Oct 2007
Location: Atlanta, GA USA
Posts: 197
Thanks: 21
Thanked 31 Times in 21 Posts
Default If you already have extracted httpdocs

I just reread your question...

It sounds like you have already created httpdocs.tgz.
If you copy that file into the web folder and unzip it you will have a httpdocs folder inside of the web folder.
Something like
/var/www/web1/web/httpdocs
Go to the httpdocs folder and do the following to move the contents to the web folder:
Code:
 
mv * ../
Then you can delete the httpdocs folder

----------------------------------------------

If you have already extracted httpdocs inside web1 and not web then you have to do something a little different. Here are 2 ways to do it:

1) You could simply delete the web folder and rename the httpdocs folder to web.

OR

2) Go to the httpdocs folder and type the following:
Code:
mv * /var/www/web1/web
Be sure to change "web1" above to whatever is correct for your situation.
__________________
CentOS 5.4 64bit (the Perfect Setup)
ISPConfig 2.2.40
WP3 Photography

Last edited by wpwood3; 23rd December 2007 at 02:43.
Reply With Quote
The Following User Says Thank You to wpwood3 For This Useful Post:
unsichtbare (23rd December 2007)
  #4  
Old 23rd December 2007, 04:21
unsichtbare unsichtbare is offline
Senior Member
 
Join Date: Sep 2007
Posts: 111
Thanks: 18
Thanked 7 Times in 6 Posts
 
Default

Exactally the info I was looking for, thanks! *, too simple!

-J
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a simple question on sub-domain forwarding... I think... dimas Installation/Configuration 11 4th August 2007 11:38
Simple subdomain question Check General 1 29th June 2007 16:44
perfect_setup_fedora_core_5 -- simple ftp question cannon303 HOWTO-Related Questions 3 30th January 2007 12:40
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53
Simple question... I think - re: multiple domains. lidocayne Installation/Configuration 1 17th July 2006 11:53


All times are GMT +2. The time now is 19:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.