Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] XBian-backup
Thank you for your donation

Pages (4): « Previous 1 2 3 4
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: XBian-backup
26th Jul, 2016, 06:31 AM
Post: #46
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: XBian-backup
(26th Jul, 2016 03:45 AM)Nachteule Wrote:  
(26th Jul, 2016 03:02 AM)Peiote Wrote:  Do you use snapshot? Advisable?

Sure, I do. It is always better to have snapshots than to have no snaps Big Grin

Quote:Transmission settings, resume, etc are in home backups?

If you're using xbian-package-transmission package, yes - everything is in /home. But if the files you're leeching and seeding are in /home also, it would be better to make separate subvolume under /home and exclude this volume from snapshotting. Means your sd-card does not running full by snapshots and your leeching and seeding files are not in /home backup (supposing it does not make sense to backup them)

Sorry, what are snapshots then? The difference with home and card images?


I download with transmission to an external hdd. I use the add-on of Xbian, works great.
Find all posts by this user
Quote this message in a reply
26th Jul, 2016, 07:52 AM
Post: #47
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: XBian-backup
(26th Jul, 2016 06:31 AM)Peiote Wrote:  Sorry, what are snapshots then? The difference with home and card images?

See here

In our case, snapshots are very useful to restore a deconfigured system very fast and easy or copy older config files from snapshots into running system (this I'm doing very often Tongue)

But again, snapshots are not backups, because if medium is broken or file system is corrupt, all has been gone.

Quote:I download with transmission to an external hdd. I use the add-on of Xbian, works great.

Makes sense Smile
Find all posts by this user
Quote this message in a reply
27th Jul, 2016, 03:50 AM
Post: #48
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: XBian-backup
(26th Jul, 2016 07:52 AM)Nachteule Wrote:  
(26th Jul, 2016 06:31 AM)Peiote Wrote:  Sorry, what are snapshots then? The difference with home and card images?

See here

In our case, snapshots are very useful to restore a deconfigured system very fast and easy or copy older config files from snapshots into running system (this I'm doing very often Tongue)

But again, snapshots are not backups, because if medium is broken or file system is corrupt, all has been gone.

Quote:I download with transmission to an external hdd. I use the add-on of Xbian, works great.

Makes sense Smile
Understood (link broken, but I get it). Thanks.

Q: at what time are backups done? These days I am not turning off Kodi (I usually stop just Kodi so transmission keeps working) to get the backups done, but it seems it is not working.

Find all posts by this user
Quote this message in a reply
27th Jul, 2016, 05:20 AM
Post: #49
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: XBian-backup
Automatic backup is running by (ana)cron job, NOT by Kodi. Usually those daily/weekly/monthly jobs are running in the morning

see file /etc/anacrontab (anacron should be installed per default) and /etc/cron.d/anacron.
Find all posts by this user
Quote this message in a reply
28th Jul, 2016, 02:34 AM
Post: #50
Peiote Offline
Registered
Posts: 58
Joined: Mar 2016
Reputation: 0
RE: XBian-backup
(27th Jul, 2016 05:20 AM)Nachteule Wrote:  Automatic backup is running by (ana)cron job, NOT by Kodi. Usually those daily/weekly/monthly jobs are running in the morning

see file /etc/anacrontab (anacron should be installed per default) and /etc/cron.d/anacron.
Thanks.
Now it seems to be... WORKING Big Grin

Best regards
Find all posts by this user
Quote this message in a reply
10th Jun, 2017, 07:27 PM
Post: #51
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: XBian-backup
AFter a year of having this great function working I noticed that the server the backups go to was getting full.

A little investigation shows that although the 4 rpi backup directories had only 7 system backups in each, the recycle bin had 2.5TB of backups. Confused Of course I deleted them all and got a lot of space back. Smile

For some reason it had not occured to me that the 'old' backups were not fully deleted and ended up in the RB. Time for a cron job to clean the RB monthly I think!

Just thought that someone might find this useful.
Find all posts by this user
Quote this message in a reply
10th Jun, 2017, 09:04 PM
Post: #52
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: XBian-backup
(10th Jun, 2017 07:27 PM)Skywatch Wrote:  For some reason it had not occured to me that the 'old' backups were not fully deleted and ended up in the RB. Time for a cron job to clean the RB monthly I think!

Just thought that someone might find this useful.

What kind of server do you have. I'm running Debian 8 server and RPi's mounting backup share via NFS, RPI2 and iMX6 using samba share, but not having recycle bin configured for this share. Does'n t make sense for me
Find all posts by this user
Quote this message in a reply
26th Nov, 2017, 08:01 PM
Post: #53
deeej Offline
Registered
Posts: 19
Joined: Nov 2017
Reputation: 0
RE: XBian-backup
(4th Jun, 2016 03:30 AM)IriDium Wrote:  Currently the xbian-backup "/home to file"can only be run manually and then copied/FTP to alternative storage. The image is lost on a reboot and thus lost if you forget to copy it.

I think it would be helpful, like XBian image and snapshots, to have the ability to schedule automatic backups with an option to keep X number and also where it is stored.

This would allow users to have a "online" home backup which can be easily restored using the current restore function.

Another "idea" would be to have the xbian-backup mounted on a NTFS or ext4 partition, so that the partition could be read by most PC's which can't read BTRFS. Yes this bit would require a lot of work, so probably won't happen.

Just an idea but I think most people would appreciate it - especially if it runs in the background.

I agree that snapshots should give the same approach but this is only for the home directory and not system wide.

Very good idea!
Find all posts by this user
Quote this message in a reply
4th Mar, 2019, 08:34 PM
Post: #54
vifu Offline
Registered
Posts: 3
Joined: Mar 2019
Reputation: 0
RE: XBian-backup
Is there a way to check the contents of the xbian backups?

I have amended my /etc/default/xbian-snap to exclude the directory containing my media with "EXCLUDESUB=/media" and I can see that snapshots are being run correctly however I just wanted to check that they were still running correctly and to see what folders/files were in the backups?
Find all posts by this user
Quote this message in a reply
4th Mar, 2019, 11:01 PM (This post was last modified: 4th Mar, 2019 11:02 PM by Nachteule.)
Post: #55
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: XBian-backup
(4th Mar, 2019 08:34 PM)vifu Wrote:  Is there a way to check the contents of the xbian backups?

You can mount the image and check if everything is ok in the image
For example, if you want to check image file /mnt/kmxbibr/kmxbibr_xbian_image_2019-02-19.img,

run commands to inspect backup image (Click to View)
root@kmxbilr2 /mnt/kmxbibr # sudo modprobe loop
root@kmxbilr2 /mnt/kmxbibr # sudo kpartx -av kmxbibr_xbian_image_2019-02-19.img
add map loop0p1 (253:0): 0 204800 linear 7:0 2048
add map loop0p2 (253:1): 0 3997696 linear 7:0 206848
root@kmxbilr2 /mnt/kmxbibr # ls -la /dev/mapper
insgesamt 0
drwxr-xr-x 2 root root 100 Mär 4 13:40 .
drwxr-xr-x 16 root root 3800 Mär 4 13:40 ..
crw------- 1 root root 10, 236 Mär 4 13:40 control
lrwxrwxrwx 1 root root 7 Mär 4 13:40 loop0p1 -> ../dm-0
lrwxrwxrwx 1 root root 7 Mär 4 13:40 loop0p2 -> ../dm-1
root@kmxbilr2 /mnt/kmxbibr # sudo mkdir /tmp/root /tmp/boot
root@kmxbilr2 /mnt/kmxbibr # sudo mount /dev/mapper/loop0p1 /tmp/boot
root@kmxbilr2 /mnt/kmxbibr # sudo mount /dev/mapper/loop0p2 /tmp/root
root@kmxbilr2 /mnt/kmxbibr # ls -la /tmp/boot
insgesamt 35662
drwxr-xr-x 3 root root 16384 Jan 1 1970 .
drwxrwxrwt 8 root root 200 Mär 4 13:42 ..
-rwxr-xr-x 1 root root 21679 Jul 18 2017 bcm2708-rpi-0-w.dtb
-rwxr-xr-x 1 root root 21200 Jul 18 2017 bcm2708-rpi-b.dtb
-rwxr-xr-x 1 root root 21459 Jul 18 2017 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x 1 root root 20913 Jul 18 2017 bcm2708-rpi-cm.dtb
-rwxr-xr-x 1 root root 22505 Jul 18 2017 bcm2709-rpi-2-b.dtb
-rwxr-xr-x 1 root root 23596 Jul 18 2017 bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root 24499 Sep 22 01:46 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root 22316 Jul 18 2017 bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root 16006 Jul 18 2017 bcm2835-rpi-a.dtb
-rwxr-xr-x 1 root root 16122 Jul 18 2017 bcm2835-rpi-a-plus.dtb
-rwxr-xr-x 1 root root 16168 Jul 18 2017 bcm2835-rpi-b.dtb
-rwxr-xr-x 1 root root 16425 Jul 18 2017 bcm2835-rpi-b-plus.dtb
-rwxr-xr-x 1 root root 16301 Jul 18 2017 bcm2835-rpi-b-rev2.dtb
-rwxr-xr-x 1 root root 15994 Jul 18 2017 bcm2835-rpi-zero.dtb
-rwxr-xr-x 1 root root 17681 Sep 22 01:46 bcm2835-rpi-zero-w.dtb
-rwxr-xr-x 1 root root 16891 Jul 18 2017 bcm2836-rpi-2-b.dtb
-rwxr-xr-x 1 root root 18575 Sep 22 01:46 bcm2837-rpi-3-b.dtb
-rwxr-xr-x 1 root root 19087 Sep 22 01:46 bcm2837-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root 52296 Feb 4 21:12 bootcode.bin
-rwxr-xr-x 1 root root 295 Feb 16 22:59 cmdline.default
-rwxr-xr-x 1 root root 322 Feb 19 20:05 cmdline.txt
-rwxr-xr-x 1 root root 388 Apr 20 2014 cmdline.txt-ok
-rwxr-xr-x 1 root root 295 Feb 3 23:50 cmdline.txt.old
-rwxr-xr-x 1 root root 1532 Feb 19 19:33 config.txt
-rwxr-xr-x 1 root root 323 Nov 30 2014 config.txt-3.12x
-rwxr-xr-x 1 root root 334 Mär 7 2015 config.txt-3.18x
-rwxr-xr-x 1 root root 1312 Mär 25 2016 config.txt-800x480
-rwxr-xr-x 1 root root 18693 Feb 16 23:16 COPYING.linux
-rwxr-xr-x 1 root root 9874 Feb 4 21:12 fixup.dat
-rwxr-xr-x 1 root root 9876 Feb 4 21:12 fixup_db.dat
-rwxr-xr-x 1 root root 8741165 Feb 16 23:26 initramfs.gz
-rwxr-xr-x 1 root root 8740717 Feb 3 23:53 initramfs.gz.old
-rwxr-xr-x 1 root root 5338164 Jul 18 2017 kernel.img
-rwxr-xr-x 1 root root 1494 Feb 16 23:16 LICENCE.broadcom
drwxr-xr-x 2 root root 10240 Feb 16 23:16 overlays
-rwxr-xr-x 1 root root 582 Nov 11 2012 README.md
-rwxr-xr-x 1 root root 66511 Jul 18 2017 README.overlays
-rwxr-xr-x 1 root root 5016644 Feb 4 21:12 start_db.elf
-rwxr-xr-x 1 root root 3956324 Feb 4 21:12 start.elf
-rwxr-xr-x 1 root root 2073018 Sep 25 22:16 System.map
-rwxr-xr-x 1 root root 2073018 Jul 18 2017 System.map-4.12.2+
root@kmxbilr2 /mnt/kmxbibr # ls -la /tmp/root
insgesamt 16
drwxr-xr-x 1 root root 38 Feb 19 19:33 .
drwxrwxrwt 8 root root 200 Mär 4 13:42 ..
drwxr-xr-x 1 root root 2 Feb 19 19:33 data
drwxr-xr-x 1 root root 2 Feb 19 19:45 home
drwxr-xr-x 1 root root 2 Feb 19 19:46 modules
drwxr-xr-x 1 root root 2 Feb 19 20:05 root
root@kmxbilr2 /mnt/kmxbibr #
root@kmxbilr2 /mnt/kmxbibr # sudo umount /tmp/boot /tmp/root
root@kmxbilr2 /mnt/kmxbibr # sudo kpartx -dv kmxbibr_xbian_image_2019-02-19.img
del devmap : loop0p2
del devmap : loop0p1
loop deleted : /dev/loop0
root@kmxbilr2 /mnt/kmxbibr #

Quote:I have amended my /etc/default/xbian-snap to exclude the directory containing my media with "EXCLUDESUB=/media" and I can see that snapshots are being run correctly however I just wanted to check that they were still running correctly and to see what folders/files were in the backups?

You never can exclude folders, you just can exclude subvolumes only for snapshots, not for image backup. Does not make sense to make an image backup without all existing subvolumes
Find all posts by this user
Quote this message in a reply
5th Mar, 2019, 12:48 AM
Post: #56
vifu Offline
Registered
Posts: 3
Joined: Mar 2019
Reputation: 0
RE: XBian-backup
(4th Mar, 2019 11:01 PM)Nachteule Wrote:  
(4th Mar, 2019 08:34 PM)vifu Wrote:  Is there a way to check the contents of the xbian backups?

You can mount the image and check if everything is ok in the image
For example, if you want to check image file /mnt/kmxbibr/kmxbibr_xbian_image_2019-02-19.img,

run commands to inspect backup image (Click to View)
root@kmxbilr2 /mnt/kmxbibr # sudo modprobe loop
root@kmxbilr2 /mnt/kmxbibr # sudo kpartx -av kmxbibr_xbian_image_2019-02-19.img
add map loop0p1 (253:0): 0 204800 linear 7:0 2048
add map loop0p2 (253:1): 0 3997696 linear 7:0 206848
root@kmxbilr2 /mnt/kmxbibr # ls -la /dev/mapper
insgesamt 0
drwxr-xr-x 2 root root 100 Mär 4 13:40 .
drwxr-xr-x 16 root root 3800 Mär 4 13:40 ..
crw------- 1 root root 10, 236 Mär 4 13:40 control
lrwxrwxrwx 1 root root 7 Mär 4 13:40 loop0p1 -> ../dm-0
lrwxrwxrwx 1 root root 7 Mär 4 13:40 loop0p2 -> ../dm-1
root@kmxbilr2 /mnt/kmxbibr # sudo mkdir /tmp/root /tmp/boot
root@kmxbilr2 /mnt/kmxbibr # sudo mount /dev/mapper/loop0p1 /tmp/boot
root@kmxbilr2 /mnt/kmxbibr # sudo mount /dev/mapper/loop0p2 /tmp/root
root@kmxbilr2 /mnt/kmxbibr # ls -la /tmp/boot
insgesamt 35662
drwxr-xr-x 3 root root 16384 Jan 1 1970 .
drwxrwxrwt 8 root root 200 Mär 4 13:42 ..
-rwxr-xr-x 1 root root 21679 Jul 18 2017 bcm2708-rpi-0-w.dtb
-rwxr-xr-x 1 root root 21200 Jul 18 2017 bcm2708-rpi-b.dtb
-rwxr-xr-x 1 root root 21459 Jul 18 2017 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x 1 root root 20913 Jul 18 2017 bcm2708-rpi-cm.dtb
-rwxr-xr-x 1 root root 22505 Jul 18 2017 bcm2709-rpi-2-b.dtb
-rwxr-xr-x 1 root root 23596 Jul 18 2017 bcm2710-rpi-3-b.dtb
-rwxr-xr-x 1 root root 24499 Sep 22 01:46 bcm2710-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root 22316 Jul 18 2017 bcm2710-rpi-cm3.dtb
-rwxr-xr-x 1 root root 16006 Jul 18 2017 bcm2835-rpi-a.dtb
-rwxr-xr-x 1 root root 16122 Jul 18 2017 bcm2835-rpi-a-plus.dtb
-rwxr-xr-x 1 root root 16168 Jul 18 2017 bcm2835-rpi-b.dtb
-rwxr-xr-x 1 root root 16425 Jul 18 2017 bcm2835-rpi-b-plus.dtb
-rwxr-xr-x 1 root root 16301 Jul 18 2017 bcm2835-rpi-b-rev2.dtb
-rwxr-xr-x 1 root root 15994 Jul 18 2017 bcm2835-rpi-zero.dtb
-rwxr-xr-x 1 root root 17681 Sep 22 01:46 bcm2835-rpi-zero-w.dtb
-rwxr-xr-x 1 root root 16891 Jul 18 2017 bcm2836-rpi-2-b.dtb
-rwxr-xr-x 1 root root 18575 Sep 22 01:46 bcm2837-rpi-3-b.dtb
-rwxr-xr-x 1 root root 19087 Sep 22 01:46 bcm2837-rpi-3-b-plus.dtb
-rwxr-xr-x 1 root root 52296 Feb 4 21:12 bootcode.bin
-rwxr-xr-x 1 root root 295 Feb 16 22:59 cmdline.default
-rwxr-xr-x 1 root root 322 Feb 19 20:05 cmdline.txt
-rwxr-xr-x 1 root root 388 Apr 20 2014 cmdline.txt-ok
-rwxr-xr-x 1 root root 295 Feb 3 23:50 cmdline.txt.old
-rwxr-xr-x 1 root root 1532 Feb 19 19:33 config.txt
-rwxr-xr-x 1 root root 323 Nov 30 2014 config.txt-3.12x
-rwxr-xr-x 1 root root 334 Mär 7 2015 config.txt-3.18x
-rwxr-xr-x 1 root root 1312 Mär 25 2016 config.txt-800x480
-rwxr-xr-x 1 root root 18693 Feb 16 23:16 COPYING.linux
-rwxr-xr-x 1 root root 9874 Feb 4 21:12 fixup.dat
-rwxr-xr-x 1 root root 9876 Feb 4 21:12 fixup_db.dat
-rwxr-xr-x 1 root root 8741165 Feb 16 23:26 initramfs.gz
-rwxr-xr-x 1 root root 8740717 Feb 3 23:53 initramfs.gz.old
-rwxr-xr-x 1 root root 5338164 Jul 18 2017 kernel.img
-rwxr-xr-x 1 root root 1494 Feb 16 23:16 LICENCE.broadcom
drwxr-xr-x 2 root root 10240 Feb 16 23:16 overlays
-rwxr-xr-x 1 root root 582 Nov 11 2012 README.md
-rwxr-xr-x 1 root root 66511 Jul 18 2017 README.overlays
-rwxr-xr-x 1 root root 5016644 Feb 4 21:12 start_db.elf
-rwxr-xr-x 1 root root 3956324 Feb 4 21:12 start.elf
-rwxr-xr-x 1 root root 2073018 Sep 25 22:16 System.map
-rwxr-xr-x 1 root root 2073018 Jul 18 2017 System.map-4.12.2+
root@kmxbilr2 /mnt/kmxbibr # ls -la /tmp/root
insgesamt 16
drwxr-xr-x 1 root root 38 Feb 19 19:33 .
drwxrwxrwt 8 root root 200 Mär 4 13:42 ..
drwxr-xr-x 1 root root 2 Feb 19 19:33 data
drwxr-xr-x 1 root root 2 Feb 19 19:45 home
drwxr-xr-x 1 root root 2 Feb 19 19:46 modules
drwxr-xr-x 1 root root 2 Feb 19 20:05 root
root@kmxbilr2 /mnt/kmxbibr #
root@kmxbilr2 /mnt/kmxbibr # sudo umount /tmp/boot /tmp/root
root@kmxbilr2 /mnt/kmxbibr # sudo kpartx -dv kmxbibr_xbian_image_2019-02-19.img
del devmap : loop0p2
del devmap : loop0p1
loop deleted : /dev/loop0
root@kmxbilr2 /mnt/kmxbibr #

Quote:I have amended my /etc/default/xbian-snap to exclude the directory containing my media with "EXCLUDESUB=/media" and I can see that snapshots are being run correctly however I just wanted to check that they were still running correctly and to see what folders/files were in the backups?

You never can exclude folders, you just can exclude subvolumes only for snapshots, not for image backup. Does not make sense to make an image backup without all existing subvolumes

Okay, I think I'm getting mixed up between backups and snapshots. I have now changed my xbian-snap file back to the default.

Should my xbian be automatically creating backups into the /xbmc-backup folder on a regular basis? There was nothing in there until I ran the backup from xbian-config GUI.

My concern was that out of a 64GB SD card 90% of it was in /media that didn't need backing up. But I guess I don't need to worry about any backup / snapshot procedure taking up a lot of space on the SD as that's not how it works.
Find all posts by this user
Quote this message in a reply
5th Mar, 2019, 12:57 AM
Post: #57
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: XBian-backup
(5th Mar, 2019 12:48 AM)vifu Wrote:  Okay, I think I'm getting mixed up between backups and snapshots. I have now changed my xbian-snap file back to the default.

Should my xbian be automatically creating backups into the /xbmc-backup folder on a regular basis? There was nothing in there until I ran the backup from xbian-config GUI.

No, default is making no backup (neither /home nor image)
/xbian-backup is default folder for running /home backups. Making image backups to /xbian-backup does not make sense
This folder is flushed on each (re)boot

Quote:My concern was that out of a 64GB SD card 90% of it was in /media that didn't need backing up. But I guess I don't need to worry about any backup / snapshot procedure taking up a lot of space on the SD as that's not how it works.

Do you have/mount external disk, bc /media is usually empty
Find all posts by this user
Quote this message in a reply
10th Mar, 2019, 09:28 PM
Post: #58
vifu Offline
Registered
Posts: 3
Joined: Mar 2019
Reputation: 0
RE: XBian-backup
(5th Mar, 2019 12:57 AM)Nachteule Wrote:  
(5th Mar, 2019 12:48 AM)vifu Wrote:  Okay, I think I'm getting mixed up between backups and snapshots. I have now changed my xbian-snap file back to the default.

Should my xbian be automatically creating backups into the /xbmc-backup folder on a regular basis? There was nothing in there until I ran the backup from xbian-config GUI.

No, default is making no backup (neither /home nor image)
/xbian-backup is default folder for running /home backups. Making image backups to /xbian-backup does not make sense
This folder is flushed on each (re)boot

Quote:My concern was that out of a 64GB SD card 90% of it was in /media that didn't need backing up. But I guess I don't need to worry about any backup / snapshot procedure taking up a lot of space on the SD as that's not how it works.

Do you have/mount external disk, bc /media is usually empty

OK thanks. Think I misunderstood what was happening. Yes /media is just where I keep my all my media (within subfolders of /media) so it contains the vast majority of space on the drive.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (4): « Previous 1 2 3 4
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 05:34 PM Powered By MyBB, © 2002-2025 MyBB Group.