How to unmount / eject local USB drive after backup?

#1

The backup destination is a local USB drive on a Windows 2008 Server.

I would like Duplicati to unmount / eject the external local USB drive after the backup has completed.

Do I use the run-script-after command to run a script on exit?

If so what commands for the script could it be?

0 Likes

#2

Dear Luis,

I think this link can guide you to solve your issue:
Thread on Stackoverflow: How to safely remove a USB stick from a batch file
Looks like you could go with a PowerShell script…
In case PowerShell is not yet enabled on your Win2008 server, you can find a description how to do this in this TechRepublic article.
After finding your solution, it would be great if you shared it here!

Kind regards,
TeeLittle

0 Likes