mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	implemented new remote backup solution
This commit is contained in:
		
							
								
								
									
										2
									
								
								roles/native-primary-backup/meta/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								roles/native-primary-backup/meta/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| dependencies: | ||||
| - native-user-backup | ||||
							
								
								
									
										12
									
								
								roles/native-primary-backup/readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/native-primary-backup/readme.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| # role native-primary-backup-host | ||||
|  | ||||
| ## todo | ||||
| - add full system backup | ||||
|  | ||||
| ## see | ||||
| - https://www.thegeekstuff.com/2012/03/chroot-sftp-setup/ | ||||
| - https://serverfault.com/questions/135618/is-it-possible-to-use-rsync-over-sftp-without-an-ssh-shell | ||||
| - https://forum.duplicati.com/t/sftp-ssh-backups-to-a-linux-server-with-added-security/7334 | ||||
| - https://serverfault.com/questions/287578/trying-to-setup-chrootd-rsync | ||||
| - http://ramblings.narrabilis.com/using-rsync-with-ssh | ||||
| - https://wiki.archlinux.org/index.php/rsync | ||||
							
								
								
									
										16
									
								
								roles/native-primary-backup/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								roles/native-primary-backup/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| # Create sftp group | ||||
| # groupadd sftpusers | ||||
| # useradd -g sftpusers -d /incoming -s /sbin/nologin guestuser | ||||
| # passwd guestuser | ||||
| # grep guestuser /etc/passwd | ||||
| # usermod -g sftpusers -d /incoming -s /sbin/nologin john | ||||
| # Subsystem       sftp    internal-sftp > /etc/ssh/sshd_config | ||||
| # tail /etc/ssh/sshd_config | ||||
| # mkdir /sftp | ||||
| # mkdir /sftp/guestuser | ||||
| # mkdir /sftp/guestuser/incoming | ||||
| # chown guestuser:sftpusers /sftp/guestuser/incoming | ||||
| # ls -ld /sftp/guestuser/incoming | ||||
| # ls -ld /sftp/guestuser | ||||
| # ls -ld /sftp | ||||
| # service sshd restart | ||||
		Reference in New Issue
	
	Block a user