Actions

Difference between revisions of "Website Backup using tar"

From zen2

(New page: Navigate to the folder you want to backup and type <pre> tar -cf mybackupfilename.tar . </pre> This will create a tarball of your site Then type <pre> gzip -9 mybackupfilename.tar </pre> ...)
 
m (1 revision)
 
(No difference)

Latest revision as of 08:45, 25 July 2013

Navigate to the folder you want to backup and type

tar -cf mybackupfilename.tar .

This will create a tarball of your site

Then type

gzip -9 mybackupfilename.tar

This will compress the tarball and rename it with a .gz extension.

Then ftp (or better yet, scp) the file to your backup hardware.

Reverse the process by moving the file to the directory from whence it came

gunzip -9 mybackupfilename.tar.gz
tar -xf mybackupfilename.tar