Backup to Onedrive

Backup to Onedrive

johan.degreef
Advisor Advisor
1,117 Views
9 Replies
Message 1 of 10

Backup to Onedrive

johan.degreef
Advisor
Advisor

I have copied the script that we use to make a Vault backup to "E:\ADMS\Backup" to use it for a backup to our Onedrive. Just modifying this line did not make it work. Anyone have an idea?

 

SET BackupFolder=E:\ADMS\Backup

SET BackupFolder="E:\ADMS\Backup\OneDrive - 6x6x3x9x6.seap.becloud.be"

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
1,118 Views
9 Replies
Replies (9)
Message 2 of 10

jorgen.bjornes
Collaborator
Collaborator

Is "E:\ADMS\Backup\OneDrive - 6x6x3x9x6.seap.becloud.be"  a valid local folder?

 

OneDrive typically has a local synced folder like "C:\Users\user.name\OneDrive - company\"

On a sidenote, I'm not sure I would trust onedrive for this task...

0 Likes
Message 3 of 10

johan.degreef
Advisor
Advisor

@jorgen.bjornes wrote:

Is "E:\ADMS\Backup\OneDrive - 6x6x3x9x6.seap.becloud.be"  a valid local folder?

 

OneDrive typically has a local synced folder like "C:\Users\user.name\OneDrive - company\"


By default it was C:\Users\user.name\One...., but i changed the path to another folder in the setup for Onedrive desktop. You refer to privacy reason for not using Onedrive for backup destination? What are the alternatives to have something outside the building?

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Message 4 of 10

jorgen.bjornes
Collaborator
Collaborator

Does the oneDrive sync work when you place files manually in that folder?

If so I assume it has to do with impersination user (the user that runs the ADMS)

 

I'm not trusting syncing of thousands of files every backup to work flawlessly in OneDrive. Been bitten too many times..

OneDrive is a syncing collaboration tool, not backup..

If this is a server, I usually trust IT to work with me to set up a trusted backup solution. I do not know details of suitable solutions.

 

Message 5 of 10

johan.degreef
Advisor
Advisor

@jorgen.bjornes wrote:

Does the oneDrive sync work when you place files manually in that folder?

If so I assume it has to do with impersination user (the user that runs the ADMS)


Yes, it also works when doing a backup through the ADMS pointing to the onedrive folder, but not automated with the script..

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Message 6 of 10

jorgen.bjornes
Collaborator
Collaborator

OK..  Which user is set up to run the backup script? 

And does this user have write access to the folder?

Message 7 of 10

johan.degreef
Advisor
Advisor

The only account ever used on that server, the admin account.

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Message 8 of 10

ihayesjr
Community Manager
Community Manager

You problem is not the script. It is the fact that OneDrive is not running when you perform the backup. You need to check Microsoft's documentation of how to run OneDrive headless.




Irvin Hayes Jr
Principal Product Manager
Autodesk, Inc.

Vault - Under the Hood Blog
Message 9 of 10

johan.degreef
Advisor
Advisor

@ihayesjr OK, thanks, will try to find the info.

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Message 10 of 10

ihayesjr
Community Manager
Community Manager

Maybe something like this.

windows - Syncing OneDrive (SkyDrive) with Batch File (via cmd) - Stack Overflow




Irvin Hayes Jr
Principal Product Manager
Autodesk, Inc.

Vault - Under the Hood Blog