Added logging of accepted mapped borg variables
This commit is contained in:
		
							parent
							
								
									e7f5a836ec
								
							
						
					
					
						commit
						2323eb435e
					
				@ -583,10 +583,12 @@ if [ -z "${borgConfig[2]}" ]; then
 | 
				
			|||||||
    cleanup
 | 
					    cleanup
 | 
				
			||||||
    quit
 | 
					    quit
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 | 
					    echo -e "${op}${stamp} Borg REPO name... OK${normal}" >> "$logFile"
 | 
				
			||||||
    export BORG_REPO="${borgConfig[2]}"
 | 
					    export BORG_REPO="${borgConfig[2]}"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
# repo password
 | 
					# repo password
 | 
				
			||||||
if [ -n "${borgConfig[3]}" ]; then
 | 
					if [ -n "${borgConfig[3]}" ]; then
 | 
				
			||||||
 | 
					    echo -e "${op}${stamp} Borg SSH/REPO password... OK${normal}" >> "$logFile"
 | 
				
			||||||
    export BORG_PASSPHRASE="${borgConfig[3]}"
 | 
					    export BORG_PASSPHRASE="${borgConfig[3]}"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    exitWarn+=('2111')
 | 
					    exitWarn+=('2111')
 | 
				
			||||||
@ -602,6 +604,7 @@ borgExclude="${borgConfig[5]}"
 | 
				
			|||||||
borgPrune="${borgConfig[6]}"
 | 
					borgPrune="${borgConfig[6]}"
 | 
				
			||||||
# export: borg remote path (if not blank)
 | 
					# export: borg remote path (if not blank)
 | 
				
			||||||
if [ -n "${borgConfig[7]}" ]; then
 | 
					if [ -n "${borgConfig[7]}" ]; then
 | 
				
			||||||
 | 
					    echo -e "${op}${stamp} Borg REMOTE path... OK${normal}" >> "$logFile"
 | 
				
			||||||
    export BORG_REMOTE_PATH="${borgConfig[7]}"
 | 
					    export BORG_REMOTE_PATH="${borgConfig[7]}"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    exitWarn+=('2112')
 | 
					    exitWarn+=('2112')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user