Kodi Community Forum
[Release] Backup (formerly XBMC Backup) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Release] Backup (formerly XBMC Backup) (/showthread.php?tid=129499)



RE: [Release] XBMC Backup - prynn - 2012-08-12

(2012-08-09, 15:09)robweber Wrote: I'm not sure why you wouldn't be able to just manually type, or browse to a path. I'm using the XBMC built-in path browser so you should be able to see anything XBMC can normally see. You could try wiping out the addon settings file in userdata/addon_data and redefining your settings from scratch. There aren't that many so maybe it would fix your path problem.

I can now finally do a full backup/restore through this addon. When I removed the userdata the browse path came back and I'm simply changed it from NFS to SMB which is working fantastic now. The backup job goes to the same path just now it goes through SMB. Wink

Thanks alot for the help and for a really nice addon!


RE: [Release] XBMC Backup - robweber - 2012-08-17

Thanks for everyone who has been using this addon and providing feedback here. I committed a bunch of changes today.

1) I updated all of the log commands to (I hope) properly encode non-ascii characters so that the error messages a lot of people are seeing go away. I've tried backup/restore operations and a bunch of different addons that I know to contain files with international characters in the naming.

2) A much requested feature, timestamped backups. From now on all backup operations create a folder in the format MDYYYY for each backup. If you schedule, or like to do multiple backups; you can now go back to look at files you had on specific days for restore purposes. Accordingly the restore operation now asks for the backup filename (just the folder name) within the backup directory so it will pull the restore files from that folder.

Before submitting to the repo I've rolled out the new version (0.1.3) and posted it as a zip on the project Github page. Here is a link: https://github.com/downloads/robweber/xbmcbackup/script.xbmcbackup.0.1.3.zip

Thanks to anyone brave enough to test it out. Please post your results back here after trying it out. Thanks.


RE: [Release] XBMC Backup - robweber - 2012-08-20

Quick update for anyone using a Frodo build of XBMC. I noticed over the weekend that a few months ago a listdir() function was added to the xbmcvfs module. The addition of this function allowed me to remove the JSON vfs.py library that the xbmc backup addon currently uses and instead use the native xbmcvfs module for all directory listing and copy operations.

I've started coding in a separate Git branch in anticipation of moving to this when Frodo is launched. Anyone running a Frodo build of XBMC from around June onward should be able to try it out and post comments back here. There is also a download link for those that don't want to pull it themselves.

https://github.com/robweber/xbmcbackup/tree/frodo-dev
https://github.com/downloads/robweber/xbmcbackup/script.xbmcbackup-frodo.zip




RE: [Release] XBMC Backup - Wanderlei - 2012-08-25

Installed this addon on OpenELEC version of XBMC on the R-Pi.

First time I tried to run it, "remote path cannot be empty" and it dosnt run.

Is there any advantage using this over just manually backing up the "userdata" folder?


Re: [Release] XBMC Backup - robweber - 2012-08-26

No, there is no advantage to using the addon compared to manually doing a backup; other than the convenience of being within xbmc and having dated backups. The restore option is also handy for quickly setting up a new system.

You must set a remote location first before tbe addon will run. Have you done this? I would recommend using the version linked on github a few posts up. The xbmc repo is slightly out of date but i will submit a pull request soon.


RE: [Release] XBMC Backup - ZeroRam - 2012-08-27

(2012-08-17, 22:09)robweber Wrote: Thanks for everyone who has been using this addon and providing feedback here. I committed a bunch of changes today.

1) I updated all of the log commands to (I hope) properly encode non-ascii characters so that the error messages a lot of people are seeing go away. I've tried backup/restore operations and a bunch of different addons that I know to contain files with international characters in the naming.

2) A much requested feature, timestamped backups. From now on all backup operations create a folder in the format MDYYYY for each backup. If you schedule, or like to do multiple backups; you can now go back to look at files you had on specific days for restore purposes. Accordingly the restore operation now asks for the backup filename (just the folder name) within the backup directory so it will pull the restore files from that folder.

Before submitting to the repo I've rolled out the new version (0.1.3) and posted it as a zip on the project Github page. Here is a link: https://github.com/downloads/robweber/xbmcbackup/script.xbmcbackup.0.1.3.zip

Thanks to anyone brave enough to test it out. Please post your results back here after trying it out. Thanks.

Just a quick suggestion regarding 2) above, when trying to find backups I would think YYYYMMDD option would be useful as all of the folders would then be in alphabetical order allowing for ease of finding them, just my two pence worth Smile


