Setting up backup script, but tar is limited to 2 GB files?

I setup a backup script on my machine recently to create weekly full backups and daily incremental backups by tarring the files on the primary hard drive and putting the tar file on the secondary hard drive.

But I just did a ls and saw this:

[pmak@sg1 backups]$ ls -l
total 2099204
-rw-r--r-- 1 root root 2147483647 Jun 1 04:21 sg1-01Jun.tar

Notice that the size of the backup file is exactly 2^31 - 1. This suggests that some data was truncated at the end because it can't be bigger than 2 GB.

What can I do to get around this problem? Does someone have a better backup script, perhaps?

 

 

 

 

Top