dotfiles/bin/getnebulaconfigs

24 lines
698 B
Bash
Executable File

#!/bin/bash
# simple config backup script for nebula
remote="root@dotya.ml"
myrsync="rsync -auvP"
dest=~/utils/nebula
cd $dest
$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 . &
$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