Skip to content

Importing and Exporting Data

Elod Csirmaz edited this page Dec 28, 2014 · 4 revisions

Importing pre-existing data into ESFS

To start using ESFS with existing data, make sure that the root of the data does not contain a /snapshots directory (but see $$SNDIR and $$SNDIR_LEN in types.h to customize this). Then simply move or copy the data into the data directory of ESFS before starting ESFS. (Please make sure the data does not contain elements not supported by ESFS, like symbolic or hard links, or special files.)

It is also easy to arrange for the ESFS filesystem to be mounted at the same point where the data used to be. For example, to start using ESFS on /home/user/Documents, and there are already some files or directories there, move Documents to, for example, /home/user/Documents-data, create an empty /home/user/Documents directory, and start ESFS using esfs /home/user/Documents-data /home/user/Documents.

Removing ESFS and exporting the data

To stop using ESFS but continue to have access to the data the filesystem contains, umount the filesystem, remove the /snapshots directory and its contents in the data directory, and move or copy the rest of the files and directories to where they will be needed. To continue the example of /home/user/Documents above, remove /home/user/Documents-data/snapshots, remove the empty /home/user/Documents, and rename Documents-data back to Documents.

Clone this wiki locally