a little, unimportant rewrite

This commit is contained in:
surtur 2019-11-19 01:02:25 +01:00
parent e4693ff82a
commit b8e925c26c
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -1,15 +1,17 @@
#!/bin/bash
# simple config backup script for nebula
remote="rooot@git.dotya.ml:"
myrsync="rsync -auvP"
rsync -auvP root@git.dotya.ml:/etc/gitea/app.ini ~/utils/nebula &
rsync -auvP root@git.dotya.ml:/etc/ssh/sshd_config ~/utils/nebula &
rsync -auvP root@git.dotya.ml:/etc/fstab ~/utils/nebula &
rsync -auvP root@git.dotya.ml:/etc/crypttab ~/utils/nebula &
rsync -auvP root@git.dotya.ml:/etc/lvm/lvm.conf ~/utils/nebula &
$myrsync $remote:/etc/gitea/app.ini ~/utils/nebula &
$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 &
rsync -auvP root@git.dotya.ml:/root/.zshrc ~/utils/nebula/root/zshrc
rsync -auvP root@git.dotya.ml:/root/.ssh/ ~/utils/nebula/root/ssh
$myrsync $remote:/root/.zshrc ~/utils/nebula/root/zshrc
$myrsync $remote:/root/.ssh/ ~/utils/nebula/root/ssh
rsync -auvP root@git.dotya.ml:/home/vis/.ssh/ ~/utils/nebula/vis/ssh
rsync -auvP root@git.dotya.ml:/home/vis/.config/ --exclude="*Bittorrent-data*" ~/utils/nebula/vis/config
$myrsync $remote:/home/vis/.ssh/ ~/utils/nebula/vis/ssh
$myrsync $remote:/home/vis/.config/ --exclude="*Bittorrent-data*" ~/utils/nebula/vis/config