Andrew Rakowski
January 5th, 2007, 03:45 PM
Hi folks...I'm trying to get Amanda up and running for a number of systems (perhaps 100 or so per Amanda backup server), and have perhaps a dozen systems backing up at the moment without any major problems. I have Linux i386 and Solaris working, and still need to build Amanda clients for IRIX and other flavors of Linux (ia64,
However, I'm realizing that there are a number of things that I'd like to exclude from backups. In particular, I'd like to be able to keep the list of "we always want to exclude these" items on the central Amanda backup server. That way, if we implement some new software that uses a directory or file we don't want to backup, I can change the master exclude list in one place and have it take effect on all our backup clients.
I've read the Wiki page on Excludes at:
http://wiki.zmanda.com/index.php/Exclude_and_include_lists
and the "exclude" directive entry in the Amanda.conf document at:
http://wiki.zmanda.com/index.php/Amanda.conf
but it seems that it is NOT behaving as (at least I) expected.
Here's an example showing my dumptypes with several exclude directives included. The "exclude list" and "exclude file" entries seem to only apply to files that reside on the client, and I don't see any way to implement a "central" file (or even list of dumptypes directives) that will let me control things.
So, on the Amanda server, we have:
....
-sh-3.00$ head -22 EMSLdumptypes.conf
define dumptype global {
comment "Global definitions"
#
# Enable the two ssh lines below when we want to move to ssh
# connections between server and clients.
#
# ssh_keys "/var/lib/amanda/.ssh/id_rsa_amdump"
# auth "ssh"
auth "bsdtcp"
}
define dumptype EMSL-full-weekly-inc-daily {
global
program "GNUTAR"
comment "Weekly full backup with daily incrementals via tar"
tape_splitsize 1 Gb
priority medium
index
dumpcycle 7
exclude file append "/etc/amanda/exclude-list"
exclude append "./vicepb"
exclude list optional append ".amanda.excludes"
-sh-3.00$
....
and when I test on the server using amcheck:
....
-sh-3.00$ amcheck EMSLdaily -c maxwell
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.312 seconds, 0 problems found
(brought to you by Amanda 2.5.1p2)
-sh-3.00$
....
and then go look on the client, here's what I see being excluded (I've included the test contents of what's on the client files - obviously, I'd actually want stuff like /proc, /mnt, /media, /cdrom, etc. in my excludes):
....
maxwell{417}# cat /etc/amanda/exclude-list
./usr/vice/BLAH-from_etc_exclude-list_file/*
maxwell{418}#
maxwell{418}# cat /.amanda.excludes
./usr/vicepa-from-local-exclude-list
maxwell{419}#
maxwell{419}# \rm -rf /tmp/amanda/
maxwell{420}#
maxwell{420}# cat /tmp/amanda/selfcheck._.20070105141536.exclude
./usr/vice/BLAH-from_etc_exclude-list_file/*
lost+found
./usr/vicepa-from-local-exclude-list
maxwell{421}#
....
So, I don't see "./vicepb" in there anywhere (that would be a centrally specified file to exclude), but I do see both "list" and "file" entries listed as excluded.
Oh, the Amanda server is running on RedHat Enterprise Linux WS release 4. The client is running Solaris-10, and using "tar (GNU tar) 1.16.1" for its backup program. Both are running Amanda-2.5.1p2 software.
Finally, I *think* the definitions of "list" vs "file" aren't describing what I'm seeing. Both seem to specify files (on the client) that contain exclude patterns used by GNU tar to exclude objects from backups. My understanding was that the "exclude list" should let me specify individual excluded items.
So, can anyone take a look at the above and tell me either what I'm doing wrong, or what I need to do to all my to specify what I want excluded only from the Amanda backup server?
Thanks in advance for any thoughts, ideas, pointers, RTFMs indicating the proper Fine Manual to read, etc.
Cheers, and happy weekend!
-Andrew
ps: sorry for the long post, but I wanted to get as many details that might be needed in as possible. Please let me know what I managed to forget! :)
However, I'm realizing that there are a number of things that I'd like to exclude from backups. In particular, I'd like to be able to keep the list of "we always want to exclude these" items on the central Amanda backup server. That way, if we implement some new software that uses a directory or file we don't want to backup, I can change the master exclude list in one place and have it take effect on all our backup clients.
I've read the Wiki page on Excludes at:
http://wiki.zmanda.com/index.php/Exclude_and_include_lists
and the "exclude" directive entry in the Amanda.conf document at:
http://wiki.zmanda.com/index.php/Amanda.conf
but it seems that it is NOT behaving as (at least I) expected.
Here's an example showing my dumptypes with several exclude directives included. The "exclude list" and "exclude file" entries seem to only apply to files that reside on the client, and I don't see any way to implement a "central" file (or even list of dumptypes directives) that will let me control things.
So, on the Amanda server, we have:
....
-sh-3.00$ head -22 EMSLdumptypes.conf
define dumptype global {
comment "Global definitions"
#
# Enable the two ssh lines below when we want to move to ssh
# connections between server and clients.
#
# ssh_keys "/var/lib/amanda/.ssh/id_rsa_amdump"
# auth "ssh"
auth "bsdtcp"
}
define dumptype EMSL-full-weekly-inc-daily {
global
program "GNUTAR"
comment "Weekly full backup with daily incrementals via tar"
tape_splitsize 1 Gb
priority medium
index
dumpcycle 7
exclude file append "/etc/amanda/exclude-list"
exclude append "./vicepb"
exclude list optional append ".amanda.excludes"
-sh-3.00$
....
and when I test on the server using amcheck:
....
-sh-3.00$ amcheck EMSLdaily -c maxwell
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.312 seconds, 0 problems found
(brought to you by Amanda 2.5.1p2)
-sh-3.00$
....
and then go look on the client, here's what I see being excluded (I've included the test contents of what's on the client files - obviously, I'd actually want stuff like /proc, /mnt, /media, /cdrom, etc. in my excludes):
....
maxwell{417}# cat /etc/amanda/exclude-list
./usr/vice/BLAH-from_etc_exclude-list_file/*
maxwell{418}#
maxwell{418}# cat /.amanda.excludes
./usr/vicepa-from-local-exclude-list
maxwell{419}#
maxwell{419}# \rm -rf /tmp/amanda/
maxwell{420}#
maxwell{420}# cat /tmp/amanda/selfcheck._.20070105141536.exclude
./usr/vice/BLAH-from_etc_exclude-list_file/*
lost+found
./usr/vicepa-from-local-exclude-list
maxwell{421}#
....
So, I don't see "./vicepb" in there anywhere (that would be a centrally specified file to exclude), but I do see both "list" and "file" entries listed as excluded.
Oh, the Amanda server is running on RedHat Enterprise Linux WS release 4. The client is running Solaris-10, and using "tar (GNU tar) 1.16.1" for its backup program. Both are running Amanda-2.5.1p2 software.
Finally, I *think* the definitions of "list" vs "file" aren't describing what I'm seeing. Both seem to specify files (on the client) that contain exclude patterns used by GNU tar to exclude objects from backups. My understanding was that the "exclude list" should let me specify individual excluded items.
So, can anyone take a look at the above and tell me either what I'm doing wrong, or what I need to do to all my to specify what I want excluded only from the Amanda backup server?
Thanks in advance for any thoughts, ideas, pointers, RTFMs indicating the proper Fine Manual to read, etc.
Cheers, and happy weekend!
-Andrew
ps: sorry for the long post, but I wanted to get as many details that might be needed in as possible. Please let me know what I managed to forget! :)