>> Просто "the results of backing up a mounted data partition can be
>> unpredictable."
> Угу, а перезагружаться ради бэкапа на сервере не хочется. Я бэкапаюсь rsync,
> но это тоже мнэ, плохое решение.Во-во, а "у нас" ключик -L сделали не под "label", а под
> notify dump that it is dumping a live file system. To obtain a consistent dump image, dump takes a snapshot of the file system in the .snap directory in the root of the file system
но да, ФС должна поддерживать (Как например "отсталая и замшелая" UFS. Хотя все же снапшоты не очень сочитаются с журналом).
> Рискну предположить, что это это FreeBSD-специфично?
> Или обще-BSD?
Скорее обще-dump-во.
https://sourceforge.net/p/dump/code/ci/main/tree/dump/dump.h (Dump/Restore ext2/3/4 filesystem backup, ссылка взята из дебиана)
Но можно сразу смотреть на
https://sourceforge.net/p/dump/code/ci/main/tree/dump/traver...
* Dump pass 2.
*
* Scan each directory on the filesystem to see if it has any modified
* files in it. If it does, and has not already been added to the dump
* list (because it was itself modified), then add it. If a directory
* has not been modified itself, contains no modified files and has no
* subdirectories, then it can be deleted from the dump list and from
* the list of directories. By deleting it from the list of directories,
* its parent may now qualify for the same treatment on this or a later
* pass using this algorithm.
*/
int
mapdirs(dump_ino_t maxino, long long *tapesize)
{
...
#ifdef __linux__
...
ext2fs_dir_iterate(fs, ino, 0, NULL, searchdir, (void *) &mdc);
...
/*
* Scan a disk block containing directory information looking to see if
* any of the entries are on the dump list and to see if the directory
* contains any subdirectories.
*/
static int
searchdir(
(за минусос #ifdef пингвино-специфики оно и во Фре и в Опенке точно такое же).