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"
|
2020-10-05 18:43:21 +02:00
|
|
|
dest=~/utils/nebula
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2020-10-05 18:43:21 +02:00
|
|
|
cd $dest
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2020-10-05 18:43:21 +02:00
|
|
|
$myrsync $remote:/etc/gitea/app.ini . &
|
|
|
|
$myrsync $remote:/etc/nginx/nginx.conf . &
|
|
|
|
$myrsync $remote:/etc/redis/redis.conf . &
|
|
|
|
$myrsync $remote:/etc/smtpd/{smtpd.conf,mailname,aliases,vdoms,vusers,creds} ./smtpd &
|
|
|
|
$myrsync $remote:/etc/ssh/sshd_config . &
|
|
|
|
$myrsync $remote:/etc/fstab . &
|
|
|
|
$myrsync $remote:/etc/crypttab . &
|
|
|
|
$myrsync $remote:/etc/lvm/lvm.conf . &
|
2019-10-03 01:15:44 +02:00
|
|
|
|
2020-10-05 18:43:21 +02:00
|
|
|
$myrsync $remote:/root/.zshrc ./root/zshrc
|
|
|
|
$myrsync $remote:/root/.ssh/ ./root/ssh
|
|
|
|
|
|
|
|
$myrsync $remote:/home/vis/.ssh/ ./vis/ssh
|
|
|
|
$myrsync $remote:/home/vis/.config/ --exclude="*Bittorrent-data*" ./vis/config
|