mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	mirror-to-mirror.sh: set 1h timeout for rsync runs
This script is run every 10 minutes or so to push new files to the primary mirrors. It sets a lock to prevent multiple copies from running in parallel. Yesterday, one rsync process got stuck and never exited, thereby preventing this script from running. Adding a 1h timeout seems like a safe way to deal with this kind of problem. This would not deal with rsync getting so stuck that it fails to heed the timeout, hopefully that's not an issue.
This commit is contained in:
		
							parent
							
								
									c88eb253f6
								
							
						
					
					
						commit
						ce77a33228
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -19,6 +19,7 @@ for section in repo archive; do
 | 
			
		|||
        set -x
 | 
			
		||||
        # be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section!
 | 
			
		||||
        rsync --archive --delay-updates --progress --delete \
 | 
			
		||||
              --timeout=3600 \
 | 
			
		||||
              /home/fdroid/public_html/${section} \
 | 
			
		||||
              ${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ &
 | 
			
		||||
        set +x
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue