Hello,
I’m new here but I’m in need of some help on migrating a fairly large (11GB) website as Cpanel as a tar.gz file. I’m not able to migrate through the virtaulmin panel as it’s too large. After doing research I understood that the best way to do this is use “scp” in linux SSH using putty. After using the below script, it goes through the process and completes, but after going back into virtualmin it’s not created.
Am I using the right approach below or is there a better and faster way on migrating a large site over?
Yeah, if you have a large backup file, scp’ing that backup to your Virtualmin server can help.
After that, you’d log into Virtualmin, and click Add Servers -> Migrate Virtual Server, and point that towards the backup that you copied to your server.
Eric,
Correct…that’s how I’m importing into the virtual server using , but when I go into migrate it over with virtualmin, I’m not seeing that file that was supposively transferred over using using that command in putty.
Oh I see, you’re not seeing the file that you copied over.
Well, looking deeper at the location you copied it to – there isn’t actually a /public_html/ folder on the server by default. If you didn’t create that directory, that may be the problem you’re having.
What you might try instead is to copy it to /root/, which would already exist.
Eric,
I first created the server to ensure to have the password to use in putty…while the server was created, it created all necessary file and folders. The public_html was one of that was created but for some reason it’s not being transferred over into that folder when running that command.
I first went into the home directory and then into the folder where the tar.gz file is located, ran the command and it completes, but when I go and try and migrate it over, that file isn’t there.
It completes with a 100% and no errors, but I find it strange that it’s not there. urrhh
I believe I had already tried the root in the end which is why I tried changing it to the public_html folder. I’ll try again…
We moved the tar.gz file over to the actual vritualmin server created and into the root. previously it was in a different server and in a public_html folder and not in the server wanting to migrate over,
Now selected part of the migration step, so we’ll see if it works. large file so might take a while to migrate over.
Currently there is only one server running on that dedicated server… I believe it’s crashing because I made the entire backup of the server directory, and not just SQL, home etc…
how about create cpanel backup exclude home dir and and do transfer of home dir using rsync, the same for mail messages.
or via cpanel backups/access and using “exclude file” in home dir to include biggest folder for exclude ? and do rsync for that folder?
Skipping Files and Accounts
You may wish to skip files or certain accounts. To skip files, create a cpbackup-exclude.conf file in the account root and simply list (you can use regular expressions) the files that you don’t want to back up. If you want to globally skip certain files, you can edit /etc/cpbackup-exclude.conf (which already contains a list of skipped files) to be excluded from all cPanel backups created. To exclude users from backups, create /etc/cpbackup-userskip.conf and list the users you don’t want to back up.