1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/tools/archive.h

42 lines
1.0 KiB
C
Raw Normal View History

/*
* Copyright (C) 2001 Sistina Software (UK) Limited.
*
* This file is released under the GPL.
*/
#ifndef _LVM_TOOL_ARCHIVE_H
#define _LVM_TOOL_ARCHIVE_H
2002-01-07 14:12:11 +03:00
#include "metadata.h"
/*
* There are two operations that come under the
2002-01-07 14:12:11 +03:00
* 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.
2002-01-07 14:12:11 +03:00
* 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);
2002-01-07 12:05:31 +03:00
void archive_enable(int flag);
int archive(struct volume_group *vg);
int backup_init(const char *dir);
void backup_exit(void);
2002-01-07 14:12:11 +03:00
void backup_enable(int flag);
int backup(struct volume_group *vg);
#endif