当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 如何自动随时为crash做类似hibernate的备份?
帖子发表于 : 2015-10-23 14:48 
头像

注册: 2012-04-14 11:00
帖子: 456
系统: ArchLinux
送出感谢: 3
接收感谢: 10
服务器防断电,想到了hibernate的恢复
不过现在想实现每段时间(我知道这里用crontab)备份到文件
请问如何实现


_________________
My personal blog

毛概老师:大家知道一个有名的空想社会主义吗?同学:乌邦图

用Linux有感:
得,用了1年多linux,感觉自己还是个菜鸟。。。
用了2年了,感觉自己还是一般菜。。。
第3年...头半年感觉和去年没啥变化。。。后半年算是能发挥点主观能动性了吧。。
第4年。。感觉自己算个伪Geek了
第5年,虽然有同学管我叫大神,但我还是觉得自己菜的一笔。。


最后由 PithornDawn 编辑于 2015-10-23 15:32,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 如何自动随时为hibernate做备份?
帖子发表于 : 2015-10-23 15:08 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
参考
http://superuser.com/questions/470538/how-to-save-your-linux-state-suspend-to-disk-periodically-to-recover-from-cras

引用:
But I am not sure if this can work reliably, since hibernation only stores information kept in RAM, but not the current disk/filesystem state. For example, if you saved a hibernation snapshot, modified a few files and reloaded the snapshot, your disk would contain the new data and metadata, but the snapshot might still have the old version in the snapshotted kernel's memory...


代码:
* BIG FAT WARNING *********************************************************
 *
 * If you touch anything on disk between suspend and resume...
 *            ...kiss your data goodbye.


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译