mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
03888774a5
o For now vgcfgrestore -l <vg> displays this list. A bit hacky, but it'll get better.
49 lines
1.3 KiB
C
49 lines
1.3 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
|
|
|
|
#include "metadata.h"
|
|
|
|
/*
|
|
* FIXME: This file is going to merge with the archiving code in
|
|
* lib/format_text at some point.
|
|
*/
|
|
|
|
/*
|
|
* 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_enable(int flag);
|
|
int archive(struct volume_group *vg);
|
|
int archive_display(const char *vg_name);
|
|
|
|
int backup_init(const char *dir);
|
|
void backup_exit(void);
|
|
|
|
void backup_enable(int flag);
|
|
int backup(struct volume_group *vg);
|
|
int backup_remove(const char *vg_name);
|
|
|
|
int backup_restore_from_file(const char *vg_name, const char *file);
|
|
int backup_restore(const char *vg_name);
|
|
|
|
#endif
|