Skip site navigation (1)Skip section navigation (2)
Date:      03 Oct 2005 15:03:12 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: About SnapShot
Message-ID:  <44u0fyl8y7.fsf@be-well.ilk.org>
In-Reply-To: <auto-000411799344@doruk.net.tr>
References:  <auto-000411799344@doruk.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
"Vahric MUHTARYAN" <vahric@doruk.net.tr> writes:

>             Today I try to learn snapshot with FreeBSD 5.4 , perfect it's
> working very fest . I wonder something if somebody have knowledge about
> snapshot or have a documentation about it I will be happy. 

Did you read the relevant sections of "man mount"?

> First I don't understand How system can take snapshot quickly I tried it on
> new installed freebsd 5.4 and when I gave a command on console snapshot file
> created in a second which 256MB , I wonder How fast will be on bigger
> partitions. Anybody know How snapshot tecnology is working ? Because it's
> creating an single file and it's 256 mb , it's not possible to copy /var
> folder to another folder in a second ... 

Making a snapshot doesn't make copies of the files.  They will only be
copied if a new version is created in the real filesystem.  This is
called "copy on write".  

Technical documentation is probably at http://www.mckusick.com/softdep/

> Second Why I can't create snapshot file on different directory , I tried to
> linking but it didn't work ! 

AS "man mksnap_ffs" says, "The snapshot_name argument must be
contained within the file system mounted at mountpoint."

> And anyway Does it possible to back from snapshot file to original portion
> ... I mean snapshot is creating only one file When I want to backI have to
> mount it to system and copy back files Im asking without copying something
> and mouting snapshot file can I make a restore ? 

No, that isn't possible.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44u0fyl8y7.fsf>