stoolpigeon
Programmer
Can I send the output of a program to TAR?
I've tried and been unable. (I get an error for trying to create an empty archive) I've looked around for something that would show it and have been unable to find anything. So I'm thinking maybe I just can't do it.
I have a postgreSQL database and I use pg_dump to generate a back up file. I want to use tar to put the file on tape.
If I can do that w/one command as a cron job I would like to. Otherwise I'll write a script to run pg_dump and then use tar after that is done.
What I've tried looked like this
The pg_dum creates the file db.tar and that's what I want tar to write to the tape.
Thanks,
Ron
I've tried and been unable. (I get an error for trying to create an empty archive) I've looked around for something that would show it and have been unable to find anything. So I'm thinking maybe I just can't do it.
I have a postgreSQL database and I use pg_dump to generate a back up file. I want to use tar to put the file on tape.
If I can do that w/one command as a cron job I would like to. Otherwise I'll write a script to run pg_dump and then use tar after that is done.
What I've tried looked like this
Code:
pg_dump -Fp -f db.tar taa | tar cf /dev/tape
Thanks,
Ron