From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753722Ab1L1NDn (ORCPT ); Wed, 28 Dec 2011 08:03:43 -0500 Received: from v027182.home.net.pl ([89.161.155.4]:34958 "HELO v027182.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753181Ab1L1NDl (ORCPT ); Wed, 28 Dec 2011 08:03:41 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Dec 2011 08:03:40 EST Date: Wed, 28 Dec 2011 13:56:31 +0100 From: Wojciech Zygmunt Porczyk To: Gaurav Saxena Cc: John Stoffel , richard -rw- weinberger , linux-kernel@vger.kernel.org Subject: Re: Intercepting system calls Message-ID: <20111228125631.GB9894@nb24cis> References: <20211.28256.111279.27933@quad.stoffel.home> <20212.37458.896503.997111@quad.stoffel.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Dec 23, 2011 at 10:33:45PM +0530, Gaurav Saxena wrote: > I am trying to write an application which would create a backup for > the system so that it could be restored as it is. For example I create > a backup using my application. I just do nothing at time of backup so > it would be fast. Now whenever I see any deletion I would save that > file so that I could restore it. You almost certainly wan't to research LVM(-like) snapshots. They are operating in block layer, so you can restore fs "as it was", with COW feature they do "nothing" at creation and just save overwritten data somewhere else. See: lvcreate(8), xfs_freeze(8). Maybe btrfs(8) ("btrfs subvolume snapshot") but btrfs is not really production-ready, so get lvm2+xfs. - -- regards WZJP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk77Ef8ACgkQDgvLOJe6jMmQuACfassIV+vXCTmvMCTUqa81wgFf lBcAoLwYdPf59FEJ7sl/lzyHLLo4pG2r =Zt0G -----END PGP SIGNATURE-----