我把Firefox的默认书签清空后,装上最新的Google Browser Sync,满以为这样会让它给我把书签带回来,结果居然是把服务器上的书签都清空了。当时我犯傻了,应该在Linux下先同步下书签,然后导出就没有损失了。唉~~这两个损失把我气坏了。OK,既然没有很好的办法,我也来玩绝的!
打开记事本,写了如下简单的不能再简单的脚本,保存为“backitup.bat”;打开“计划任务”,添加新任务,设置为每天晚上9点定时备份,这样总保险了吧!省得以后自己操心,这种无聊的事情就让Windows来做了。
@echo off
REM backup firefox bookmark indepenently.
copy "C:\Documents and Settings\ersaclarke\Application Data\Mozilla\Firefox\Profiles\115gz84e.default\bookmarks.html" "D:\Temp\backups\"
REM compress foobar and back it up.
cd "C:\Program Files\"
"C:\Program Files\WinRAR\rar.exe" a -m5 "D:\Temp\backups\foobar2000.rar" "foobar2000"
REM compress firefox and back it up
cd "C:\Program Files\"
"C:\Program Files\WinRAR\rar.exe" a -m5 "D:\Temp\backups\Firefox.rar" "Mozilla Firefox"
REM backup firefox plug-ins and configurations
cd "C:\Documents and Settings\ersaclarke\Application Data\"
"C:\Program Files\WinRAR\rar.exe" a -m5 "D:\Temp\backups\Mozilla.rar" "Mozilla"
REM compress thunderbird and back it up
cd "C:\Program Files\"
"C:\Program Files\WinRAR\rar.exe" a -m5 "D:\Temp\backups\Thunderbird.rar" "Mozilla Thunderbird"
REM backup thunderbird plug-ins and configurations
cd "C:\Documents and Settings\ersaclarke\Application Data\"
"C:\Program Files\WinRAR\rar.exe" a -m5 "D:\Temp\backups\Thunderbird_plugins.rar" "Thunderbird"
没有评论:
发表评论