Added readme
This commit is contained in:
		
							parent
							
								
									3918a2086b
								
							
						
					
					
						commit
						bdf603a5ed
					
				
					 1 changed files with 34 additions and 0 deletions
				
			
		
							
								
								
									
										34
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,34 @@
 | 
			
		|||
BCUP
 | 
			
		||||
----
 | 
			
		||||
 | 
			
		||||
Service for backup server configuration
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
*Project is in development and does not have release yet*
 | 
			
		||||
 | 
			
		||||
Start
 | 
			
		||||
----
 | 
			
		||||
 | 
			
		||||
Compile and run the project
 | 
			
		||||
```shell
 | 
			
		||||
cargo run
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Connect to SurrealDB and run the following command
 | 
			
		||||
 | 
			
		||||
```surrealdb
 | 
			
		||||
CREATE rest_server CONTENT {
 | 
			
		||||
    name: <future> {string::split(<string> id, ":")[1]},
 | 
			
		||||
    domain: <future> {"rest-"+name+".hq.rosti.cz"},
 | 
			
		||||
    volume: "/mnt/volume0",
 | 
			
		||||
    directory: <future> {volume+"/rest-"+name},
 | 
			
		||||
    rest_password: "sahTeecaezuN8ue8Ohb9faij4haiQuie",
 | 
			
		||||
    repo_password: "ed9AhchoThahbex8bohgahng6eich9ji",
 | 
			
		||||
    state: {
 | 
			
		||||
        "required": "created",
 | 
			
		||||
        "now": "pending"
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in a new issue