2019-10-03 01:15:44 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# simple config backup script for nebula
|
2019-12-08 03:00:02 +01:00
|
|
|
remote="root@dotya.ml"
|
2019-11-19 01:02:25 +01:00
|
|
|
myrsync="rsync -auvP"
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2019-11-19 01:02:25 +01:00
|
|
|
$myrsync $remote:/etc/gitea/app.ini ~/utils/nebula &
|
2019-12-08 03:00:02 +01:00
|
|
|
$myrsync $remote:/etc/nginx/nginx.conf ~/utils/nebula &
|
|
|
|
$myrsync $remote:/etc/smtpd/{smtpd.conf,mailname,aliases,vdoms,vusers,creds} ~/utils/nebula/smtpd &
|
2019-11-19 01:02:25 +01:00
|
|
|
$myrsync $remote:/etc/ssh/sshd_config ~/utils/nebula &
|
|
|
|
$myrsync $remote:/etc/fstab ~/utils/nebula &
|
|
|
|
$myrsync $remote:/etc/crypttab ~/utils/nebula &
|
|
|
|
$myrsync $remote:/etc/lvm/lvm.conf ~/utils/nebula &
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2019-12-08 03:00:02 +01:00
|
|
|
$myrsync $remote:/root/.zshrc ~/utils/nebula/root/zshrc &
|
|
|
|
$myrsync $remote:/root/.ssh/ ~/utils/nebula/root/ssh &
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2019-12-08 03:00:02 +01:00
|
|
|
$myrsync $remote:/home/vis/.ssh/ ~/utils/nebula/vis/ssh &
|
|
|
|
$myrsync $remote:/home/vis/.config/ --exclude="*Bittorrent-data*" ~/utils/nebula/vis/config &
|