public static void backup(){
		
    	String fileDate = "";
    	String fileExt  = ".bin";
    	
    	//get parameters from GUI
    	getParametersFromGUI();
		
		
		//check if the path ends with "/" or "\" - if not, display a Popup
		if (!(filepath.endsWith("/") || filepath.endsWith("\\")))
			OptionPanes.notifyFilepathEnd(gui);
			
    	//generate Date for fileName
		if (gui.chckbx_Date.isSelected()){
		    DateGenerator myDate = new DateGenerator();
		    String[] dateArray = myDate.generateDate();
		    fileDate = " - " + dateArray[0]+ "-" + dateArray[1]+ "-" +dateArray[2];
		}

		//call the HttpBasicAuth class to handle the authentification and backup
		HttpBasicAuth HttpAuthentication = new HttpBasicAuth();
		
	  	try{
	  		if(HttpAuthentication.getBackupFile(ipAddress, user, password, filepath, filename, fileExt, fileDate))
	  			OptionPanes.notifyBackupSuccess(gui);
	  	}
	  	catch(IOException e){
	  		OptionPanes.notifyConnectionError(gui, e.getMessage());
	  	}
	  	
	}