GNU bug report logs - #14383
cp --one-file-system / will not copy whole root filesystem

Previous Next

Package: coreutils;

Reported by: Pavel Machek <pavel <at> ucw.cz>

Date: Fri, 10 May 2013 16:05:02 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pavel Machek <pavel <at> ucw.cz>
To: bug-coreutils <at> gnu.org
Subject: cp --one-file-system / will not copy whole root filesystem
Date: Fri, 10 May 2013 12:55:36 +0200
Hi!

On systems like linux, cp / -a --one-file-system (destination) will
not copy whole root filesystem. It is not cp's fault, but the
behaviour is quite surprising to the users, so maybe it would be worth
warning in man page?

Something like

       -x, --one-file-system
              stay on this file system

	      Note that on systems that allow mounts over non-empty
	      directories (like Linux), cp / -ax (destination) will
	      not copy whole filesystem. In particular, content of
	      /dev will not be usually copied, because distributions
	      mount tmpfs over /dev.

[Ok, there's hopefully better wording...?]
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html




This bug report was last modified 12 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.