Dangerous behaviour of 'precleanup.pm'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
Fix Released
|
High
|
Lenz Grimmer |
Bug Description
Our config:
[mysql]
user=******
password=******
host=
port=
socket=
mycnf=/etc/my.cnf
#
# LVM-specific options
#
[lvm]
vgname=VG
lvname=LV_var
backuplv=
lvsize=2G
#
# File system specific options
#
[fs]
xfs=0
mountdir=
backupdir=/backup/
relpath=lib/mysql/
#
# Names of required external utilities
# Make sure the $PATH is set accordingly, especially for cron jobs!
#
[tools]
lvcreate=lvcreate
lvremove=lvremove
lvs=lvs
mount=mount
tar=tar
compress=gzip
# alternative tar backup compression tools
#compress=lzma
#compress=bzip2
# or (for no compression):
#compress=cat
#
rsync=rsync
rsnap=rsnap
umount=umount
#
# Other configuration options
#
[misc]
backuptype=tar
prefix=backup
suffix=_mysql
tararg=cvf
tarsuffixarg=
tarfilesuffix=
compressarg=
# for LZMA:
#compressarg=
# for bzip2:
#compressarg=
# for cat:
#compressarg= # ie. nothing
rsyncarg=-avWP
rsnaparg=7
datefmt=
innodb_recover=0
pidfile=
skip_flush_tables=0
extra_flush_
skip_mycnf=0
hooksdir=
skip_hooks=0
keep_snapshot=0
keep_mount=0
quiet=0
#
# Logging options. The Sys::Syslog module is required for syslog option
# See "perldoc Sys::Syslog" for more information.
#
[logging]
# 'console' (STDOUT, STDERR) or 'syslog' or 'both'.
log_method=console
# 'native', 'tcp', 'udp'. Default is 'native'
syslog_
syslog_facility=
# If using remote syslog, don't forget to change the socket type to tcp or udp.
syslog_remotehost=
mylvmbackup - rpmbuild done on RHEL 4.6 with CPAN update for Sys:Syslog and installation of Time::Date and Config::IniFiles
The default version of precleanup.pm attempts to remove some subdirectories of / - why? Because the line:
my $dest = dirname(
is returning '/', imagine how many hours of work it caused to recover one server...
Anyway, if you really want to follow the idea this line should be:
my $dest = dirname(
BR
//User
Changed in mylvmbackup: | |
status: | Fix Committed → Fix Released |
visibility: | private → public |
Ugh, thanks for that hint! I'll take a look at this right away.