LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mirroring a site (https://www.linuxquestions.org/questions/linux-software-2/mirroring-a-site-24279/)

mace 06-25-2002 07:27 AM

mirroring a site
 
never done any mirroring before. what would you suggest for mirroring a site.

are there any 'click-n-drewl' mirroring programs you'd recommend?

acid_kewpie 06-25-2002 08:18 AM

wget. no questions asked.

dacoto 07-05-2002 05:17 PM

here is a script I have used, create a file in any editor (i use vi) and type in the following replacing with your user, password and domain info.
------------------------------------------
#!/bin/sh
lftp user:password@yourdomain <<EOF

mirror -e -n serverdirectory yourdirectory
bye
EOF
------------------------------------------
the -e -n will only get changed files and remove files that are no longer on the server

save it as yourfilename, chmod 755 yourfilename

then type the filename in a terminal and away you go....

I placed mine in a cron to run every day as to have a current offsite backup......that i dont have to run myself it runs on its own and uses very very little resources.....


All times are GMT -5. The time now is 09:52 AM.