SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
Список вопросов ПечатьМетки: linux резервное копирование dump restore tar rsync
RemiZOffAlex Создано: 2017-11-06 08:08:44.077756 Обновлено: 2017-11-06 08:08:44.077756 |
---|
С раздела на разделdump/restoreИмеются проблемы при несовпадающем размере блока mkdir /mnt/{source,target} mount /dev/sda1 /mnt/source mount /dev/sdb1 /mnt/target cd /mnt/target dump 0f - /mnt/source | restore -rf - tarcd /mnt/source; tar cfv - . | (cd /mnt/target; tar xf -) rsyncВариант не проверен rsync --archive --inplace --hard-links --acls --xattrs --devices --specials --one-file-system --8-bit-output --human-readable --progress /mnt/source /mnt/target |