commit c39b5d540a358f4cde5d5246f75e4d12ef21dabe Author: robweber Date: Tue Apr 17 16:03:45 2012 -0500 first commit - kind of works diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..9bd8de2 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2010 Rob Weber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..e69de29 diff --git a/addon.xml b/addon.xml new file mode 100644 index 0000000..1b776a5 --- /dev/null +++ b/addon.xml @@ -0,0 +1,15 @@ + + + + + + + executable + + + + + all + + diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 0000000..e69de29 diff --git a/default.py b/default.py new file mode 100644 index 0000000..361c4a1 --- /dev/null +++ b/default.py @@ -0,0 +1,19 @@ +import xbmc +import xbmcaddon +import xbmcvfs +import shutil + +#get the addon class +__addon_id__ = 'script.xbmcbackup' +Addon = xbmcaddon.Addon(__addon_id__) + +def syncFiles(): + xbmc.log(xbmc.translatePath("special://profile")) + xbmc.log(Addon.getSetting("remote_path")) + + if(xbmcvfs.exists(Addon.getSetting("remote_path") + "profile")): + shutil.rmtree(Addon.getSetting("remote_path") + "profile") + + shutil.copytree(xbmc.translatePath("special://profile"),Addon.getSetting("remote_path") + "profile") + +syncFiles() diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..800ab84 Binary files /dev/null and b/icon.png differ diff --git a/resources/settings.xml b/resources/settings.xml new file mode 100644 index 0000000..11292e8 --- /dev/null +++ b/resources/settings.xml @@ -0,0 +1,6 @@ + + + + + +