Hi, Everyone!

I have a test scenario that might pose a challenge or might be extremely easy.

Test Setup:
I want to setup a filesystem (?) of some sort (?) that has a number of
directories and files in it. This can be a directory or mount point
anywhere. I am going to chroot my process to that dir/mount point and
run a script which will create/modifiy files and directories therein.
Script exists* and works now.

Test
I will run another script that restores the above filesystem (?) to
the original, pristine state.

I want to recreate the above pristine filesystem (?) over and over
again. I also want to diff the directories after my test to be sure
the resulting reverted filesystem (?) is exactly the same as
the original pristine one.

What got me thing along these lines was VMWare images. But the same
thing for a directory. Should I use a filesystem created in an ISO
image, and then I can mount it in loopback mode?
Are there easier ways to accomplish this? What about user-mode file
systems. What about must using dd on a filesystem to initial backup
and restore for retest and checking.
Any other thing I have not thought of? Going for Q&D here.

Thanks for all your help.
Ed

* I should point out that this script exists on one server and I am
testing on another server. The OS and built-in pathnames are not the
same : /home v. /Users; /lib v. /Library, etc. Hence the chroot.
The script is in Perl, but that isn't relevant.

-- 
Ed Howland
http://greenprogrammer.blogspot.com

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to