Страница 1 из 1
dar - как указать что работает из скрипта (не задавать вопрсов)
Добавлено: 2015-08-12 16:44:14
Alex Keda
Код: Выделить всё
bkp0# dar -x ../F2015-08-11.h85048.1.dar
Warning, F2015-08-11.h85048.1.dar seems more to be a slice name than a base name. Do you want to replace it by F2015-08-11.h85048 ? [return = YES | Esc = NO]
Continuing...
--------------------------------------------
3603 inode(s) restored
including 0 hard link(s)
0 inode(s) not restored (not saved in archive)
0 inode(s) not restored (overwriting policy decision)
0 inode(s) ignored (excluded by filters)
0 inode(s) failed to restore (filesystem error)
0 inode(s) deleted
--------------------------------------------
Total number of inode(s) considered: 3603
--------------------------------------------
bkp0#
однако, надо чтобы вопросов не завал.
чёнить типа "ассуммед алвэйз йес"
ман курил, гуглил....
dar - как указать что работает из скрипта (не задавать вопрсов)
Добавлено: 2015-08-12 18:05:28
Dirty.Eager
Может, -w (или -wa)? Они совместимы с -x
Код: Выделить всё
-w, --no-warn
Do not warn before overwriting file or slice. By default (no -n and no -w) overwriting is allowed but a warning is issued before proceeding. This option may receive ’a’ as argument:
-wa, --no-warn=all
This implies the -w option, and means that over avoiding warning for file overwriting, DAR also avoid signaling a file about to be removed when its type is not the expected one. File are removed when they have been recorded as deleted since the archive of reference. At restoration of the differential archive, if a file of the given name exists, it is remove, but if the type does not match the file that was present at the time of the archive of reference (directory, plain file, fifo, socket, char or block device, etc.), a warning is normally issued to prevent the accidental removal of data that was not saved in the backup of reference. (See also -k option)
dar - как указать что работает из скрипта (не задавать вопрсов)
Добавлено: 2015-08-12 21:13:40
Alex Keda
чуть проще оказалось
окончание не нужно