HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 19. FIRST WEBSITE 212


19.7.3 Downloading (Backing Up)


It is good to keep a copy of your website right on your personal computer,
in case anything bad happens to your webhost. This is called keeping a
backup.


What could happen?


Your webhost could go out of business.


Your website could be hacked by a bad guy, and your content could be
deleted or defaced.


It’s just a good idea to keep a backup. Once your website begins to have
real value to you, make sure you have a copy of it.


Normally when we download, we are making a back-up copy of something
that has already been published on the web.


19.7.4 Incremental Backup: Rsync


Rsync is an amazing program that uses an algorithm invented by Andrew
Tridgell, an Australian Ph.D. student, around 1999. It has since become a
very popular way to back up and publish.


The idea of incremental copying is based on the hope that the source copy
and the target copy are already very similar. Therefore, all that remains is
to find the differences and make corrections.


http://en.wikipedia.org/wiki/Rsynchas more on rsync.


We can run rsync directly from the command line in either Apple OS X or
in Unix or Linux.


To download thepublic_htmldirectory fromabc.com, and to save it on the
local machine at/backups/abc.com, you could use the following command.


rsync -auvz abc.com:public_html /backups/abc.com/


19.7.5 Microsoft Windows: DeltaCopy


DeltaCopyis a free program based directly on rsync. It is a “wrapper”
around rsync, providing a Windows-based user interface.


http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsptells more about

Free download pdf