1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/tools/archive.h
Joe Thornber 6e16088e24 o High level archiving and backup functions.
I've split the old autobackup function into two seperate areas:

'archiving' is performed *before* a vg configuration is changed.  This
produces a numbered backup in /etc/lvm/archive.

A 'backup' is performed *after* a vg change.  So the directory /etc/lvm/backup
will hold the  a copy of the current configuration.
2002-01-03 15:46:48 +00:00

40 lines
1.0 KiB
C

/*
* Copyright (C) 2001 Sistina Software (UK) Limited.
*
* This file is released under the GPL.
*/
#ifndef _LVM_TOOL_ARCHIVE_H
#define _LVM_TOOL_ARCHIVE_H
/*
* There are two operations that come under the
* general area of backups. 'Archiving' occurs just
* before a volume group configuration is changed.
* The user may configure when archived files are expired.
* Typically archives will be stored in /etc/lvm/archive.
*
* A 'backup' is a redundant copy of the *current*
* volume group configuration. As such it should
* be taken just after the volume group is
* changed. Only 1 backup file will exist.
* Typically backups will be stored in /etc/lvm/backups.
*/
int archive_init(const char *dir,
unsigned int keep_days, unsigned int keep_min);
void archive_exit(void);
void archive_disable(void);
void archive_enable(void);
int archive(struct volume_group *vg);
int backup_init(const char *dir);
void backup_exit(void);
void backup_enable(void);
void backup_disable(void);
int backup(struct volume_group *vg);
#endif