Subject sounds simple but not sure if it will be.
I have an archiving program finds a list of files in multiple directories and writes them to a DAT72 drive.
There are 6 different data types that go into individual volumes using this type of general writing sequence
Code:
tar -cvf /dev/nst0 Scenario
tar -cvf /dev/nst0 -C <dataDir> <data set 1> -C <dataDir1a> <data set 1a>
tar -cvf /dev/nst0 -C <dataDir2> <data set 2> -C <dataDir2a> <data set 2a>
.
.
.etc
The directory structures are by day and the back ups are monthly. So you have in some cases 30 -C <dataDir>
in each one of those there are data files for every 5 minutes through the day so 288 files.
This gives you 8000+ args for tar. Which leads to the list too long error.
I have tried building an include list and use the -T option which caused the system to lock up.
Code:
tar -cvf /dev/nst0 -T dataList.include
tar -cvf /dev/nst0 -T dataList2.include
I have tried building a shell script and executing it using csh -c lead to argument list too long.
Code:
csh -c dataList.sh
csh -c dataList2.sh
The only thing that I have gotten to work somewhat is this sequence
Code:
tar -cvf /dev/nst0 -C <dataDir> <dataList>
mt -f /dev/nst0 bsf
tar -rvf /dev/nst0 -C <dataDir1> <dataList>
mt -f /dev/nst0 bsf
.
.
.etc
This takes way to long for the backup and on occasion causes the sytem to hang.
It is important to keep the data types on the same volume so I cant just write it day by day since the people that need to access the data later needs each volume to be 1 data type for 1 month.
Any help would be greatly appreciate!!