Help with backup shell script

Hello all,

I am trying to backup my system database and root filesystem on remote server that is mounted on my system using tar command.

For the database, i use (cd /database; tar cvf file.tar .)
for the Root filesystem, i use (cd /; tar uEvf file.tar .)

both are to be backup on the same file. This is generating error:

tar: Archive contains no extended header. -E flag not allowed.

Is there a way i can achieve this?

Regards

better use cpio. Check the man pages for more details