Datto Drive: Enabling Logging For the Desktop Client

Follow

Scope:

This article will cover the steps needed to enable logging within the DattoDrive Desktop Client. This is typically useful when we are encountering errors and would like to gather log files to pass along to Datto Support for further troubleshooting.

Note: This is a different from the .owncloudsync.log log file that is automatically at the root of each synchronized directory locally.

Procedure:

The steps below are dependent on the OS you are running the client on

OSX

Windows

Linux

OSX:

Here, we will quit the application if it is currently started, and start the application from Terminal to ensure logging is enabled.

  1. Quit the Application

  2. Open up Terminal

    Navigate to the Utilities folder within Applications and double-click Terminal

     

  3. From here, enter the command as follows to start up the DattoDrive application in the background and prevent the application from being closed after closing the Terminal window.
    nohup /Applications/dattodrive.app/Contents/MacOS/dattodrive --logdir $HOME/dattodriveLogs --logexpire 168 &

    This will create a directory (dattodriveLogs) under your user's home directory to store the logs in and automatically clear logs out after 7 days. When working with Datto Technical Support, be sure to include all logs from this directory for review.

Windows:

Here, we will quit the application and modify a newly created desktop shortcut to run the application with the arguements we want.

  1. Quit the application

     

  2. Next, we'll browse to the directory "C:\Program Files (x86)\dattodrive" and right click the application and select Send To -> Desktop (create shortcut)

    This will create a shortcut on the desktop we can modify

  3. Right-click the desktop shortcut and replace the Target property with the following :
    "C:\Program Files (x86)\dattodrive\dattodrive.exe" --logdir %SYSTEMDRIVE%%HOMEPATH%\dattodriveLogs --logexpire 168
  4. Lastly, double-click the icon to start the application and logging.

    This will create a directory (dattodriveLogs) under your user's home directory to store the logs in and automatically clear logs out after 7 days. When working with Datto Technical Support, be sure to include all logs from this directory for review.

  5. The old default path is - "C:\Program Files (x86)\dattodrive\dattodrive.exe" for your datto drive target.

Linux:

These steps are very similar to the steps used for Mac. We'll ensure the application is quit, then start it with our arguments from the shell.

  1. Quit the application

     

  2. Open a shell program such as Terminal on Ubuntu.

     

  3. Execute the following command as the user who will be using the application
    DD=$(which dattodrive) && nohup $DD --logdir $HOME/dattodriveLogs --logexpire 168 &

    This will allow the Dattorive application to run the background even if the Terminal window is closed and continue logging. Logs will automatically be deleted after 7 days. Be sure to include all log files in this directory if working with Datto Technical Support


Was this article helpful?

0 out of 0 found this helpful

You must sign in before voting on this article.

Want to talk about it? Head on over to our Community Forum!