mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-11-04 03:17:32 +01:00 
			
		
		
		
	bash: backup-relpda & -client: scripts to backup my VPS
Closes: #6 Closes: Mikaela/gist#1
This commit is contained in:
		
							parent
							
								
									c67dfddc70
								
							
						
					
					
						commit
						919d826966
					
				
							
								
								
									
										5
									
								
								bash/backup-relpda-client.bash
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								bash/backup-relpda-client.bash
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
mkdir -p ~/relpda.mikaela.info/
 | 
			
		||||
cd ~/relpda.mikaela.info/
 | 
			
		||||
 | 
			
		||||
rsync -Paz y.relpda.mikaela.info:~/backups/ .
 | 
			
		||||
							
								
								
									
										22
									
								
								bash/backup-relpda.bash
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								bash/backup-relpda.bash
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
TARGETDIR=/home/mikaela/backups/
 | 
			
		||||
 | 
			
		||||
mkdir -p $TARGETDIR
 | 
			
		||||
 | 
			
		||||
cp -rv /home/znc/.znc/ $TARGETDIR/znc
 | 
			
		||||
 | 
			
		||||
mkdir -p $TARGETDIR/bitbot/
 | 
			
		||||
cp -v /home/bitbot/bitbot/bot.conf /home/bitbot/bitbot/databases/bot.db $TARGETDIR/bitbot/
 | 
			
		||||
 | 
			
		||||
# Think about ssh keys? But I don't rotate hostnames with VPSes...
 | 
			
		||||
cp -v /etc/yggdrasil.conf $TARGETDIR
 | 
			
		||||
 | 
			
		||||
cp -v /etc/systemd/system/syncplay-server.service $TARGETDIR
 | 
			
		||||
 | 
			
		||||
mkdir -p $TARGETDIR/mumble/ssl/
 | 
			
		||||
cp -v /etc/mumble-server.ini /var/lib/mumble-server/mumble-server.sqlite $TARGETDIR/mumble/
 | 
			
		||||
cp -vr /var/lib/mumble-server/ssl/ $TARGETDIR/mumble/ssl
 | 
			
		||||
 | 
			
		||||
chown -R mikaela:mikaela $TARGETDIR
 | 
			
		||||
chmod -R g-rxw,o-rxw $TARGETDIR
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user