View Full Version : download site
05-22-2012, 01:39 PM
What's the quickest and simplest way to zip and download the entire www directory?
05-22-2012, 01:50 PM
Log into the command line with an ssh client and run:
zip -r www www
Now you have a 'www.zip' file in your xdom directory which you can download with an sftp client.
05-22-2012, 02:01 PM
How do I log into the command line from a Mac?
See if this helps.
05-22-2012, 02:13 PM
Thank you both!
05-22-2012, 02:28 PM
got an error: File size limit exceeded
05-22-2012, 02:55 PM
That means that your web site is too big to be packed into a single zip file.
However, since you are on a Mac which is a type of UNIX system you should have rsync available. If you use rsync you can download the files without packing them into a zip file. Plus, when you decide to download it again later rsync will only download what has changed. In your terminal window instead of using ssh to connect to your domain name try something like this:
rsync -vaiz --exclude=/www/stats username@domainname:../www ./
When that finishes you will have a complete copy of your www directory on your system. If you run that command again in the future your local copy will be updated by downloading only the newly created files and the changed parts of files that have been modified.
btw, rsync is also using ssh for the communication.
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.