Forum
Create backup as image on Server - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Create backup as image on Server (/thread-3080.html)



Create backup as image on Server - Starwhooper - 14th Aug, 2015 11:39 PM

Hi,

i use the dedicated xbian function to create a whole system backup in an image file.

When i use a local USB drive as destination, it works successful.

But when i choose a destination on a samba server (i tried my own PC an on my NAS as destination), i get 1 second after the start the note that its done.
There is no file created on the share. The account that mapped the share, has permission to write on the share.

Regards, Thiemo


RE: Create backup as image on Server - Starwhooper - 1st Sep, 2015 11:27 PM

Hi,

no idea regarding the issue ?

In the meantime i use the Filemanager to check the permission on the destination server. The Filemanager is able to copy a file from local to the Samba Server.

cu, Thiemo


RE: Create backup as image on Server - Skywatch - 5th Sep, 2015 06:17 PM

Same here.


RE: Create backup as image on Server - Starwhooper - 6th Sep, 2015 01:35 AM

I think, i found the reason of the issue.

The kodi Filemanager use the mounts that are configures within kodi.

The Xbian Backuptool seams only to start a command with the tool dd in the command line.
But in the CLI are the kodi mounts are not kown. That means, the dd command get a non exist folder as destination to create the image file.

To solve the issue, its needed to improve the xbian kodi backup function to mount the destination. Or its needed to mount the destination manually in the Linux environment.

Any idea how is able to report this bug ?


RE: Create backup as image on Server - Skywatch - 6th Sep, 2015 07:13 AM

Nice work! Cool

You need to report it here.... https://github.com/xbianonpi/xbian


RE: Create backup as image on Server - Starwhooper - 6th Sep, 2015 08:34 PM

(6th Sep, 2015 07:13 AM)Skywatch Wrote:  Nice work! Cool

You need to report it here.... https://github.com/xbianonpi/xbian

Thank you, i report it as case 763:
https://github.com/xbianonpi/xbian/issues/763


RE: Create backup as image on Server - Skywatch - 6th Sep, 2015 10:39 PM

Thank you - I gave you a rep for that! Wink


RE: Create backup as image on Server - Starwhooper - 20th Sep, 2015 04:47 AM

I get a reply to my report about this issue. The solution is, that in further time the mounts in kodi will be hidden in the list of possible destination.

But i still want backup my xbian inside of the kodi frontent to my fileserver. So please find below my workaround:

In the CLI of my Raspberry i create a additional folder and provide full access for everyone:
Terminal
mkdir /home/xbian/.kodi/imagebackup
chmod 777 /home/xbian/.kodi/imagebackup

As next i start the editor to add the mounting to my server in the rc.local (its a possibility to mount it after each start)
Terminal
sudo nano /etc/rc.local

In the rc.local, i add this line:
Code:
sudo mount -t cifs -o username=xxx,password=yyy //server/xbian /home/xbian/.kodi/imagebackup/
please note that you need to use your own user, passwort and destionation

After a restart its only needed to use the kodi filemanager to add the local folder /home/xbian/.kodi/imagebackup as source.
Now you could use the imagebackup as destination for a image file.

instead of the filemanager, you could also add this lines in the section <files> in file /home/xbian/.kodi/userdata/sources.xml
Code:
<source>
<name>imagebackup</name>
<path pathversion="1">/home/xbian/.kodi/imagebackup/</path>
<allowsharing>true</allowsharing>
</source>