Veritas-bu

[Veritas-bu] Backing up ZFS snapshots

2007-03-08 11:27:42
Subject: [Veritas-bu] Backing up ZFS snapshots
From: listen at alexander.skwar.name (Alexander Skwar)
Date: Thu, 8 Mar 2007 17:27:42 +0100
Hello.

On one of the servers which are backed up with NBU 6.0 MP4,
we're using Solaris 10 and also ZFS. To keep the backup window
as short as possible, I'm creating ZFS snapshots just before
the backup policy gets run. I do that "manually" with a script,
eg. like this: "zfs snapshot pool/Teamcenter at backup". This
creates a snapshot, which is accessible over 
/pool/Teamcenter/.zfs/snapshot/backup.
The .zfs directory is completely invisible:

askwar at winds06 /opt $ sudo zfs snapshot pool/Teamcenter at backup
askwar at winds06 /opt $ ls -la /pool/Teamcenter/
total 116
drwxr-xr-x  22 root     root          22 Feb 27 14:33 .
drwxr-xr-x   5 root     sys            5 Mar  8 17:15 ..
drwxr-xr-x   2 root     root          12 Nov 14 15:51 TT_DB
drwxrwxr-x  21 dev1     pdmusers      62 Jan 11 20:11 dev1
[...]
askwar at winds06 /opt $ ls -la /pool/Teamcenter/.zfs
total 3
dr-xr-xr-x   3 root     root           3 Jan 12 18:50 .
drwxr-xr-x  22 root     root          22 Feb 27 14:33 ..
dr-xr-xr-x   2 root     root           2 Jan 12 18:50 snapshot

How do you guys actually backup ZFS snapshots? I don't really
want to go the route of having to add /pool/Teamcenter/.zfs/snapshot/backup
to the Backup Selections of a policy, as this would mean, that
the Backup Selections would have to be updated, when a new
zfs is created. I don't like this.

How do you do that?

Alexander Skwar


<Prev in Thread] Current Thread [Next in Thread>