+
+ // Check to make sure required env variables are set
+ if( getenv( "backupdbin" ) == NULL ||
+ getenv( "backupdbout" ) == NULL ||
+ getenv( "blocksize" ) == NULL ||
+ getenv( "availsizemb" ) == NULL )
+ {
+ cerr << "Required environment variables are not set. Exiting." << endl;
+ return 1;
+ }
+
+ // Setup our bytes_in_block value
+ bytes_in_block = atoll(getenv("blocksize"));
+