btsb
This commit is contained in:
parent
e258f4e440
commit
816c3b2825
5
sisr1/automatisation.sh
Normal file
5
sisr1/automatisation.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
files="./etc/crontab
|
||||
|
||||
0 2-3 * * * root scriptsauvegarde.sh
|
5
sisr1/liste_a_copier
Normal file
5
sisr1/liste_a_copier
Normal file
@ -0,0 +1,5 @@
|
||||
root@172.16.0.254:/etc/dhcp/dhcpd.conf
|
||||
root@172.16.0.254:/etc/default/isc-dhcp-server
|
||||
root@172.16.0.254:/etc/bind/named.conf.local
|
||||
root@172.16.0.254:/etc/bind/db.monlabo.lan
|
||||
root@172.16.0.254:/etc/bind/db.monlabo.lan.rev
|
16
sisr1/sciptsauvegarde.sh
Normal file
16
sisr1/sciptsauvegarde.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
backup="/root/backupsvg"
|
||||
mkdir $backup
|
||||
while read line
|
||||
do
|
||||
scp $line $backup
|
||||
done < liste_a_copier
|
||||
|
||||
|
||||
|
||||
|
||||
tar -zcvf /root/svg.tar.gz $backup
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user