mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update core-restore-from-backup.sh
This commit is contained in:
		
							parent
							
								
									76a9d00a64
								
							
						
					
					
						commit
						ca08e20253
					
				| 
						 | 
					@ -46,6 +46,7 @@ function msg_error() {
 | 
				
			||||||
    local msg="$1"
 | 
					    local msg="$1"
 | 
				
			||||||
    echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
 | 
					    echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					if [ -z "$(ls -A /root/.homeassistant/backups/)" ]; then msg_error "No backups found! \n"; exit 1; fi
 | 
				
			||||||
DIR=/root/.homeassistant/restore
 | 
					DIR=/root/.homeassistant/restore
 | 
				
			||||||
if [ -d "$DIR" ];
 | 
					if [ -d "$DIR" ];
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
| 
						 | 
					@ -54,7 +55,6 @@ else
 | 
				
			||||||
    mkdir -p /root/.homeassistant/restore
 | 
					    mkdir -p /root/.homeassistant/restore
 | 
				
			||||||
    msg_ok "Created Restore Directory."
 | 
					    msg_ok "Created Restore Directory."
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
if [ -z "$(ls -A /root/.homeassistant/backups/)" ]; then msg_error "No backups found! \n"; exit 1; fi
 | 
					 | 
				
			||||||
cd /root/.homeassistant/backups/
 | 
					cd /root/.homeassistant/backups/
 | 
				
			||||||
PS3="Please enter your choice: "
 | 
					PS3="Please enter your choice: "
 | 
				
			||||||
files="$(ls -A .)"
 | 
					files="$(ls -A .)"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue