Skip to content

Commit

Permalink
Enable tar backup creation on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed Nov 17, 2023
1 parent 83d56ef commit 72ed80b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "json.h"
#include "crypto/random.h"

#define EXT_PROCESS_TIMEOUT 10000
#define EXT_PROCESS_TIMEOUT 30000

using TmpFiles = std::array<const char*, 3>;

Expand Down Expand Up @@ -236,7 +236,8 @@ bool BAK_ExportConfiguration(deCONZ::ApsController *apsCtrl)
{
logfilesDirectories += QLatin1String("homebridge-install-logfiles");
}

#endif
#ifdef Q_OS_UNIX
{
QStringList args;
args.append("-cf");
Expand All @@ -246,10 +247,11 @@ bool BAK_ExportConfiguration(deCONZ::ApsController *apsCtrl)
args.append("deCONZ.conf");
args.append("zll.db");
args.append("session.default");
#ifdef Q_OS_LINUX
args.append(FirstFileName);
args.append(SecondFileName);
args.append(logfilesDirectories);

#endif
archProcess.start("tar", args);
}
#endif
Expand Down

0 comments on commit 72ed80b

Please sign in to comment.