Hi there,

my apologies if this might have been discussed earlier. I'd like to use
aufs3 in a SSD setup with rw-storage in a RAM-disk. So far so good. I'm
looking for an example how to implement regularly snapshots. Say a
read-only-branch for /var/log resides in a squash-fs file-system via
loop-fs. After some days I may want to generate another snapshot of
/var/log, stuff the current state in another read-only branch based on a
newly generated loop-backed squash-fs.

How to do that? Are there good examples?

I know that I can add and delete branches at run-time. One scenario
would be to

a) add a new read-write branch
b) mark the previous read-write branch read-only
c) generate a new image from the former read-write-branch
d) add the new image as read-only branch
e*) remove the old read-only branch
f*) remove the old read-write branch

e*) and f*) will probably not work directly, as some files are still
held open by syslogd etc. Of course, one could keep a history of
file-sytems and periodically try to delete branches. Finally old
branches could be removed.

Is there a better way?

Thanks.

Claus

-- 
Claus-Justus Heine                      hims...@claus-justus-heine.de

http://http://www.claus-justus-heine.de/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Reply via email to