[Release] Backup (formally XBMC Backup)

  Thread Rating:
  • 5 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ed_davidson Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #886
Hi there Rob,

I have a addon request for you if you don't mind. Is there any chance you could increase the custom folder backups from 2 to say 10? The reason for this is that there are only selected folders in my addon_data that I want backed up, namely my movie and TV favorites. So I would only be backing up say 8 addons.
Would this be possible?

Also would you know if the addon subcritions and xbmc library files are stored in the individual addons or somewhere else.

Last thing. Have you seen how the totalxbmc.tv guys restore there community builds to get the guisettings to stick. They restore in 2 zip files. These files are stored in a server that doesn't use a captcha. Might be worth a look.
find quote
MrNice Offline
Senior Member
Posts: 223
Joined: Oct 2013
Reputation: 0
Post: #887
Hi,

I run Backup in Openelec Raspberry Pi.
Is there a way to backup some files from the root directory? These files are scripts .sh.

Config, audio player only:
HDD <USB> Sitecom 4port powered mini-hub <USB> RPi <HDMI> Denon AVR-2313 <HDMI-DVI> 22"Monitor
find quote
RustyTongueRing Offline
Member
Posts: 53
Joined: Jun 2013
Reputation: 1
Post: #888
First off, I love this addon and it has saved me plenty of time when setting up fresh installs.

I only have a couple questions. I have Openelec 5.0.6 on a Rpi that never gets turned off and I have it set to dim the screen after xx minutes. Usually I have Backup run once a week in middle of the night, but sometimes I have to restart the pi because it doesn't always wake up properly and the screen stays dim.

My problem is that when I restart the backup also starts which obviously slows the pi down especially being on wifi and of course this takes time to finish. I don't seem to have this on other devices so maybe I'm missing something obvious :\

Is this normal behavior for it to start on restart? Is there a way to stop/cancel the backup while in progress?

Any help would be greatly appreciated.
find quote
robweber Offline
Posting Freak
Posts: 989
Joined: Sep 2009
Reputation: 30
Post: #889
(2015-03-19 04:23)ed_davidson Wrote:  Hi there Rob,

I have a addon request for you if you don't mind. Is there any chance you could increase the custom folder backups from 2 to say 10? The reason for this is that there are only selected folders in my addon_data that I want backed up, namely my movie and TV favorites. So I would only be backing up say 8 addons.
Would this be possible?

Also would you know if the addon subcritions and xbmc library files are stored in the individual addons or somewhere else.

Last thing. Have you seen how the totalxbmc.tv guys restore there community builds to get the guisettings to stick. They restore in 2 zip files. These files are stored in a server that doesn't use a captcha. Might be worth a look.

I'm not going to add any more custom folders to the settings area, I think that just gets too cluttered. I have had an idea for a while though that would accomodate users that have more elabroate setups. The basic idea is to allow for a special xml file that you can define as many files or folder locations as you want. The format would be something like:

Code:
<backup>
  <path>/path/to/file.txt</path>
  <path>/path/to/folder/</path>
</backup>

There are a few catches to work out with this method but then anyone who needs to can define their own backup needs without having to modify the basic settings, which work well for most users. Would this be something that would help you? The xbmc library files are in the userdata/Database folder and the individual addon data is in the userdata/addon_data folder. If setting up custom paths you'll want to include this.

Regarding the totalxbmc.tv method of "restoring" the guisetting.xml file. I found the source for their addon and took a look. What they are doing is using the built in Skin.SetString, Skin.SetBool, etc methods to programatically set settings related to individual skins. This works well for skin settings but doesn't restore any of the system settings that are in this file. It is an interesting approach though. I do see there is some progress on the JSONRPC way of getting and setting system settings as well. I still think just being allowed to replace the file is a lot better than having to read in the old and manually place the settings but these could be doable work arounds.

(2015-03-20 11:30)MrNice Wrote:  Hi,

I run Backup in Openelec Raspberry Pi.
Is there a way to backup some files from the root directory? These files are scripts .sh.

See my above response. Right now you can only set a path to a folder to custom backup. If I follow through with the custom path option I detailed above files would be available to you.
(2015-03-20 14:03)RustyTongueRing Wrote:  First off, I love this addon and it has saved me plenty of time when setting up fresh installs.

I only have a couple questions. I have Openelec 5.0.6 on a Rpi that never gets turned off and I have it set to dim the screen after xx minutes. Usually I have Backup run once a week in middle of the night, but sometimes I have to restart the pi because it doesn't always wake up properly and the screen stays dim.

My problem is that when I restart the backup also starts which obviously slows the pi down especially being on wifi and of course this takes time to finish. I don't seem to have this on other devices so maybe I'm missing something obvious :\

Is this normal behavior for it to start on restart? Is there a way to stop/cancel the backup while in progress?

Any help would be greatly appreciated.


Do you have a log file of this happening? The addon should be re-calculating when it does the next backup based on the current system time. So if you did 12am every night and you rebooted the computer at 1am, it would want to do a backup at 12am the next night. There isn't a mechanism in place for accounting for a missed backup due to the system being off. The log file when you boot should contain information on when the scheduler is going to try and run.
find quote
ed_davidson Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #890
Hi Rob,
I have no idea how to code, but what you have described sounds great. That would allow me to backup custom folders and any number I liked.

Regarding the guisettings.xml file, I thought it only stored the skin settings and nothing more. Am I wrong? What else does it store.

What files are included in the config files that you have the backup option for?

