Comments (16)
Also referenced is #78
from xbmcbackup.
Whats the fastest way to restore a built? computer or dropbox or ...
from xbmcbackup.
@W4CROBSTER - not sure what you mean by this, it's not really related to the issue at all. Please use the Kodi forum for general questions: http://forum.kodi.tv/showthread.php?tid=129499
from xbmcbackup.
I think i have the same issue on my RPi3+LibreElec 8.1.2.
Can't check the compress option. Every try with it gives error and stops the backup process!
Doesn't matter where the backup location is (at the moment a cifs folder is via system.d mounted).
On my /flash 370.3M free
On my /storage 11.0G free
`EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.MemoryError'>
Traceback (most recent call last):
File "/storage/.kodi/addons/script.xbmcbackup/scheduler.py", line 156, in
BackupScheduler().start()
File "/storage/.kodi/addons/script.xbmcbackup/scheduler.py", line 57, in start
backup.run(XbmcBackup.Backup,True)
File "/storage/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 256, in run
filesCopied = self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs)
File "/storage/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 482, in backupFiles
wroteFile = dest.put(aFile,dest.root_path + aFile[len(source.root_path):])
File "/storage/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 97, in put
self.zip.writestr(utils.encode(dest),aFile.read())
File "/usr/lib/python2.7/zipfile.py", line 1243, in writestr
MemoryError
-->End of Python script error report<--`
My settings.txt
from xbmcbackup.
Hi,
This would be a very handy feature for people runing on a RPI.
Is there any progress on this?
Thanks
from xbmcbackup.
This is a much requested feature. The issue I have with implementation are issues with the zip implementation python.
In order to create the zip file it has to be staged somewhere. Ideally I'd like to write the zip directly to the destination on the fly, however the xbmcvfs module won't do this. It only handles basic file processes like copy, remove, list, etc. So when using the python zip module I have to give it a path to stage the zip file before the copy to the remote repository. The zip module will only write to a local type of file system (or a system that appears local).
I can offer the ability to place the zip file in a different location, however the limitation would be that it has to be local. IF you can use a mount command or windows network share to make an SMB drive appear local this would work. Would this even be worth it for most people? I'm really not sure. Thoughts?
from xbmcbackup.
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs.
from xbmcbackup.
Ignore the above comment, Probot went crazy and is ignoring the parameters I gave it.
from xbmcbackup.
This is a much requested feature. The issue I have with implementation are issues with the zip implementation python.
In order to create the zip file it has to be staged somewhere. Ideally I'd like to write the zip directly to the destination on the fly, however the xbmcvfs module won't do this. It only handles basic file processes like copy, remove, list, etc. So when using the python zip module I have to give it a path to stage the zip file before the copy to the remote repository. The zip module will only write to a local type of file system (or a system that appears local).
I can offer the ability to place the zip file in a different location, however the limitation would be that it has to be local. IF you can use a mount command or windows network share to make an SMB drive appear local this would work. Would this even be worth it for most people? I'm really not sure. Thoughts?
I'd like to be able to change this as well. If we can specify a location we could use a symlinked dir to an external drive .
from xbmcbackup.
I get the frustration but I really struggle with this from a usability standpoint. This is a really advanced request that could easily not work for people that don't understand the nuances of local vs remote folders on their systems. I'm currently re-working the settings system to use the basic/standard/advanced/expert modes much like the other Kodi settings areas (#176). Once that is done I think this might be worth the effort as I can include some help text and hide it within the Expert editor.
from xbmcbackup.
Is changing the temp location that advanced? USB drives are auto-mounted in Libreelec so it would be much like selecting which folders to backup?
from xbmcbackup.
The implementation is trivial, the usage is advanced. I always hesitate to add something that 99% of users will mess up trying to use properly. I think the settings levels will really help in this case though.
from xbmcbackup.
Sorry, I think I'm missing something, how would changing the temp location cause any issues for anyone?
from xbmcbackup.
It's sort of summarized above. It HAS to be a local directory or the built in python zip file system won't work. I can see lots of people choosing non-local systems (smb folders for example) and having issues with it not working and throwing errors.
from xbmcbackup.
Ah yes OK I guess Kodi does make accessing remote file systems easy. I can't think that many would want to change it but if you feel like it's best hiding, your call.
from xbmcbackup.
Merged this into the matrix branch only. Info on it's use also added to the wiki. Main points are:
- It must be a local directory to the device you are running Kodi on. A mounted path like
H:\foo
or/mnt/bar
should probably work. Use of Kodi paths likesmb://host/path
will fail. This is a limitation of the Python zip library. - Don't put a path that you're also backing up. This will create a recursion.
This is an expert setting, use at your own risk.
from xbmcbackup.
Related Issues (20)
- Error when running or starting - missing package? HOT 3
- Invalid sytntax
- Error 'ModuleNotFoundError' HOT 1
- How to install beta channel? HOT 2
- 1.6.7: won't remember settings HOT 4
- Dropbox error "Authorize this remote service in the settings first" HOT 3
- float division by zero when attempting to write file with "Compress Archives" HOT 1
- Feature Request: Restore Backup from CLI HOT 4
- "Error: Remote or zip file path doesn't exist" HOT 1
- 🖐️Backup incompatible with kodi 20 Nexus HOT 4
- Cloud Storage Dropbox HOT 1
- Unable to restore a backup from another device HOT 2
- Unable to restore on kodi 20 HOT 1
- Ajouter un libeller sur le nom de l'archive zip HOT 1
- [FEATURE] Export databases as nfo HOT 1
- 👋Failed Installations (Inpustream...) HOT 8
- Wrong date parse (locale) HOT 5
- Scripting Restore HOT 5
- Hangs endlessly HOT 1
- Cannot restore from SMB filesystem HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbmcbackup.