mirror of https://github.com/trapexit/mergerfs.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							13 lines
						
					
					
						
							297 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							13 lines
						
					
					
						
							297 B
						
					
					
				| #!/usr/bin/env sh | |
|  | |
| if [ $# != 3 ]; then | |
|   echo "usage: $0 <cache-fs> <backing-pool> <days-old>" | |
|   exit 1 | |
| fi | |
| 
 | |
| CACHE="${1}" | |
| BACKING="${2}" | |
| N=${3} | |
| 
 | |
| find "${CACHE}" -type f -atime +${N} -printf '%P\n' | \ | |
|   rsync --files-from=- -axqHAXWES --preallocate --remove-source-files "${CACHE}/" "${BACKING}/"
 |