RE: XBian-backup - Peiote - 26th Jul, 2016 06:31 AM
(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
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.
RE: XBian-backup - Nachteule - 26th Jul, 2016 07:52 AM
(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 )
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
RE: XBian-backup - Peiote - 27th Jul, 2016 03:50 AM
(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 )
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
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.
RE: XBian-backup - Nachteule - 27th Jul, 2016 05:20 AM
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.
RE: XBian-backup - Peiote - 28th Jul, 2016 02:34 AM
(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
Best regards
RE: XBian-backup - Skywatch - 10th Jun, 2017 07:27 PM
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. Of course I deleted them all and got a lot of space back.
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.
RE: XBian-backup - Nachteule - 10th Jun, 2017 09:04 PM
(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
RE: XBian-backup - deeej - 26th Nov, 2017 08:01 PM
(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!
RE: XBian-backup - vifu - 4th Mar, 2019 08:34 PM
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?
RE: XBian-backup - Nachteule - 4th Mar, 2019 11:01 PM
(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,
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
RE: XBian-backup - vifu - 5th Mar, 2019 12:48 AM
(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,
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.
RE: XBian-backup - Nachteule - 5th Mar, 2019 12:57 AM
(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
RE: XBian-backup - vifu - 10th Mar, 2019 09:28 PM
(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.
|