Regards
find quote
robweber Offline
Posting Freak
Posts: 989
Joined: Sep 2009
Reputation: 30
Post: #891
There are other settings in the guisettings.xml file. Examples would include things like your localization info (timezone, etc), display settings per window. Just lots of things that are in the Settings dialogs really.

The config files backup any of the xml files you'd see in your userdata folder. These are sources.xml, advancedsettings.xml, keymap.xml, and guisettings.xml. There may be a few more in there but those are the big ones.
find quote
casualbeta Offline
Junior Member
Posts: 2
Joined: Mar 2015
Reputation: 0
Post: #892
Hey there folks!

I am having trouble with the backup addon. I am trying to backup the addons on a USB stick but I had no luck so far. Is there something I am missing? What would be the proper path to back up on a USB stick?
find quote
Madchester312 Offline
Member
Posts: 63
Joined: Apr 2013
Reputation: 0
Post: #893
Hi guys.

This looks great only just noticed it. I have no idea in coding so please forgive me if this is a stupid question or been answered before. Woukd this tool be able to replace files that are there. So like if I had folder in suowr favourites an then had updated on one of my boxes but wanted it on my other device. Would this remove the old file an replace it with the new one ?

Am assuming you can just use this addon on a device thsts already setup an just replace files.

I've tried a few other addons thry just seem to add a file or folder an not replace a specific folder. Hope this make sense. Sorry again if uts been answered or dumb question.

Great work
find quote
robweber Offline
Posting Freak
Posts: 989
Joined: Sep 2009
Reputation: 30
Post: #894
(2015-03-25 04:24)casualbeta Wrote:  Hey there folks!

I am having trouble with the backup addon. I am trying to backup the addons on a USB stick but I had no luck so far. Is there something I am missing? What would be the proper path to back up on a USB stick?

You should be able to browse for the path. The specifics path depends a lot on the system you are using. Windows, Mac, Linux, etc.

(2015-03-25 15:27)Madchester312 Wrote:  Hi guys.

This looks great only just noticed it. I have no idea in coding so please forgive me if this is a stupid question or been answered before. Woukd this tool be able to replace files that are there. So like if I had folder in suowr favourites an then had updated on one of my boxes but wanted it on my other device. Would this remove the old file an replace it with the new one ?

Am assuming you can just use this addon on a device thsts already setup an just replace files.

I've tried a few other addons thry just seem to add a file or folder an not replace a specific folder. Hope this make sense. Sorry again if uts been answered or dumb question.

Great work

This addon has both a backup and restore mode. You can replace files with the restore mode. It doesn't check for age, it copies over everything from the restore folder to the destination.
find quote
Madchester312 Offline
Member
Posts: 63
Joined: Apr 2013
Reputation: 0
Post: #895
Hi thanks for the reply

Yes I have just used it an it perfect just what I need. Thanks

Don't suppose there a way to add 1 or 2 more custom directorys

Also would it be possible to get a file from a url rarther thank Dropbox ?? I have my own webspace so would be great to just pull my backuo from there.

Amazing work thank you



Edit. My mistake I have read above regarding the extra custom directorys

Your xml idea sounds spot on a would a great benefit to a lot people. I look forward to hearing progress on thst idea. Any testing I sm
Happy to help.
In regards to option to get a restore file or send a backuo to webspace woukd be great if it's possible.

Can't beleive I've never seen this before thanks.
(2015-03-25 20:03)robweber Wrote:  
(2015-03-25 04:24)casualbeta Wrote:  Hey there folks!

I am having trouble with the backup addon. I am trying to backup the addons on a USB stick but I had no luck so far. Is there something I am missing? What would be the proper path to back up on a USB stick?

You should be able to browse for the path. The specifics path depends a lot on the system you are using. Windows, Mac, Linux, etc.

(2015-03-25 15:27)Madchester312 Wrote:  Hi guys.

This looks great only just noticed it. I have no idea in coding so please forgive me if this is a stupid question or been answered before. Woukd this tool be able to replace files that are there. So like if I had folder in suowr favourites an then had updated on one of my boxes but wanted it on my other device. Would this remove the old file an replace it with the new one ?

Am assuming you can just use this addon on a device thsts already setup an just replace files.

I've tried a few other addons thry just seem to add a file or folder an not replace a specific folder. Hope this make sense. Sorry again if uts been answered or dumb question.

Great work

This addon has both a backup and restore mode. You can replace files with the restore mode. It doesn't check for age, it copies over everything from the restore folder to the destination.
(This post was last modified: 2015-03-26 14:08 by Madchester312.)
find quote
Pussy Offline
Junior Member
Posts: 15
Joined: Feb 2015
Reputation: 0
Post: #896
How do you save the main menu and sub menus from a skin that you had before for example i'm example i currently use [ Aeon Nox ]
find quote
robweber Offline
Posting Freak
Posts: 989
Joined: Sep 2009
Reputation: 30
Post: #897
That's a good question. I guess it depends on how the skin is storing that stuff. Some skins just dump stuff to the guisettings.xml file as variables. I use reFocus, which uses the Skin Shortcuts addon. That addon makes files in the addon_data folder so that would need to be backed up. I guess just with your specific skin author, or somewhere on their forum. I would be surprised if it wasn't either in guisettings or the addon_data folder somewhere.
find quote
Madchester312 Offline
Member
Posts: 63
Joined: Apr 2013
Reputation: 0
Post: #898
I use nebular an that uses the same method. In adon_data there a shortcuts xml that will handle most submenu items. Other settings are in the gui lie the main menu layout fanart and icons ect

rob di u think uploading and downloads restore and back to and from
Webspace would be something you can do or even consider ??

Thank in advanced for your reply
find quote
Post Reply