mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-04 01:26:59 -05:00 
			
		
		
		
	Move backup to after detection
This commit is contained in:
		
							parent
							
								
									b6c74d2283
								
							
						
					
					
						commit
						986f1092e9
					
				@ -209,14 +209,13 @@ function pull_gs_grav {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Pull Custom
 | 
					## Pull Custom
 | 
				
			||||||
function pull_gs_cust {
 | 
					function pull_gs_cust {
 | 
				
			||||||
 | 
					 | 
				
			||||||
	backup_local_custom
 | 
					 | 
				
			||||||
	backup_remote_custom
 | 
					 | 
				
			||||||
	
 | 
					 | 
				
			||||||
	if [ "$SKIP_CUSTOM" != '1' ]
 | 
						if [ "$SKIP_CUSTOM" != '1' ]
 | 
				
			||||||
	then	
 | 
						then	
 | 
				
			||||||
		if [ "$REMOTE_CUSTOM_DNS" == "1" ]
 | 
							if [ "$REMOTE_CUSTOM_DNS" == "1" ]
 | 
				
			||||||
		then	
 | 
							then
 | 
				
			||||||
 | 
								backup_local_custom
 | 
				
			||||||
 | 
								backup_remote_custom
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			MESSAGE="Pulling ${CUSTOM_DNS} from ${REMOTE_HOST}"
 | 
								MESSAGE="Pulling ${CUSTOM_DNS} from ${REMOTE_HOST}"
 | 
				
			||||||
			echo_stat
 | 
								echo_stat
 | 
				
			||||||
				RSYNC_REPATH="rsync"
 | 
									RSYNC_REPATH="rsync"
 | 
				
			||||||
@ -339,13 +338,13 @@ function push_gs_grav {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Push Custom
 | 
					## Push Custom
 | 
				
			||||||
function push_gs_cust {
 | 
					function push_gs_cust {
 | 
				
			||||||
	backup_remote_custom
 | 
					 | 
				
			||||||
	backup_local_custom
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if [ "$SKIP_CUSTOM" != '1' ]
 | 
						if [ "$SKIP_CUSTOM" != '1' ]
 | 
				
			||||||
	then	
 | 
						then	
 | 
				
			||||||
		if [ "$REMOTE_CUSTOM_DNS" == "1" ]
 | 
							if [ "$REMOTE_CUSTOM_DNS" == "1" ]
 | 
				
			||||||
		then
 | 
							then
 | 
				
			||||||
 | 
								backup_remote_custom
 | 
				
			||||||
 | 
								backup_local_custom
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			MESSAGE="Copying ${CUSTOM_DNS} from ${REMOTE_HOST}"
 | 
								MESSAGE="Copying ${CUSTOM_DNS} from ${REMOTE_HOST}"
 | 
				
			||||||
			echo_stat
 | 
								echo_stat
 | 
				
			||||||
				RSYNC_REPATH="rsync"
 | 
									RSYNC_REPATH="rsync"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user