Release [DEV]Pandora's Safe Box


KickAss

Very Active Member
Joined
Mar 9, 2011
Messages
604
Location
Germany
EDIT 1.1.2015:

It's on the repo now:

http://repo.openpandora.org/?page=detail&app=psb

I'm currently working on this advanced fork of ekianjos BGS.

Right now it looks like this:

Bildschirmfoto 2014-11-25 um 22.48.58.png

Bildschirmfoto 2014-11-25 um 22.49.19.png

backup, restore, gdrive upload... all works well.

now i figured: why not backup user specific settings as well?

after a full reflash all your settings can be restored with just one click.

PSB will iterate over a customizable config file with files and folders to backup.

which settings files/folders would you guys/girls want to get backed up by default?

ideas what kind of features you would want in a pandora specific backup app?

any input is very welcome!
 
Last edited by a moderator:
Heh - I'm simply using owncloud-sync for that :D
If your servers got decent enough uptime, thats prolly the best solution.


If you dont run your own server or dont want to pay for some, gdrive seems to work well enough.


Now tell me: which settings do you actually sync/back up?
 
what was most "annyoing" after a reflash was that I had to configure the desktop/pandora and network connections again, so maybe:

- network configurations

- various desktop/xfce settings
 
Totally if youd like it.


Didnt look into it, but i believe dropbox offers a rather friendly API.
 
Last edited by a moderator:
Let me get an initial properly working release on the repo. Dropbox (or any other service) support will follow along the way.
 
yo Kickass! Thanks for releasing this!

However I'm afraid it does not work :)

here is the pndout error I get when trying to do a backup: 

Backup dir:
/media/COCO/Syncthing
Game saves backup: TRUE
User settings backup: FALSE
Gdrive upload: FALSE
trying to read json file: /media/COCO/pandora/appdata/psb/games.json
json read!
Traceback (most recent call last):
  File "/mnt/utmp/psb/main.py", line 457, in <module>
    psb()
  File "/mnt/utmp/psb/main.py", line 145, in psb
    backupfile = makearchivefile(backupspecific(read_json(games_jsonfile)), mainmenu[1])
  File "/mnt/utmp/psb/main.py", line 290, in backupspecific
    directories.remove("hdd")
ValueError: list.remove(x): x not in list

I did not look at your code but it seems there is an error in the way you handle your paths...
 
Last edited by a moderator:
ha, interesting!

that part is actually your code :)

it seems as if, for some reason, there is no "hdd" directory in /media

in that case: list.remove("hdd") must fail, of course.

i'll fix that asap.
 
ha, interesting!

that part is actually your code :)

it seems as if, for some reason, there is no "hdd" directory in /media

in that case: list.remove("hdd") must fail, of course.

i'll fix that asap.
Yeah it's part of my code because I did not include any selection of location in my original BGS and you need to modify that part if you make the location flexible :)
 
i totally do:

https://github.com/dleicht/PSB

i figured:

with bgs, you started crawling the folders in /media for given .pnd files in your games list (now games.json).

the problem with this is, that quite a few devs append the version number to the pnd name. if the games list does not get updated accordingly, the app won't work as expected.

what's way less subject to change is the actual appdata folder. i think it makes more sense to crawl all the entries in the appdata folders on all the possible disks.

who care's if the pnd name changes.

even if you do use different versions of a .pnd, chances are the same appdata folder will be used and in terms of backups we are only interested in that.
 
i totally do:

https://github.com/dleicht/PSB

i figured:

with bgs, you started crawling the folders in /media for given .pnd files in your games list (now games.json).

the problem with this is, that quite a few devs append the version number to the pnd name. if the games list does not get updated accordingly, the app won't work as expected.

what's way less subject to change is the actual appdata folder. i think it makes more sense to crawl all the entries in the appdata folders on all the possible disks.

who care's if the pnd name changes.

even if you do use different versions of a .pnd, chances are the same appdata folder will be used and in terms of backups we are only interested in that.
Why not browsing /usr/share/applications/*.desktop then...
 
Back
Top