|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Eugene M. Zheganin 2:5054/79.2 23 Jan 2003 10:41:16 To : Constantin Stefanov Subject : backup -------------------------------------------------------------------------------- 20 Jan 03 в 13:59, Constantin Stefanov -=> Alexander Gavrilov о "Re: backup": [...] CS> Я тут недавно задавал тот же вопрос - никто ничего толком так и не CS> сказал. Hу ясно, в хэндбуке раздел есть, далее tar, dump/restore - по CS> вкусу. Если машина одна - никаких вопросов - что-нибудь из CS> вышеперечисленного + cron. А вот если надо с нескольких машин данные CS> скидывать на одну ленту - тогда как? Hеужто никто так не делает? CS> Вариант создать дамп на локальной фалововй системе, а потом залить на CS> ленту меня не очень устраивает - тратится очень много лишнего места. Hа солярке man tar гораздо лучше. Потому что в нем описан штатный способ дампиться/бэкапиться по сети. Лично у меня все так и сделано. Только блоки по 200 байт, и не rsh, а ssh с авторизацией ключами. Если нужны примеры таких скриптов- скажи, но они элементарные. 8) Больше времени ушло на то, чтобы понять механизм авторизации ключами. ===Cut=== Example 3: Using tar to Transfer Files Across the Network The following is an example using tar to transfer files across the network. First, here is how to archive files from the local machine ( example) to a tape on a remote system ( host): example% tar cvfb - 20 files | rsh host dd of=/dev/rmt/0 obs=20b messages from tar example% In the example above, we are creating a tarfile with the c key letter, asking for verbose output from tar with the v function modifier, specifying the name of the output tarfile using the f function modifier (the standard output is where the tarfile appears, as indicated by the `-' sign), and specifying the blocksize (20) with the b function modifier. If you want to change the blocksize, you must change the blocksize arguments both on the tar command and on the dd command. Example 4: Using Tar To Retrieve Files From A Tape On The Remote System Back To The Local System: The following is an example that uses tar to retrieve files from a tape on the remote system back to the local system: example% rsh -n host dd if=/dev/rmt/0 bs=20b | tar xvBfb - 20 files messages from tar example% In the example above, we are extracting from the tarfile with the x key letter, asking for verbose output from tar with the v function modifier, telling tar it is reading from a pipe with the B function modifier, specifying the name of the input tarfile using the f function modifier (the stan- dard input is where the tarfile appears, as indicated by the `-' sign), and specifying the blocksize (20) with the b function modifier. ===Cut=== Hа этом остаюсь искренне Ваш, Евгений. --- GoldED+/BSD 1.1.5 * Origin: ----> Default GoldED Origin <---- (2:5054/79.2) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/28173e2f73b0.html, оценка из 5, голосов 10
|