mirror of
				https://asciireactor.com/o4data/zfs-backup.git
				synced 2025-10-31 22:58:07 +00:00 
			
		
		
		
	Added debugging output.
This commit is contained in:
		
							parent
							
								
									eef8161462
								
							
						
					
					
						commit
						49ad7c4b52
					
				
							
								
								
									
										18
									
								
								backup.sh
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								backup.sh
									
									
									
									
									
								
							| @ -51,12 +51,20 @@ populate_datasets() | ||||
|         snapshot_dataset="yes" | ||||
|         send_dataset="yes" | ||||
|         for option in $dataset_options; do | ||||
|             debug "Processing option $option." | ||||
|             case $option in  | ||||
|                 "nosnap"*    ) snapshot_dataset=""                    ;; | ||||
|                 "nosend"*    ) send_dataset=""                        ;; | ||||
|                 "remotezfs="*) remotezfs=`echo $option|cut -d'=' -f2` ; | ||||
|                                 dataset="$dataset:$remotezfs"          ;; | ||||
|                 "nosnap"*    ) | ||||
|                     snapshot_dataset="" | ||||
|                     debug "Disabled snapshot of $dataset." | ||||
|                     ;; | ||||
|                 "nosend"*    ) | ||||
|                     send_dataset="" | ||||
|                     debug "Disabled send of $dataset." | ||||
|                     ;; | ||||
|                 "remotezfs="*) | ||||
|                     remotezfs=`echo $option|cut -d'=' -f2` | ||||
|                     dataset="$dataset:$remotezfs" | ||||
|                     debug "Set remote dataset for $dataset." | ||||
|                     ;; | ||||
|             esac | ||||
|         done | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user