In the post backup event, you first have to create a line to robocopy contents back to the Google drive, else it will still not be copied there. Then the temporary directory can be deleted.
Disclaimer: Accessing the information on this page means you agree to the Sites Terms of Service
As of 2024, Cobian Reflector and Cobian Backup won't recognize the virtual G: Drive that is created by the Google Drive app.
There is a workaround that works just fine which involves a command line program called Robocopy where you copy the contents of your Google G: drive over to a temporary folder, back that folder up, and then delete the temp folder when you're done.
Robocopy
Manual: https://learn.microsoft.com/en-us/windows-server/administration/windows-...
Download: It should already be in Windows starting with 10. If you don't have 10, you might have to do some digging to find it.
Note: I only tested this with files that are set to "Offline". I have no idea if the Stream Only files will work the same way.
1) Create a temporary folder where you want the files to be copied
Example: C:\G Drive Backup
Note: You MUST create a source folder in order to add the source in Cobain. Otherwise it will complain. The folder will be deleted in a later step even though it's also being automatically created in a later step, but that's OK.
2) Create a Cobian backup task like normal but point the source files to: C:\G Drive Backup
3) Go to the events tab
4) In the Pre-backup events, click: Add -> Command Line
Enter: robocopy /E "G:\My Drive\{Files/Folder to copy}" "C:\G Drive Backup"
(Change C:\G Drive Backup to whatever folder you created)
Put a check in "Wait for completion".
5) In the Post-backup events, click: Add -> Command Line
Enter: rmdir /s /q "C:\G Drive Backup"
(Change C:\G Drive Backup\tmp to whatever folder you created)
Put a check in "Wait for completion".
6) Optional (recommended): Enter checks in the boxes: Cancel the task if some event fails and Do not execute if pre-backup events failed
7) Test the backup to make sure it worked.
Again, I don't know if the Stream Only option will copy anything of value, so be sure to check the actual backup after testing.
Hope that helps!
In the post backup event, you first have to create a line to robocopy contents back to the Google drive, else it will still not be copied there. Then the temporary directory can be deleted.
Post Comment