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? |
wget. no questions asked.
|
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. |