ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] Правильный бэкап
Date: Mon, 26 Mar 2007 16:46:05 +0400
Message-ID: <4607C08D.6040300@stc.donpac.ru> (raw)

Здравствуйте!

А как все-таки правильнее и проще делать копию некоего каталога со всем 
его содержимым?

tar, насколько я понял, не умеет упаковывать сокеты, cpio вроде умеет, 
но на практике не все, что попало в архив, может быть оттуда извлечено:

[root@m1 tmp]# find /dev | cpio -o > dev.cpio
1142 blocks
[root@m1 tmp]# cat dev.cpio | cpio -i
...
cpio: dev/drbd0: mknod: Invalid argument
cpio: dev/drbd1: mknod: Invalid argument
...
[root@m1 tmp]# ls /dev > dev.old
[root@m1 tmp]# ls dev > dev.new
[root@m1 tmp]# diff -u dev.old dev.new
--- dev.old     2007-01-11 09:46:31 +0300
+++ dev.new     2007-01-11 09:46:36 +0300
@@ -361,8 +361,6 @@
   dmmidi1
   dmmidi2
   dmmidi3
-drbd0
-drbd1
   dri
   dsp
   dsp1

Все средства более высокого уровня с ротацией, инкрементальным 
копированием и т.д., как я понимаю, сводятся к предыдущим. Так чем тогда 
получить полную копию содержимого каталога?

-- 
С уважением, Прокопьев Евгений



             reply	other threads:[~2007-03-26 12:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 12:46 Eugene Prokopiev [this message]
2007-03-26 12:49 ` Avramenko Andrew
2007-03-26 16:40   ` Eugene Prokopiev
2007-03-26 17:05     ` Eugene Prokopiev
2007-03-26 20:24       ` Dmitry V. Levin
2007-03-27  4:55         ` Eugene Prokopiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4607C08D.6040300@stc.donpac.ru \
    --to=prokopiev@stc.donpac.ru \
    --cc=Sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git