use admin;

db.auth('neil', 'parablu');

use parablu001

db.BACKUP_POLICY.drop();

db.INSTANCE_PERMISSION.insert({
"instancePermissonsProperties":{
    "enableheaderSearch": false,
    "enableShareActivityHistory": false,
    "enableTrash": false,
    "enableMinicloud": false,
    "enableMyShares": false,
    "enableHighlySecuredShare": false,
    "myBluValutViewExclusion": ["view"],
    "maxBlukrypt": 1,
    "maxParacloud": 1,
    "maxADGroup": 1,
    "maxEncryptionKeys": 1,
    "policyViewExclusion": ["create", "delete", "clone"],
    "policyFieldsMaxValue": {
        "maxFileVersions": 3,
        "maxPermissibleFileSize": 10
    },
    "policyFieldsDefaultValue": {
        "maxFileVersions": 3,
        "maxPermissibleFileSize": 10,
        "userStorageQuta": 25,
        "blukryptSearch": "NEAREST",
        "policyRefresh": 4
    },
    "disablePolicyFields": ["backupFilesInUse", "partialFileTransfer", "legalHold", "enableCompression", "networkThrotlling", "bluvaultFileView", "endpointsUi"],
    "downloadAgent": [
        "WIN"
    ],
    "userViewExclusion": ["block", "unblock", "delete"],
    "deviceViewExclusion": ["block", "unblock", "delete"],
    "enableADMigration": false
}}
);

db.BACKUP_POLICY.insert({
		"_id" : ObjectId("5a27ca10e4b0fb678c9f12c8"),
	"_class" : "com.parablu.pcbd.domain.BackupPolicy",
	"destination" : "",
	"vssEnabled" : false,
	"isStatisticsCollectorEnabled" : false,
	"crawlLimit" : 500,
	"legalHoldEnabled" : false,
	"backupSystemFilesEnabled" : false,
	"fullBackupSchedule" : "",
	"isShareEnabled" : false,
	"isComplexPassword" : false,
	"shareExpireDateEnable" : false,
	"isAllowDownload" : true,
	"isHighSecureShareEnabled" : false,
	"fullBackupEnabled" : false,
	"fullBackupStartDate" : NumberLong(0),
	"policyName" : "DEFAULT_BLUVAULT_POLICY",
	"osType" : "windows",
	"policyRefresh" : "4:00",
	"maxFileSize" : "10",
	"pftEnabled" : false,
	"pftSize" : 5,
	"fileChunkableSize" : 4,
	"compressionEnabled" : false,
	"maxVersions" : 3,
	"userSizeAllowed" : 25,
	"cpuUtilization" : NumberLong(80),
	"memoryUtilization" : NumberLong(128),
	"nwFromClientToPG" : NumberLong(10000),
	"nwFromClientToPGMB" : 10000,
	"nwFromPGToCloud" : NumberLong(4),
	"filterInclusionName" : "all_files",
	"lastModifiedTimestamp" : NumberLong("1512557072696"),
	"dcmEnabled" : false,
	"isContentIndexEnabled" : false,
	"isDeDuplicationEnabled" : false,
	"cacheUsedData" : false,
	"searchAlgoForPg" : "NEAREST",
	"dedup" : "Disabled",
	"endpointUiPreferences" : [
		"EXIT",
		"DECOUPLE",
		"SUPPORT",
		"INTIATE_BACKUP",
		"RESTORE",
		"STOP_BACKUP",
		"BACKUP_SETTINGS",
		"BACKUP_FILES",
		"REFRESH_BACKUP_POLICY"
	],
	"isTwoWayShareEnabled" : false,
	"backupFolders" : [
		DBRef("BACKUP_FOLDERS", ObjectId("59d5c22fe4b0d7feb1dbd692")),
		DBRef("BACKUP_FOLDERS", ObjectId("59d5c22fe4b0d7feb1dbd693"))
	],
	"schedules" : [
		DBRef("SCHEDULE", ObjectId("57483affe4b0c27348270c38"))
	],
	"calloutScripts" : [ ],
	"privacyGateways" : [ ],
	"networkThrottlings" : [ ],
	"inclusionFilter" : DBRef("INCLUSION_FILTER", ObjectId("574c1f0ae4b04fe650d0e2bb"))
	});

use parablu

db.CLOUD.update({},{$set:{ "noOfDevicesAllowed" : 1}})
