moving sites

Discussion in 'Server Operation' started by alexillsley, Mar 5, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer

    Hi,
    Im moving moving my site from my paid to hosting service to my own server now. Though currently i do not have a good copy of my files on my paid service anywhere as i edit files and upload files from different folder on my hard disk so its all messy and the only good copy is on my web hosting server im paying for.

    I currently have got FTP and shell access to this server.

    I tryed putting all my files on my paid hosting service into a tar file through shell though for some reason it had not put all the files in the tar. I read somewhere on the internet that you should make a text file with every file in it and then run tar command with the file list, so every file gets put in the tar. But it did not explain how to do this? It said with shell access you can create a list in a text file automatically. How can i do this??
    Thanks,
    alex
     
    Last edited: Mar 5, 2007
  2. falko

    falko Super Moderator

    You can make a tar.gz file of a directory (and everything that's in it) like this:
    Code:
    tar -pczf directory.tar.gz directory/
     
  3. alexillsley

    alexillsley ISPConfig Developer

    thanks hopfully that will work, i did the same last time though with differnt parmaters i think it was like xcf or something
     
  4. martinfst

    martinfst HowtoForge Supporter

    the c stands for create, the x for extract. See
    Code:
    man tar
    for a full list and explanation of all options.
     

Share This Page