v1.0
This commit is contained in:
@ -295,7 +295,7 @@ func (this *ConfigService) Backup(remark string) (ok bool, msg string) {
|
|||||||
binPath += " -u " + username + " -p " + password
|
binPath += " -u " + username + " -p " + password
|
||||||
}
|
}
|
||||||
// 保存的路径
|
// 保存的路径
|
||||||
dir := revel.BasePath + "/backup/" + this.getBackupDirname()
|
dir := revel.BasePath + "/mongodb_backup/" + this.getBackupDirname()
|
||||||
binPath += " -o " + dir
|
binPath += " -o " + dir
|
||||||
err := os.MkdirAll(dir, 0755)
|
err := os.MkdirAll(dir, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -84,10 +84,10 @@
|
|||||||
{{range .users}}
|
{{range .users}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" class="ck" data-email="{{.Email}}" value="2">
|
<input type="checkbox" class="ck" data-email="{{.Email}}" data-id="{{.UserId.Hex}}">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{.Email}}
|
<a target="_blank" href="/blog/{{.UserId.Hex}}">{{.Email}}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{.Username}}
|
{{.Username}}
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
// leanote动态
|
// leanote动态
|
||||||
// http://leanote.com/blog/cate/5446753cfacfaa4f56000000
|
// http://leanote.com/blog/cate/5446753cfacfaa4f56000000
|
||||||
var url = "http://localhost:9000/blog/listCateLatest/54269c83e5276724ac000000";
|
var url = "http://leanote.leanote.com/cate/5446753cfacfaa4f56000000";
|
||||||
function renderItem(item) {
|
function renderItem(item) {
|
||||||
return '<li class="list-group-item"><p><a target="_blank" href="http://leanote.com/blog/view/' + item.NoteId + '">' + item.Title + '</a></p><small class="block text-muted"><i class="fa fa-clock-o"></i> ' + goNowToDatetime(item.PublicTime) + '</small></li>';
|
return '<li class="list-group-item"><p><a target="_blank" href="http://leanote.com/blog/view/' + item.NoteId + '">' + item.Title + '</a></p><small class="block text-muted"><i class="fa fa-clock-o"></i> ' + goNowToDatetime(item.PublicTime) + '</small></li>';
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="hidden-xs">
|
<li class="hidden-xs">
|
||||||
<a href="/blog/admin" class="dk">
|
<a href="/logout" class="dk">
|
||||||
Logout
|
Logout
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
BIN
mongodb_backup/leanote_install_data/albums.bson
Normal file
BIN
mongodb_backup/leanote_install_data/albums.bson
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.files", "name" : "_id_" } ] }
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.albums", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/attachs.bson
Normal file
BIN
mongodb_backup/leanote_install_data/attachs.bson
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.users", "name" : "_id_" } ] }
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.attachs", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/blog_comments.bson
Normal file
BIN
mongodb_backup/leanote_install_data/blog_comments.bson
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.tokens", "name" : "_id_" } ] }
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.blog_comments", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/blog_likes.bson
Normal file
BIN
mongodb_backup/leanote_install_data/blog_likes.bson
Normal file
Binary file not shown.
@ -1 +1 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.user_blogs", "name" : "_id_" } ] }
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.blog_likes", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/configs.bson
Normal file
BIN
mongodb_backup/leanote_install_data/configs.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.configs", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/email_logs.bson
Normal file
BIN
mongodb_backup/leanote_install_data/email_logs.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.email_logs", "name" : "_id_" } ] }
|
Binary file not shown.
BIN
mongodb_backup/leanote_install_data/find_pwds.bson
Normal file
BIN
mongodb_backup/leanote_install_data/find_pwds.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.find_pwds", "name" : "_id_" } ] }
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.has_share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1 }, "unique" : true, "ns" : "leanote_public_3.has_share_notes", "name" : "UserId_1_ToUserId_1" } ] }
|
|
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.leanote.ShareNotes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1, "NoteId" : 1 }, "unique" : true, "ns" : "leanote.leanote.ShareNotes", "name" : "UserId_1_ToUserId_1_NoteId_1" } ] }
|
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.leanote.has_share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1 }, "unique" : true, "ns" : "leanote.leanote.has_share_notes", "name" : "UserId_1_ToUserId_1" } ] }
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.note_content_histories", "name" : "_id_" } ] }
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.note_contents", "name" : "_id_" } ] }
|
|
BIN
mongodb_backup/leanote_install_data/note_images.bson
Normal file
BIN
mongodb_backup/leanote_install_data/note_images.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.note_images", "name" : "_id_" } ] }
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.notebooks", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.notebooks", "name" : "UserId_1" } ] }
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.notes", "name" : "UserId_1" } ] }
|
|
BIN
mongodb_backup/leanote_install_data/reports.bson
Normal file
BIN
mongodb_backup/leanote_install_data/reports.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.reports", "name" : "_id_" } ] }
|
BIN
mongodb_backup/leanote_install_data/sessions.bson
Normal file
BIN
mongodb_backup/leanote_install_data/sessions.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.sessions", "name" : "_id_" } ] }
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.share_notebooks", "name" : "_id_" } ] }
|
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.share_notes", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1, "ToUserId" : 1, "NoteId" : 1 }, "unique" : true, "ns" : "leanote_public_3.share_notes", "name" : "UserId_1_ToUserId_1_NoteId_1" } ] }
|
|
BIN
mongodb_backup/leanote_install_data/suggestions.bson
Normal file
BIN
mongodb_backup/leanote_install_data/suggestions.bson
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote.suggestions", "name" : "_id_" } ] }
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.system.users", "name" : "_id_" }, { "v" : 1, "key" : { "user" : 1, "userSource" : 1 }, "unique" : true, "ns" : "leanote_public_3.system.users", "name" : "user_1_userSource_1" } ] }
|
|
@ -1 +0,0 @@
|
|||||||
{ "indexes" : [ { "v" : 1, "key" : { "_id" : 1 }, "ns" : "leanote_public_3.tags", "name" : "_id_" }, { "v" : 1, "key" : { "UserId" : 1 }, "ns" : "leanote_public_3.tags", "name" : "UserId_1" } ] }
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user