first commit
This commit is contained in:
17
backup/domoticz
Executable file
17
backup/domoticz
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
service domoticz.sh stop
|
||||
|
||||
cd /opt/domoticz/
|
||||
#tar -czf /tmp/domoticz.tgz .
|
||||
tar --exclude="./backups" -czf /tmp/domoticz.tgz .
|
||||
#tar -cz --exclude="./backups" -f /tmp/domoticz.tgz .
|
||||
|
||||
cp /tmp/domoticz.tgz /media/WDBlue/backup/ImagesMyPi/domoticz"$(date '+%Y-%m-%d')".tgz
|
||||
#scp /tmp/domoticz.tgz pi@volumio2:/media/WDRed/backup/
|
||||
|
||||
service domoticz.sh start
|
||||
|
||||
#rm /tmp/domoticz.tgz
|
||||
|
||||
|
||||
8
backup/domoticzOpt
Executable file
8
backup/domoticzOpt
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /opt/domoticz;
|
||||
/bin/tar cvzf /tmp/opt.tgz *;
|
||||
/bin/cp /tmp/opt.tgz /media/Backup/domoticz/domoticz"$(date '+%Y-%m-%d')".tgz;
|
||||
|
||||
|
||||
|
||||
7
backup/domoticzScripts
Executable file
7
backup/domoticzScripts
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /opt/domoticz/scripts/;
|
||||
/bin/tar cvzf /tmp/scriptsDomoticz.tgz *;
|
||||
/bin/cp /tmp/scriptsDomoticz.tgz /media/Backup/domoticz/scriptsDomoticz"$(date '+%Y-%m-%d')".tgz;
|
||||
|
||||
|
||||
7
backup/domoticzWww
Executable file
7
backup/domoticzWww
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /var/www/;
|
||||
/bin/tar cvzf /tmp/varwww.tgz *;
|
||||
/bin/cp /tmp/varwww.tgz /media/Backup/domoticz/varwww"$(date '+%Y-%m-%d')".tgz;
|
||||
|
||||
|
||||
2
backup/exclude.txt
Normal file
2
backup/exclude.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
domoticz
|
||||
domoticz*.db*
|
||||
7
backup/octoprint
Executable file
7
backup/octoprint
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
tar czf /tmp/octoprint.tgz /opt/OctoPrint/*
|
||||
|
||||
cp /tmp/octoprint.tgz /media/WDBlue/backup/ImagesMyPi/octoprint"$(date '+%Y-%m-%d')".tgz
|
||||
|
||||
tar cvzf /media/WDBlue/backup/ImageMyPi/klipper_configurated"$(date '+%Y-%m-%d')".tgz /home/souti/klipper /home/souti/klippy-env /home/souti/printer.cfg
|
||||
5
backup/saveOctoprint.sh
Executable file
5
backup/saveOctoprint.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
/bin/tar -cvzf /media/WDBlue/backup/ImagesMyPi/Octoprint"$(date '+%Y-%m-%d')".tgz /home/souti/OctoPrint/*
|
||||
/bin/tar -cvzf /media/WDBlue/backup/ImagesMyPi/saveOctoprintData"$(date '+%Y-%m-%d')".tgz --exclude=uploads --exclude=logs /home/souti/.octoprint/
|
||||
/bin/tar -cvzf /media/WDBlue/backup/ImagesMyPi/saveOctoprint2Data"$(date '+%Y-%m-%d')".tgz --exclude=uploads --exclude=logs /home/souti/.octoprint2/
|
||||
Reference in New Issue
Block a user