Backup your site files

Backup directory and subdirectories

tar -c --recursion -p --file=mysite.backup.tar mysite/

-c create an archive
–recursion all subdirectories
-p preserve files permissions
–file file output

Compress

gzip mysite.backup.tar
Categories: Backup Tags: , ,
%d bloggers like this: