Hi,
just a question.
I was questionning about doing backup everyday to our ftp of our customer.
Can it be a SDcard killer?
Here some part of our script with archive creation and cleaning file.
just a question.
I was questionning about doing backup everyday to our ftp of our customer.
Can it be a SDcard killer?
Here some part of our script with archive creation and cleaning file.
Code:
-- prepare files for backup
os.execute('sh /lib/genohm-scada/web/general/backup.sh')
-- create archive
os.execute('cd /lib/genohm-scada/storage && tar -c -z -f ' .. dst .. ' ./')
......
......
-- cleanup
os.execute('cd /home/ftp && rm -rf backup-*')
--os.execute('cd /home/ftp && rm -rf backup_*') --Line 42 is incorrect. It leads to old backups not being removed.
--os.execute('cd /lib/genohm-scada/storage && rm -rf user userlib.luas blockly.luas initscript.lua helpers.js genohm-scada.config filter*')
-----------
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT
FRANCE SMARTHOME & SMARTBUILDING INTEGRATION
SE ECO EXPERT