mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
backupconfs: rewrite
This commit is contained in:
parent
2636dd06cf
commit
b62ee2c670
48
bash/backupconfs
Normal file → Executable file
48
bash/backupconfs
Normal file → Executable file
@ -1,43 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
cd /home/mikaela/SparkleShare/privatesync
|
||||
|
||||
mkdir -p pisg;cd pisg
|
||||
rsync -Paz lakka:~/.pisg/pisg.cfg .
|
||||
rsync -Paz lakka:~/.pisg/kapsiga.txt
|
||||
#scp lakka:~/.pisg/pisg.cfg .
|
||||
#scp lakka:~/.pisg/kapsiga.txt .
|
||||
mkdir -p ~/.backups
|
||||
cd ~/.backups
|
||||
mkdir -p lakka
|
||||
cd lakka
|
||||
rsync -Paz --exclude='~/.local/*' --exclude='~/.pyenv/*' --exclude='*git*' lakka:~/ .
|
||||
cd ..
|
||||
|
||||
mkdir -p jsis;cd jsis
|
||||
rsync -Paz lakka:~/src/git/lietu/jsis/config.js .
|
||||
#scp lakka:~/src/git/lietu/jsis/config.js .
|
||||
mkdir -p hilla
|
||||
cd hilla
|
||||
rsync -Paz --exclude='~/.local/*' --exclude='~/.pyenv/*' --exclude='*git*' hilla:~/ .
|
||||
cd ..
|
||||
|
||||
rsync -Paz --exclude *log* lakka:~/.znc .
|
||||
|
||||
mkdir -p weechat;cd weechat
|
||||
rsync -Paz lakka:"~/.weechat/*.conf" .
|
||||
#scp lakka:"~/.weechat/*.conf" .
|
||||
cd ..
|
||||
|
||||
mkdir -p Yvzabevn3;cd Yvzabevn3
|
||||
#scp lakka:"~/Yvzabevn3/*.conf" .
|
||||
rsync -Paz lakka:"~/Yvzabevn3/*.conf" .
|
||||
mkdir -p conf;cd conf
|
||||
#scp lakka:"~/Yvzabevn3/conf/*.conf" .
|
||||
rsync -Paz lakka:"~/Yvzabevn3/conf/*.conf" .
|
||||
cd ../..
|
||||
|
||||
mkdir -p Tessu;cd Tessu
|
||||
#scp hilla:"~/Tessu/*.conf" .
|
||||
rsync -Paz hilla:"~/Tessu/*.conf" .
|
||||
mkdir -p conf;cd conf
|
||||
#scp hilla:"~/Tessu/conf/*.conf" .
|
||||
rsync -Paz hilla:"~/Tessu/conf/*.conf" .
|
||||
cd ../..
|
||||
|
||||
cp $(which backupconfs) .
|
||||
git add -A
|
||||
git commit -m "backupconfs-rsync automatic commit"
|
||||
git push
|
||||
|
Loading…
Reference in New Issue
Block a user