New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BTRFS subvolumes content are not backup in SLES12-SP2 #1432
Comments
For me with SLES12-SP2 on a x86_64 virtual KVM/QEMU machine I use the BACKUP_PROG_INCLUDE values from # grep ^BACKUP_PROG_INCLUDE etc/rear/local.conf | tr ' ' '\n' BACKUP_PROG_INCLUDE=( '/var/cache/*' '/var/lib/mailman/*' '/var/tmp/*' '/var/lib/pgsql/*' '/usr/local/*' '/opt/*' '/var/lib/libvirt/images/*' '/boot/grub2/i386/*' '/var/opt/*' '/srv/*' '/boot/grub2/x86_64/*' '/var/lib/mariadb/*' '/var/spool/*' '/var/lib/mysql/*' '/tmp/*' '/home/*' '/var/log/*' '/var/lib/named/*' '/var/lib/machines/*' ) The backup.log on my NFS server (for "rear -d -D mkbackup") # grep '^++ tar --warning' backup.log | fold -s -w70 ++ tar --warning=no-xdev --sparse --block-number --totals --verbose --no-wildcards-match-slash --one-file-system --ignore-failed-read --anchored --gzip -X /tmp/rear.jCyzvWhHsTXhBq4/tmp/backup-exclude.txt -C / -c -f - /var/cache/cups /var/cache/fontconfig /var/cache/gio-2.0 /var/cache/krb5rcache /var/cache/ldconfig /var/cache/man /var/cache/multipath /var/cache/zypp /var/tmp/systemd-private-4b26b95b255c4141b6d6faed5a1b9d16-spice-vdagen td.service-ClKFKX /usr/local/bin /usr/local/games /usr/local/include /usr/local/lib /usr/local/lib64 /usr/local/man /usr/local/sbin /usr/local/share /usr/local/src /srv/ftp /srv/www /var/spool/atjobs /var/spool/atspool /var/spool/audit /var/spool/clientmqueue /var/spool/cron /var/spool/cups /var/spool/locks /var/spool/lpd /var/spool/mail /var/spool/plymouth /var/spool/postfix /var/spool/rsyslog /var/spool/uucp /tmp/gpg-ZPKcFo /tmp/rear.jCyzvWhHsTXhBq4 /tmp/systemd-private-4b26b95b255c4141b6d6faed5a1b9d16-spice-vdagentd.s ervice-o3VEwM /home/johannes /var/log/NetworkManager /var/log/Xorg.0.log /var/log/YaST2 /var/log/acpid /var/log/alternatives.log /var/log/audit /var/log/boot.log /var/log/btmp /var/log/cups /var/log/dump /var/log/faillog /var/log/firewall /var/log/krb5 /var/log/lastlog /var/log/mail /var/log/mail.err /var/log/mail.info /var/log/mail.warn /var/log/messages /var/log/news /var/log/ntp /var/log/pbl.log /var/log/samba /var/log/snapper.log /var/log/warn /var/log/wtmp /var/log/xdm.errors /var/log/zypp /var/log/zypper.log / /root/rear.master/var/log/rear/rear-d50.log On the system where I run "rear -d -D mkbackup" /var/cache/* /var/lib/mailman/* /var/tmp/* /var/lib/pgsql/* /usr/local/* /opt/* /var/lib/libvirt/images/* /boot/grub2/i386/* /var/opt/* /srv/* /boot/grub2/x86_64/* /var/lib/mariadb/* /var/spool/* /var/lib/mysql/* /tmp/* /home/* /var/log/* /var/lib/named/* /var/lib/machines/* / i.e. the BACKUP_PROG_INCLUDE array members /tmp/* /dev/shm/* /root/rear.master/var/lib/rear/output/* so that my backup.tar.gz in particular contains On my NFS server I get a backup.tar.gz that contains # tar -tf backup.tar.gz | grep 'var/spool/' | sort var/spool/ var/spool/atjobs/ var/spool/atjobs/.SEQ var/spool/atspool/ var/spool/audit/ var/spool/clientmqueue/ var/spool/cron/ var/spool/cron/lastrun/ var/spool/cron/lastrun/cron.daily var/spool/cron/lastrun/cron.hourly var/spool/cron/lastrun/cron.monthly var/spool/cron/lastrun/cron.weekly var/spool/cron/tabs/ var/spool/cups/ var/spool/cups/tmp/ var/spool/locks var/spool/lpd/ var/spool/mail/ var/spool/plymouth/ var/spool/postfix/ var/spool/postfix/active/ var/spool/postfix/bounce/ var/spool/postfix/corrupt/ var/spool/postfix/defer/ var/spool/postfix/deferred/ var/spool/postfix/flush/ var/spool/postfix/hold/ var/spool/postfix/incoming/ var/spool/postfix/maildrop/ var/spool/postfix/pid/ var/spool/postfix/pid/master.pid var/spool/postfix/private/ var/spool/postfix/public/ var/spool/postfix/public/pickup var/spool/postfix/public/qmgr var/spool/postfix/saved/ var/spool/postfix/trace/ var/spool/rsyslog/ var/spool/uucp/ var/spool/uucp/uucp/ and I get all them back on another x86_64 virtual KVM/QEMU machine FYI /var/spool/postfix/private/anvil: socket /var/spool/postfix/private/bounce: socket /var/spool/postfix/private/defer: socket /var/spool/postfix/private/discard: socket /var/spool/postfix/private/error: socket /var/spool/postfix/private/lmtp: socket /var/spool/postfix/private/local: socket /var/spool/postfix/private/proxymap: socket /var/spool/postfix/private/proxywrite: socket /var/spool/postfix/private/relay: socket /var/spool/postfix/private/retry: socket /var/spool/postfix/private/rewrite: socket /var/spool/postfix/private/scache: socket /var/spool/postfix/private/smtp: socket /var/spool/postfix/private/trace: socket /var/spool/postfix/private/verify: socket /var/spool/postfix/private/virtual: socket /var/spool/postfix/public/cleanup: socket /var/spool/postfix/public/flush: socket /var/spool/postfix/public/showq: socket |
@schabrolles |
@jsmeix it is a pure SLES12-SP2 from DVD |
@jsmeix There is a "space" between |
@schabrolles I got a bit nervous what obscure stuff might happen here It seems you are a bit unlucky with "too much spaces", cf. Enjoy your weekend! |
@jsmeix :-) Arrrg ... +1 point ... I've tweaked a little my
but I think it could be better to add this stuff in a script that manage "btrfs backup"... |
As soon as I really understand the SUSE btrfs complexity Regarding the btrfs backup complexity: Regarding "new created btrfs subvolume": |
Relax-and-Recover (ReaR) Issue Template
Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):
Are you using legacy BIOS or UEFI boot? : POWER ppc64le - PReP
Brief description of the issue:
ReaR Backup and Restore runs smoothly without any issue. But files contained in btrfs subvolumes are not backuped up even if we specifed the subvolumes in
BACKUP_PROG_INCLUDE
variable.For example, analysing the backuplog generated show only
/var/spool
directory, but not its content.The text was updated successfully, but these errors were encountered: