In my job I often have to move websites from one server to another.
Till now I zipped all the files from origin's server httpdocs to a backup.zip and downloaded it on new server with wget old_domain.com/backup.zip
, after the downloaded I extracted the zip file.
Is there a way, to wget all files from old_domain.com?
Something like wget example.com/*
did not work.
I'm always have the root access to the origin's server.
It would be really great, when I can't avoid the .zip file, because the backups are about 50GB and packing & extracting take more than a hour.
wget
is useful for mirroring someone else’s website but it cannot transfer any server-side scripts and files that no page links to. If you are the maintainer of the origin server, you should prefer FTP, SCP or similar methods.