how to backup ramfs or tmpfs using dd
I have problem with backup ramfs/tmpfs to solid/regular disk.
I prefer backup those ramfs/tmpfs using "dd" command instead of "cp" command, so I don't need care about a lot of files, contain of files/dirs and permissions.
as I know backup using dd need two params: origin disk/file and destination disk/file. disk usually identified by something in /dev.
for ramfs/tmpfs I dont know how to dealing with, since I cannot found those type of disk/file under /dev nor dmesg.
really appreciated for your kind of answers.
ramfs/tmpfs are for ephemeral data. If you need to back it up, you should not be putting it in ramfs/tmpfs. Ordinary filesystems for physical block devices do sufficient caching that you should get near ramfs speed if you have enough free RAM. And they are inherently backed up via their backing store (do "sync" to be sure at given points in time). Let the OS take care of this for you unless you have an odd case (tell us about it, if so).
I have used ramfs or ramdisk in lieu of a disk to avoid the disk I/O in some cases (example: I did a Slackware install in a VM based entirely on a ramdisk in much less time than doing so on a real disk in a real machine). I copied the image to disk afterwards. If it didn't finish, that data was of no value.
well thanks Skaperen,
actually my goal is only during software operations, to speed-up process and data reads, that why I need this method.
but, due to some data may be needed in another operations, I will need those data stored fast.
I prefer doing all that things in memory, rather than physical disc.
any workaround please welcome.. :)
|All times are GMT -5. The time now is 08:53 PM.|