Skip to content

Commit

Permalink
added caveats, removed async restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
ideamonk committed Oct 20, 2011
1 parent aa53a2c commit 4665f5f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
25 changes: 22 additions & 3 deletions README
Expand Up @@ -128,10 +128,11 @@ Rambola also syncs the backup every 45 minutes in background.



Have I tested that?
-------------------
Have I tested RamDisk retainment?
---------------------------------
I've tested that while development, but I do not guarantee anything. So, do test
it out before copy-&-symlinking anything precious into the RamDisk.
it out before copy-&-symlinking anything precious into the RamDisk. Also, I've
used/tested it on OS X 10.6.8 only.



Expand Down Expand Up @@ -165,6 +166,24 @@ Once enabled, it should work for every user. Though I haven't tested it out.



Any caveats?
------------
Oh yes, putting too many things into RamDisk might make the restoration that
happens when you login, a bit slow. But how many times do we login back anyway.

In case you don't want things this way, you could make the rsync call that
restores contents asynchronous by changing this -
$AS_USER $RSYNC "${SNAPSHOT_LOCATION}" "${DEST}"
into
$AS_USER $RSYNC "${SNAPSHOT_LOCATION}" "${DEST}" &
in src/helper.sh

However in that case do not cache anything that would be needed as soon as you
log in. And there is now way to figure out if rsync call got over, other than
looking into Console.



Why was this created?
---------------------
Uh, I assumed QuickSander's sweet app Cache2RAM [2] to be too sweet to retain
Expand Down
3 changes: 2 additions & 1 deletion src/helper.sh
Expand Up @@ -74,7 +74,8 @@ function restore_contents_from_snapshot

DEST="/Volumes/${RAMDISK_NAME}/"
log "Restoring snapshot from \"${SNAPSHOT_LOCATION}\" to \"${DEST}\"."
$AS_USER $RSYNC "${SNAPSHOT_LOCATION}" "${DEST}" &
$AS_USER $RSYNC "${SNAPSHOT_LOCATION}" "${DEST}"
log "Finished restoring snapshot from \"${SNAPSHOT_LOCATION}\" to \"${DEST}\"."
}

function store_contents_on_snapshot
Expand Down

0 comments on commit 4665f5f

Please sign in to comment.