F/ccollect create destination (#548)
This commit is contained in:
		
					parent
					
						
							
								f767ec04ec
							
						
					
				
			
			
				commit
				
					
						2cd006de79
					
				
			
		
					 3 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -38,6 +38,8 @@ BOOLEAN PARAMETERS
 | 
				
			||||||
verbose
 | 
					verbose
 | 
				
			||||||
    Whether to report backup verbosely
 | 
					    Whether to report backup verbosely
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					create-destination
 | 
				
			||||||
 | 
					    Create the directory specified in the destination parameter on the remote host
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXAMPLES
 | 
					EXAMPLES
 | 
				
			||||||
--------
 | 
					--------
 | 
				
			||||||
| 
						 | 
					@ -50,6 +52,13 @@ EXAMPLES
 | 
				
			||||||
        --exclude '/proc/*' --exclude '/sys/*' \
 | 
					        --exclude '/proc/*' --exclude '/sys/*' \
 | 
				
			||||||
        --verbose
 | 
					        --verbose
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    __ccollect_source doc.ungleich.ch \
 | 
				
			||||||
 | 
					        --source doc.ungleich.ch:/ \
 | 
				
			||||||
 | 
					        --destination /backup/doc.ungleich.ch \
 | 
				
			||||||
 | 
					        --exclude '/proc/*' --exclude '/sys/*' \
 | 
				
			||||||
 | 
					        --verbose \ 
 | 
				
			||||||
 | 
					        --create-destination
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SEE ALSO
 | 
					SEE ALSO
 | 
				
			||||||
--------
 | 
					--------
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,3 +53,7 @@ if [ -f "$__object/parameter/exclude" ]; then
 | 
				
			||||||
    __file "$exclude_file" --source - --state "$state" \
 | 
					    __file "$exclude_file" --source - --state "$state" \
 | 
				
			||||||
        < "$__object/parameter/exclude"
 | 
					        < "$__object/parameter/exclude"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -f "$__object/parameter/create-destination" ]; then
 | 
				
			||||||
 | 
					    __directory "${destination}" --parents --state ${state}
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1,2 @@
 | 
				
			||||||
verbose
 | 
					verbose
 | 
				
			||||||
 | 
					create-destination
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue