Bonjour à tous,
Je dois malheureusement rouvrir un post concernant le restore sous Debian 12 à partir d’une sauvegarde sous ce même OS. Jeedom était créé de scratch avec install, puis j’ai procédé au restore.
A la suite de cela j’ai fait 3 constats:
- le répertoir core-master était à nouveau présent
- tous les fichiers présents dans root se sont restrouvés dans le répertoire /var/www/html/
- même après avoir effacé les fichiers mentionnés ci-dessus et avoir laissé tourmé la nuit, la taille de la sauvegarde est passée de 82MB à 186MB
Mon post précédent:
https://community.jeedom.com/t/taille-des-backups-sous-debian-12/135405
Le contenu actuel du répertoire:
Et le log du restore:
0000|[START RESTORE]
0001|***************Begin Jeedom restore 2025-01-01 18:26:39***************
0002|Send begin restore event...OK
0003|Checking rights...
0004|OK
0005|Restore from file : /var/www/html/core/class/../../backup/backup-sweethome-4.4.19-2025-01-01-04h34.tar.gz
0006|Backup database access configuration...OK
0007|Disable all task
0008|OK
0009|Disable all scenario OK
0010|Unpacking backup...
0011|OK
0012|Update composer file...
0013|OK
0014|[PROGRESS][58]
0015|Deleting database...Disabling constraints...OK
0016|Deleting table : cache ...
0017|OK
0018|Deleting table : cmd ...OK
0019|Deleting table : config ...OK
0020|Deleting table : cron ...OK
0021|Deleting table : dataStore ...OK
0022|Deleting table : eqLogic ...OK
0023|Deleting table : event ...OK
0024|Deleting table : history ...OK
0025|Deleting table : historyArch ...OK
0026|Deleting table : interactDef ...OK
0027|Deleting table : interactQuery ...OK
0028|Deleting table : listener ...OK
0029|Deleting table : message ...OK
0030|Deleting table : note ...OK
0031|Deleting table : object ...OK
0032|Deleting table : plan ...OK
0033|Deleting table : plan3d ...OK
0034|Deleting table : plan3dHeader ...OK
0035|Deleting table : planHeader ...OK
0036|Deleting table : scenario ...OK
0037|Deleting table : scenarioElement ...OK
0038|Deleting table : scenarioExpression ...OK
0039|Deleting table : scenarioSubElement ...OK
0040|Deleting table : timeline ...OK
0041|Deleting table : update ...OK
0042|Deleting table : user ...OK
0043|Deleting table : view ...OK
0044|Deleting table : viewData ...OK
0045|Deleting table : viewZone ...OK
0046|Deleting table : widgets ...OK
0047|Restoring database from backup...OK
0048|Enable back constraints...OK
0049|Restoring cache...OK
0050|npm error code ELSPROBLEMS
0051|npm error extraneous: accepts@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/accepts
0052|npm error extraneous: array-flatten@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/array-flatten
0053|npm error extraneous: asynckit@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/asynckit
0054|npm error invalid: axios@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/axios
0055|npm error extraneous: balanced-match@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/balanced-match
0056|npm error extraneous: base64-js@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/base64-js
0057|npm error extraneous: bl@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/bl
0058|npm error extraneous: body-parser@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/body-parser
0059|npm error extraneous: brace-expansion@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/brace-expansion
0060|npm error extraneous: buffer-from@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/buffer-from
0061|npm error extraneous: buffer@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/buffer
0062|npm error extraneous: bytes@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/bytes
0063|npm error extraneous: call-bind@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/call-bind
0064|npm error extraneous: combined-stream@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/combined-stream
0065|npm error extraneous: commist@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/commist
0066|npm error extraneous: concat-map@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/concat-map
0067|npm error extraneous: concat-stream@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/concat-stream
0068|npm error extraneous: content-disposition@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/content-disposition
0069|npm error extraneous: content-type@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/content-type
0070|npm error extraneous: cookie-signature@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/cookie-signature
0071|npm error extraneous: cookie@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/cookie
0072|npm error extraneous: debug@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/debug
0073|npm error extraneous: define-data-property@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/define-data-property
0074|npm error extraneous: delayed-stream@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/delayed-stream
0075|npm error extraneous: depd@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/depd
0076|npm error extraneous: destroy@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/destroy
0077|npm error extraneous: duplexify@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/duplexify
0078|npm error extraneous: ee-first@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/ee-first
0079|npm error extraneous: encodeurl@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/encodeurl
0080|npm error extraneous: end-of-stream@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/end-of-stream
0081|npm error extraneous: es-define-property@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/es-define-property
0082|npm error extraneous: es-errors@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/es-errors
0083|npm error extraneous: escape-html@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/escape-html
0084|npm error extraneous: etag@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/etag
0085|npm error invalid: express@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/express
0086|npm error extraneous: finalhandler@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/finalhandler
0087|npm error extraneous: follow-redirects@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/follow-redirects
0088|npm error extraneous: form-data@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/form-data
0089|npm error extraneous: forwarded@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/forwarded
0090|npm error extraneous: fresh@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/fresh
0091|npm error extraneous: fs.realpath@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/fs.realpath
0092|npm error extraneous: function-bind@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/function-bind
0093|npm error extraneous: get-intrinsic@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/get-intrinsic
0094|npm error extraneous: glob@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/glob
0095|npm error extraneous: gopd@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/gopd
0096|npm error extraneous: has-property-descriptors@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/has-property-descriptors
0097|npm error extraneous: has-proto@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/has-proto
0098|npm error extraneous: has-symbols@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/has-symbols
0099|npm error extraneous: hasown@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/hasown
0100|npm error extraneous: help-me@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/help-me
0101|npm error extraneous: http-errors@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/http-errors
0102|npm error extraneous: iconv-lite@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/iconv-lite
0103|npm error extraneous: ieee754@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/ieee754
0104|npm error extraneous: inflight@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/inflight
0105|npm error extraneous: inherits@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/inherits
0106|npm error extraneous: ipaddr.js@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/ipaddr.js
0107|npm error extraneous: js-sdsl@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/js-sdsl
0108|npm error extraneous: leven@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/leven
0109|npm error extraneous: lru-cache@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/lru-cache
0110|npm error extraneous: media-typer@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/media-typer
0111|npm error extraneous: merge-descriptors@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/merge-descriptors
0112|npm error extraneous: methods@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/methods
0113|npm error extraneous: mime-db@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mime-db
0114|npm error extraneous: mime-types@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mime-types
0115|npm error extraneous: mime@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mime
0116|npm error extraneous: minimatch@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/minimatch
0117|npm error extraneous: minimist@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/minimist
0118|npm error extraneous: mqtt-packet@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt-packet
0119|npm error invalid: mqtt@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/mqtt
0120|npm error extraneous: ms@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/ms
0121|npm error extraneous: negotiator@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/negotiator
0122|npm error extraneous: number-allocator@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/number-allocator
0123|npm error extraneous: object-inspect@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/object-inspect
0124|npm error extraneous: on-finished@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/on-finished
0125|npm error extraneous: once@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/once
0126|npm error extraneous: parseurl@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/parseurl
0127|npm error extraneous: path-is-absolute@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/path-is-absolute
0128|npm error extraneous: path-to-regexp@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/path-to-regexp
0129|npm error extraneous: process-nextick-args@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/process-nextick-args
0130|npm error extraneous: proxy-addr@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/proxy-addr
0131|npm error extraneous: proxy-from-env@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/proxy-from-env
0132|npm error extraneous: pump@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/pump
0133|npm error extraneous: qs@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/qs
0134|npm error extraneous: range-parser@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/range-parser
0135|npm error extraneous: raw-body@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/raw-body
0136|npm error extraneous: readable-stream@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/readable-stream
0137|npm error extraneous: reinterval@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/reinterval
0138|npm error extraneous: rfdc@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/rfdc
0139|npm error extraneous: safe-buffer@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/safe-buffer
0140|npm error extraneous: safer-buffer@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/safer-buffer
0141|npm error extraneous: send@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/send
0142|npm error extraneous: serve-static@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/serve-static
0143|npm error extraneous: set-function-length@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/set-function-length
0144|npm error extraneous: setprototypeof@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/setprototypeof
0145|npm error extraneous: side-channel@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/side-channel
0146|npm error extraneous: split2@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/split2
0147|npm error extraneous: statuses@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/statuses
0148|npm error extraneous: stream-shift@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/stream-shift
0149|npm error extraneous: string_decoder@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/string_decoder
0150|npm error extraneous: toidentifier@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/toidentifier
0151|npm error extraneous: type-is@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/type-is
0152|npm error extraneous: typedarray@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/typedarray
0153|npm error extraneous: unpipe@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/unpipe
0154|npm error extraneous: util-deprecate@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/util-deprecate
0155|npm error extraneous: utils-merge@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/utils-merge
0156|npm error extraneous: vary@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/vary
0157|npm error extraneous: wrappy@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/wrappy
0158|npm error extraneous: ws@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/ws
0159|npm error extraneous: xtend@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/xtend
0160|npm error extraneous: yallist@ /var/www/html/plugins/mqtt2/resources/mqtt2d/node_modules/yallist
0161|npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-01T17_29_20_001Z-debug-0.log
0162|Check jeedom consistency...[START CONSISTENCY]
0163|[START CHECK AND FIX DB]
0164|[END CHECK AND FIX DB]
0165|Check jeedom package...OK
0166|Check jeedom database...OK
0167|Check crons...
0168|Check filesystem right...OK
0169|Check jeedom object...OK
0170|Check jeedom cmd...OK
0171|Set cache hour...OK
0172|Check composer...OK
0173|Check nodejs...npm warn using --force Recommended protections disabled.
0174|Hit:1 http://deb.debian.org/debian bookworm InRelease
0175|Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
0176|Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
0177|Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
0178|Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
0179|Reading package lists...
0180|Reading package lists...
0181|Building dependency tree...
0182|Reading state information...
0183|lsb-release is already the newest version (12.0-1).
0184|build-essential is already the newest version (12.9).
0185|apt-utils is already the newest version (2.6.1).
0186|git is already the newest version (1:2.39.5-0+deb12u1).
0187|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0188|[Check Version NodeJS actuelle : v20.18.1 : [ OK ]
0189|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0190|Clean npm cache
0191|OK
0192|[END CONSISTENCY]
0193|OK
0194|Enable scenario : OK
0195|Enable task : OK
0196|Check Network Conf : OK
0197|Sending end restore event...OK
0198|Restore duration : 223s
0199|***************Jeedom Restore End***************
0200|[END RESTORE SUCCESS]
Jeedom utilise l’espace suivant:
$ du -h --max-depth=1 /var/www/html | sort -n -r
652M /var/www/html/plugins
352K /var/www/html/install
316K /var/www/html/mobile
269M /var/www/html/backup
123M /var/www/html/.npm
76K /var/www/html/tests
53M /var/www/html/3rdparty
45M /var/www/html/docs
44K /var/www/html/.github
40K /var/www/html/.tmb
36M /var/www/html/core
36K /var/www/html/resources
34M /var/www/html/.cache
24K /var/www/html/.config
14M /var/www/html/vendor
8.7M /var/www/html/.local
8.0K /var/www/html/script
8.0K /var/www/html/.well-known
4.0K /var/www/html/plugin_backup
4.0K /var/www/html/.ssh
3.1M /var/www/html/log
2.5M /var/www/html/desktop
2.3M /var/www/html/data
1.3G /var/www/html
Je ne sais pas si les erreurs npm sont pour une part responsables de cette situation ou s’il y a une autre explication?
Merci à tous pour votre aide