Kodi Community Forum

Full Version: How to backup & restore XBMC using robocopy (Windows)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running XBMCbuntu and i know that there is a Backup addon that runs fine.
But maybe you just want to do an incremental backup as I do - very easy with a little script/batch file using robocopy:

robocopy /MIR /R:2 /W:10 /DST /FFT \\HTPC\System\userdata D:\BACKUP\XBMC\userdata

When run first time this command copies all files and folders of your XBMC userdata folder to the destination you choose. Of course you have to set the correct host name (HTPC in the example above) and destination path (D:\BACKUP\XBMC\userdata in the example above).

The next time you run the script it will copy only those files which are new and those which have changed. And it will delete all files from the destination which have been removed from the source -> mirroring (incremental backup).

You can check the switches and options of robocopy by entering
Code:
robocopy /?
in a command prompt window.
Or here http://technet.microsoft.com/de-de/libra...s.10).aspx

robocopy is a standard feature since Windows Vista and Windows Server 2008.

There is a GUI for creating this kind of scripts:
http://betterrobocopygui.codeplex.com/

Of course it should be possible to backup in a similar way on other operating systems using other tools like rsync etc.

Hope this is helpful. If there already is a how to like this anywhere here, please let me know.