Changed behavior of amflush, going to background?
2008-04-17 14:37:10
I could have sworn that I used to be able to do an amflush and then
eject the tape in the background with a command such as this, as the
amanda user:
echo 'amflush DBackup && mt offline' | at now
However, this now sends me an email that seems to show it asking for the
right amanda backups to flush to tape. So, I also tried,
echo 'amflush -b DBackup && mt offline' | at now
But, this one seems to execute the 'mt offline' and eject the tape just
as soon as the amflush drops to the background. Using 'ps aux' shows
tapers started immediately. I get the amflush email that there's no tape
present. I've pasted in my 'amadmin version' output at the end of this
message.
Any suggestions on a single command line that would do the amflush and
then eject the tape in the background? For extra bonus points, how could
I combine this with a 'sudo -u backup ...' so that I can execute the
whole thing without becoming the amanda user (assume that I have sudo
set up correctly to execute any needed commands)?
Thanks so much for your advice and suggestions.
-Kevin
Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland 21202
410-659-6139
============================
backup@centernet:~$ amadmin DBackup version
build: VERSION="Amanda-2.5.1p1"
BUILT_DATE="Wed Nov 29 02:15:07 CET 2006"
BUILT_MACH="Linux intrepid 2.6.18-1-686 #1 SMP Fri Sep 29
16:25:40 UTC 2006 i686 GNU/Linux"
CC="gcc"
CONFIGURE_COMMAND="'./configure' '--prefix=/usr'
'--bindir=/usr/sbin' '--mandir=/usr/share/man'
'--libexecdir=/usr/lib/amanda' '--enable-shared' '--sysconfdir=/etc'
'--localstatedir=/var/lib'
'--with-gnutar-listdir=/var/lib/amanda/gnutar-lists'
'--with-index-server=localhost' '--with-user=backup'
'--with-group=backup' '--with-bsd-security' '--with-amandahosts'
'--with-smbclient=/usr/bin/smbclient' '--with-debugging=/var/log/amanda'
'--with-dumperdir=/usr/lib/amanda/dumper.d'
'--with-tcpportrange=50000,50100' '--with-udpportrange=840,860'
'--with-maxtapeblocksize=256' '--with-ssh-security'"
paths: bindir="/usr/sbin" sbindir="/usr/sbin"
libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
AMANDA_TMPDIR="/tmp/amanda"
AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
XFSDUMP="/sbin/xfsdump" XFSRESTORE="/sbin/xfsrestore"
VXDUMP=UNDEF VXRESTORE=UNDEF
SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/mail"
listed_incr_dir="/var/lib/amanda/gnutar-lists"
defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
DEFAULT_TAPE_SERVER="localhost" HAVE_MMAP HAVE_SYSVSHM
LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
CLIENT_LOGIN="backup" FORCE_USERID HAVE_GZIP
COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
backup@centernet:~$
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Changed behavior of amflush, going to background?,
Zembower, Kevin <=
|
|
|