Skip to content

Commit

Permalink
(simatec) Fix redis backup
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Sep 27, 2023
1 parent 3486187 commit ed8a5d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ When the adapter crashes or another Code error happens, this error message that

## Changelog
<!-- ### **WORK IN PROGRESS** -->
### **WORK IN PROGRESS**
* (simatec) Fix redis backup

### 2.8.1 (2023-09-12)
* (simatec) Fix roles
* (simatec) help-links added
Expand Down
3 changes: 2 additions & 1 deletion lib/scripts/32-redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ async function command(options, log, callback) {
const child_process = require('child_process');

try {
child_process.exec(`redis-cli -u 'redis://${options.user}:${options.pass}@${options.host}:${options.port}' --rdb ${path.join(tmpDir, 'dump.rdb').replace(/\\/g, '/')}`, (error) => {
//child_process.exec(`redis-cli -u 'redis://${options.user}:${options.pass}@${options.host}:${options.port}' --rdb ${path.join(tmpDir, 'dump.rdb').replace(/\\/g, '/')}`, (error) => {
child_process.exec(`redis-cli -u 'redis://${options.user != '' && options.pass != '' ? `${options.user}:${options.pass}@` : ''}${options.host}:${options.port}' --rdb ${path.join(tmpDir, 'dump.rdb').replace(/\\/g, '/')}`, (error) => {
if (error) {
clearInterval(timer);
options.context.errors.redis = error.toString();
Expand Down

0 comments on commit ed8a5d1

Please sign in to comment.