I just used tar to back up my entire root directory, and I mainly used the following community source as a reference.
This is the command list that I entered...
It finished its work yet returned the following message at the end
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev /
Because of this error am not sure if this backed up correctly. I checked the location of the new compressed file and it seems like a perfectly fine tar file.
tar: Exiting with failure status due to previous errors
Any suggestions would be appreciated. Thanks!