dotfiles/bin/getnebulaconfigs

24 lines
698 B
Plaintext
Raw Normal View History

#!/bin/bash
# simple config backup script for nebula
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
2020-10-05 18:43:21 +02:00
cd $dest
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 . &
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