Copying a Joomla website
From Joomla! Documentation
its very important to note that when you run the tar command you are NOT in the directory you are backing up or you will create an endless loop as it will continously sit there and try to backup the backup file.