RE: [Release] XBMC Backup - robweber - 2012-08-28

(2012-08-27, 23:00)ZeroRam Wrote: Just a quick suggestion regarding 2) above, when trying to find backups I would think YYYYMMDD option would be useful as all of the folders would then be in alphabetical order allowing for ease of finding them, just my two pence worth Smile

Great suggestion - I like it. Before submitting the XBMC repo pull request I'll make sure this gets in there.




RE: [Release] XBMC Backup - Marcoevich - 2012-09-02

Hello,

I have reinstalled my XBMC system and backed up my data with your addon. Now when I want to restore I only get Err: remote path doesn't exist.

No matter what I try, I continuously get the error.

Can you please check for me if my settings are correct:

Image

PS: I have also tried C:\XBMC\ and C:\XBMC\xbmc_backup\addons\ but nothing seems to work.. What is the exact path that I need to enter so that your addon can find the backup?

Many thanks Big Grin

Marcoevich


RE: [Release] XBMC Backup - robweber - 2012-09-03

(2012-09-02, 16:37)Marcoevich Wrote: Hello,

I have reinstalled my XBMC system and backed up my data with your addon. Now when I want to restore I only get Err: remote path doesn't exist.

No matter what I try, I continuously get the error.

Can you please check for me if my settings are correct:

Image

PS: I have also tried C:\XBMC\ and C:\XBMC\xbmc_backup\addons\ but nothing seems to work.. What is the exact path that I need to enter so that your addon can find the backup?

Many thanks Big Grin

Marcoevich


The first section - remote path - should point to C:\XBMC\

The second section - backup name - should be the name of the folder within the C:\XBMC folder that contains your backup information. New versions of the program create dated backup folders within the main path so this is why you need to specify a folder name.

Hopefully that works for you. I'm adding an "issue" to the github tracker to make the incorrect path message a bit more meaningful such as: Cannot find path "C:\Xbmc\xbmc_backup\backup_date" since that is what your current settings are trying to find.



RE: [Release] XBMC Backup - Lunatixz - 2012-09-03

adding a service to run automated backups would be great! if you have a git let me know I can add it myself if you would like Smile


RE: [Release] XBMC Backup - Marcoevich - 2012-09-03

Thx man, your solution worked for me Wink Also good job on creating a more meaningful error message Wink The previous one was a bit unclear indeed.

Thanks again!


Re: RE: [Release] XBMC Backup - robweber - 2012-09-04

(2012-09-03, 07:52)Lunatixz Wrote: adding a service to run automated backups would be great! if you have a git let me know I can add it myself if you would like Smile

I agree, now that the addon does dated backups it would be easy to add a service timer. I also envision a setting for rotating backups (like past 5,10,etc) so you didnt end up with a growing stockpile.

If you want to attempt a service be my guest Smile The github link is https://github.com/robweber/xbmcbackup. Send a pull request with your changes.

Also, as a suggestion, take a look at the cronitor library from this addon https://github.com/robweber/xbmclibraryautoupdate. It is a cron timer for python that may help with the scheduler.


RE: [Release] XBMC Backup - Wanderlei - 2012-09-05

Cheers robweber

I will keep trying it because I am constantly updating with the nightly versions OpenELEC version of XBMC for the R-Pi.


RE: [Release] XBMC Backup - robweber - 2012-09-07

I have a little refactoring yet to do before merging with the main branch, but I couldn't resist uploading a working version of an automatic backup scheduler (as proposed by Lunatixz). Everything should be fully functional on it so anyone interested please try it out. Comments welcome as it isn't 100% finalized yet.

https://github.com/downloads/robweber/xbmcbackup/robweber-xbmcbackup-9bda205.zip


RE: [Release] XBMC Backup - Rhothgar - 2012-09-11

Hi Rob

Nice work there.

If I install from zip will this automatically update to 0.1.4?

Also, if I do that, presumably it would then knock it out of the XBMC Auto-Updates as this is not yet in official repo. Sorry if that is a stupid question. I'm new to this amd still finding my feet.

One more thing. I have tried in the past, unsuccessfully to save backups using folder names like Base_Installation, Sports, etc.. But it will only write if it is set to XBMC_Backup folder and will not save to other folders outside of this folder. If I place my Base_Installation folder within XBMC_Backup folder, will that work or does it only save with dates.

As I am experimenting at the moment, I don't mind using dates but will it overwrite backup on the same date or will it create 20120911 for 1st backup and 20120911(1) for 2nd backup?

Thansk again. Great work. I wish I had your abilities. A lot of people would feel the same.