Skip to content
Browse files

added caveats, removed async restoration

  • Loading branch information...
1 parent aa53a2c commit 4665f5f3fc976e9322db1c88c0e759c7219663b4 @ideamonk ideamonk committed Oct 21, 2011
Showing with 24 additions and 4 deletions.
  1. +22 −3 README
  2. +2 −1 src/helper.sh
View
25 README
@@ -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.
@@ -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
View
3 src/helper.sh
@@ -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

0 comments on commit 4665f5f

Please sign in to comment.
Something went wrong with that request. Please try again.