Fist commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
. /frontview/bin/functions
|
||||
|
||||
target=$(/frontview/bin/get_front_panel_usb_hdd)
|
||||
|
||||
echo $(date +%Y-%m-%d\ %H:%M:%S) : Export TISBackup sur Disque USB : $target >> /var/log/tisbackup.log
|
||||
if [ -n "$target" ]; then
|
||||
hotplug_lcd "Start TISBackup export"
|
||||
/usr/local/bin/tisbackup -x /$target/export exportbackup >> /var/log/tisbackup.log 2>&1
|
||||
hotplug_lcd "Finish TISBackup export"
|
||||
sleep 3
|
||||
else
|
||||
hotplug_lcd "Error, no USB disk"
|
||||
sleep 3
|
||||
fi
|
||||
echo $(date +%Y-%m-%d\ %H:%M:%S) : Fin Export TISBackup sur Disque USB : $target >> /var/log/tisbackup.log
|
||||
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
[global]
|
||||
backup_base_dir = /root/tisbackup/backup_dir
|
||||
|
||||
# backup retention in days
|
||||
backup_retention_time=90
|
||||
|
||||
# for nagios check in hours
|
||||
maximum_backup_age=30
|
||||
|
||||
;[srvopenerp-slash]
|
||||
;type=rsync+ssh
|
||||
;server_name=srvopenerp
|
||||
;remote_dir=/
|
||||
;compression=True
|
||||
;exclude_list="/proc/**","/sys/**","/dev/**"
|
||||
;private_key=/root/.ssh/id_dsa
|
||||
;ssh_port = 22
|
||||
|
||||
;[srvzimbra-slash]
|
||||
;type=rsync+ssh
|
||||
;server_name=srvzimbra
|
||||
;remote_dir=/
|
||||
;exclude_list="/proc/**","/sys/**","/dev/**"
|
||||
;private_key=/root/.ssh/id_dsa
|
||||
;ssh_port = 22
|
||||
|
||||
;[backup_mysql_srvintranet]
|
||||
;type=mysql+ssh
|
||||
;server_name=srvintranet
|
||||
;private_keys=/root/.ssh/id_dsa
|
||||
;db_name=*
|
||||
;db_user=root
|
||||
;db_passwd=mypassword
|
||||
|
||||
;[srvopenerp-pgsql]
|
||||
;type=pgsql+ssh
|
||||
;server_name=srvopenerp
|
||||
;db_name=tranquil-production
|
||||
;private_key=/root/.ssh/id_dsa
|
||||
;ssh_port = 22
|
||||
|
||||
;[test-backup-xva2]
|
||||
;type=xen-xva
|
||||
;xcphost=srvxen1-test
|
||||
;server_name=test-backup-xva2
|
||||
;password_file=/root/xen_passwd
|
||||
|
||||
;[sw-serveur]
|
||||
;type=switch
|
||||
;server_name=sw-serveur
|
||||
;switch_ip=192.168.149.253
|
||||
;switch_user=admin
|
||||
;switch_password=toto
|
||||
;switch_type=LINKSYS-SRW2024
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
[global]
|
||||
backup_base_dir = /backup/data/
|
||||
|
||||
# backup retention in days
|
||||
backup_retention_time=15
|
||||
|
||||
# for nagios check in hours
|
||||
maximum_backup_age=30
|
||||
|
||||
# bandwith limit for rsync
|
||||
#bw_limit = 300
|
||||
|
||||
#compression level for rsync (0 to 9)
|
||||
#compression_level=7
|
||||
|
||||
[srvfichiers-partages]
|
||||
type=rsync+ssh
|
||||
server_name=srvfichiers
|
||||
remote_dir=/home/partages
|
||||
exclude_list=
|
||||
private_key=/root/.ssh/id_dsa
|
||||
ssh_port = 22
|
||||
|
||||
[srvintranet-slash]
|
||||
type=rsync+ssh
|
||||
server_name=srvintranet
|
||||
remote_dir=/
|
||||
exclude_list="/proc/**","/sys/**","/dev/**"
|
||||
private_key=/root/.ssh/id_dsa
|
||||
ssh_port = 22
|
||||
|
||||
[srvads-slash]
|
||||
type=rsync+ssh
|
||||
server_name=srvads
|
||||
remote_dir=/
|
||||
exclude_list="/proc/**","/sys/**","/dev/**"
|
||||
private_key=/root/.ssh/id_dsa
|
||||
|
||||
[srvzimbra-slash]
|
||||
type=rsync+ssh
|
||||
server_name=srvzimbra
|
||||
remote_dir=/
|
||||
exclude_list="/proc/**","/sys/**","/dev/**","/opt/**"
|
||||
private_key=/root/.ssh/id_dsa
|
||||
ssh_port = 22
|
||||
|
||||
[srvzimbra-opt]
|
||||
type=rsync+ssh
|
||||
server_name=srvzimbra
|
||||
remote_dir=/opt
|
||||
exclude_list=
|
||||
private_key=/root/.ssh/id_dsa
|
||||
ssh_port = 22
|
||||
|
||||
[gateway]
|
||||
type=null
|
||||
server_name=fwall
|
||||
|
||||
[srvopenerp6-prod-pgsql]
|
||||
type=pgsql+ssh
|
||||
server_name=srvopenerp6-prod
|
||||
db_name=tranquil_production
|
||||
private_key=/root/.ssh/id_dsa
|
||||
ssh_port = 22
|
||||
|
||||
[srvopenerp6-form-script]
|
||||
type=rsync+ssh
|
||||
server_name=srvopenerp6-form
|
||||
remote_dir=/home/openerp/instances/form/openobject-library/
|
||||
exclude_list=
|
||||
private_key=/root/.ssh/id_rsa
|
||||
ssh_port = 22
|
||||
|
||||
;preexec=/etc/init.d/zimbra stop
|
||||
;postexec=/etc/init.d/zimbra start
|
||||
|
||||
;[backup_mysql_srvintranet]
|
||||
;type=mysql+ssh
|
||||
;server_name=srvintranet
|
||||
;private_keys=/root/.ssh/id_dsa
|
||||
;db_name=
|
||||
;db_user=root
|
||||
;db_passwd=
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
[global]
|
||||
backup_base_dir = /home/homes/ssamson/
|
||||
|
||||
# backup retention in day
|
||||
backup_retention_time=30
|
||||
|
||||
# for nagios check in hours
|
||||
maximum_backup_age=30
|
||||
compression_level=7
|
||||
#max_copies=2
|
||||
|
||||
[test-copysr]
|
||||
type=copy-vm-xcp
|
||||
server_name=srvxen1-test
|
||||
vm_name=test-pra
|
||||
storage_name=FAST_SR2
|
||||
password_file=/home/homes/ssamson/tisbackup-pra/xen_passwd
|
||||
network_name=net-test
|
||||
#start_vm=no
|
||||
#max_copies=3
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#SHELL=/bin/sh
|
||||
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
# m h dom mon dow user command
|
||||
30 22 * * * root /opt/tisbackup/tisbackup.py -c /etc/tis/tisbackup-config.ini backup >> /var/log/tisbackup.log 2>&1
|
||||
30 12 * * * root /opt/tisbackup/tisbackup.py -c /etc/tis/tisbackup-config.ini cleanup >> /var/log/tisbackup.log 2>&1
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[uwsgi]
|
||||
http = 0.0.0.0:8080
|
||||
master = true
|
||||
processes = 1
|
||||
wsgi=tisbackup_gui:app
|
||||
chdir=/opt/tisbackup
|
||||
config= /etc/tis/tisbackup-config.ini
|
||||
sections=
|
||||
spooler=/opt/tisbackup/myspool
|
||||
ADMIN_EMAIL=technique@tranquil-it-systems.fr
|
||||
Reference in New Issue
Block a user