I was making a complete server backup and tried making the tar balls of each directory structure by using the following commands:
nohup tar -cvf - /etc | gzip -9 -c > /opt/Backup_4_Jan/etc.tgz &
nohup tar -cvf - /var/opt | gzip -9 -c > /opt/Backup_4_Jan/var_opt.tgz &
nohup tar -cvf - /usr/opt | gzip -9 -c > /opt/Backup_4_Jan/usr_opt.tgz &
But after transferring these zipped files on the windows machine, extracting it i found some of the tar balls are corrupted. I am sure the transfer was made in the Binary format and i was able to successfully extract /etc.tgz but other two couldn't get extracted due to corruption. I have tried this couple of times and got the same result every time.
So, my question is, am i using the commands in the right way? Or do i have mistake in the above commands, or is there any other way i can make the backups using some other commands?