Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lomorage/homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Apr 9, 2023
2 parents 29460e2 + 76c2a37 commit 21dd543
Show file tree
Hide file tree
Showing 13 changed files with 285 additions and 1 deletion.
94 changes: 94 additions & 0 deletions content/blog/migrate_from_pi_win.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
+++
title = "简单快速地迁移数据和扩展存储空间"
tags = ["WD", "MyCloud", "Redundancy"]
categories = ["BLOG"]
date = "2023-03-02T13:43:40"
banner = "/img/blog/migrate_from_pi_win/migrate_pi_win.jpg"
+++

**简单快速地迁移数据和扩展存储空间**

最近有个用户因为原先的存储盘已经满了,想把数据直接从原先的PI服务器迁移到Windows服务器上,并且扩大存储盘,让我们来看看最快的数据迁移扩展方法,本文也可以用来指导数据恢复。本文以Windows为例,其它平台操作也类似。

<!--more-->

<div align="center">
<p class="screenshoot">
<img width="50%" src="/img/blog/migrate_from_pi_win/migrate_pi_win.jpg">
</p>
</div>

本文目录
=================
- [本文目录](#本文目录)
- [第1步:安装Windows Lomorage 照片助手](#第1步安装windows-lomorage-照片助手)
- [第2步:复制数据](#第2步复制数据)
- [第3步: 更改assets.db 里的user 表里的home\_dir](#第3步-更改assetsdb-里的user-表里的home_dir)
- [3.1 下载 辅助工具](#31-下载-辅助工具)
- [3.2 停止照片助手,把改好的assets.db 复制到默认的安装位置:](#32-停止照片助手把改好的assetsdb-复制到默认的安装位置)
- [3.3 重启照片助手完成数据迁移,再也不怕数据满盘了!](#33-重启照片助手完成数据迁移再也不怕数据满盘了)


# 第1步:安装Windows Lomorage 照片助手

请直接去 [lomorage](https://lomorage.com)官网下载windows版本的照片助手并且按照默认设置安装。

# 第2步:复制数据

原先的存储盘已经满了,所以用户A选择了一个新**10T**的大硬盘,然后把数据从老的硬盘拷贝到了新的硬盘里。
新硬盘的数据目录是:

**d:\imagebk**

确保 **d:\imagebk** 下是原先的用户名目录,像如下这样:

```
d:\imagebk
|-- test
|-- user_name
|-- user_name2
|-- assets.db
```

**提示:assets.db 就是数据文件,这个非常重要**


# 第3步: 更改assets.db 里的user 表里的home_dir

## 3.1 下载 辅助工具

请去 https://sqlitebrowser.org/ 网站下载,然后用sqlitebrowser 工具打开 assets.db, 如下图一样更改**home_dir**


<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/migrate_from_pi_win/assets_db_zh.png">
</p>
</div>

## 3.2 停止照片助手,把改好的assets.db 复制到默认的安装位置:

**> c:\Users\\%username%\AppData\Local\lomoware\var\assets.db**

## 3.3 重启照片助手完成数据迁移,再也不怕数据满盘了!



**支持**: [email protected] or [email protected].

或者加 **微信:lomoware**,加入微信群,和开发者互动。

<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/lomorage_wechat_qr.jpg
">
</p>
</div>

新的开发版已经自动支持一键迁移恢复数据, 敬请期待:

<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/migrate_from_pi_win/one_click_recover.png">
</p>
</div>
2 changes: 1 addition & 1 deletion content/blog/mypains.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ banner = "/img/blog/mypains/banner.png"
**Lomorage的解决方法**

- 安装Lomorage服务器程序或者购买Lomorage智存盒子:
- 安装Lomorage服务器程序:

> Lomorage 服务器可以装在您的**树莓派或者Windows或者MacOS系统**
Expand Down
128 changes: 128 additions & 0 deletions content/blog/set_wd_as_backup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
+++
title = "Set WD MyCloud as Lomorage redundancy backup disk on Windows"
tags = ["WD", "MyCloud", "Redundancy"]
categories = ["BLOG"]
date = "2023-02-22T13:43:40"
banner = "/img/blog/set_wd_as_backup/set_wd_as_backup.jpg"
+++

**Setup WD MyCloud as Lomorage Redundancy backup disk on Windows.**

<!--more-->


Table of Contents
=================
- [Table of Contents](#table-of-contents)
- [1. Mount WD MyCloud as Windows Disk](#1-mount-wd-mycloud-as-windows-disk)
- [2. Setup Redundancy Backup](#2-setup-redundancy-backup)
- [3. Test redundancy backup and trouble shooting](#3-test-redundancy-backup-and-trouble-shooting)
- [If you meet some issue like the below:](#if-you-meet-some-issue-like-the-below)
- [Solution is:](#solution-is)



# 1. Mount WD MyCloud as Windows Disk

The detail introduction from WD is here: __[How to mount WD MyCloud on Windows](https://support-en.wd.com/app/answers/detailweb/a_id/25436/h/p2#subject2)__

Below picture is my case:

<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/set_wd_as_backup/mount.png" style="border:2px solid black;" />
</p>
</div>

# 2. Setup Redundancy Backup

Open Lomorage Photo Assistant in your Windows, and set as blow:

> **Make sure there is no content under the folder **W:\wd-test****
<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/set_wd_as_backup/set_redundancy_agent.png">
</p>
</div>

# 3. Test redundancy backup and trouble shooting

And click the **"Start redundancy backup..."** button to see the files will copy from
D:\imagebk to W:\wd-test.

## If you meet some issue like the below:

```
rdiff-backup.exe --force -v5 --print-statistics D:/imagebk W:/
WARNING: this command line interface is deprecated and will disappear, start using the new one as described with '--new --help'.
* Using repository 'W:/'
NOTE: Found interrupted initial backup in data directory W:/rdiff-backup-data. Removing...
* Hardlinks disabled by default on Windows
* Unable to import module (py)xattr. Extended attributes not supported on filesystem at path D:/imagebk
* Unable to import module posix1e from pylibacl package. POSIX ACLs not supported on filesystem at path D:/imagebk
* -----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Windows access control lists On
Case sensitivity Off
Escape DOS devices On
Escape trailing spaces On
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
* Directories on file system at path W:/rdiff-backup-data/rdiff-backup.tmp.0 are not fsyncable. Assuming it's unnecessary.
* Unable to import module (py)xattr. Extended attributes not supported on filesystem at path W:/rdiff-backup-data/rdiff-backup.tmp.0
* Unable to import module posix1e from pylibacl package. POSIX ACLs not supported on filesystem at path W:/rdiff-backup-data/rdiff-backup.tmp.0
* -----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
Ownership changing Off
Hard linking On
fsync() directories Off
Directory inc permissions Off
High-bit permissions On
Symlink permissions Off
Extended filenames On
Windows reserved filenames On
Access control lists Off
Extended attributes Off
Windows access control lists On
Case sensitivity Off
Escape DOS devices On
Escape trailing spaces On
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
* Backup: escape_dos_devices = False
* Backup: escape_trailing_spaces = False
* Enabled use_compatible_timestamps
NOTE: Symbolic links excluded by default on Windows
* Given repository doesn't need to be regressed
NOTE: Starting mirror from source path D:/imagebk to destination path W:/
* Processing file .
* Processing file .WDSyncHistory
* Processing file .WDSyncHistory/.WD Hidden Files
* Processing file Garbage Dispenser2.mp4
* Cleaning up
Traceback (most recent call last):
File "rdiffbackup\run.py", line 170, in <module>
File "rdiffbackup\run.py", line 37, in main
File "rdiffbackup\run.py", line 105, in main_run
File "rdiffbackup\actions\backup.py", line 159, in run
File "rdiff_backup\backup.py", line 39, in mirror_compat200
File "rdiff_backup\backup.py", line 197, in patch
File "rdiff_backup\rorpiter.py", line 142, in __call__
File "rdiff_backup\rorpiter.py", line 179, in _finish_branches
File "rdiff_backup\backup.py", line 641, in end_process_directory
File "rdiff_backup\rpath.py", line 807, in rmdir
PermissionError: [WinError 5] Access is denied: b'W:/.WDSyncHistory/.WD Hidden Files'
[2528] Failed to execute script 'run' due to unhandled exception!
```

## Solution is:

**Please go to W:\wd-test, to remove some hidden files.**

**Support**: [email protected] or [email protected].
62 changes: 62 additions & 0 deletions content/blog/set_wd_as_backup.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
+++
title = "把WD MyCloud设置为Lomorage的冗余备份盘"
tags = ["WD", "MyCloud", "Redundancy"]
categories = ["BLOG"]
date = "2023-02-22T13:43:40"
banner = "/img/blog/set_wd_as_backup/set_wd_as_backup.jpg"
+++

**在Windows上,把WD MyCloud设置为Lomorage的冗余备份盘**

<!--more-->


本文目录
=================
- [本文目录](#本文目录)
- [1. 映射 WD MyCloud 为Windows的盘符](#1-映射-wd-mycloud-为windows的盘符)
- [2. 设置冗余备份](#2-设置冗余备份)
- [3. 测试冗余备份](#3-测试冗余备份)



# 1. 映射 WD MyCloud 为Windows的盘符

具体可以参考WD的官方说明: __[How to mount WD MyCloud on Windows](https://support-en.wd.com/app/answers/detailweb/a_id/25436/h/p2#subject2)__

下面是一个例子,其实就是在局域网内找到WD的盘符,然后映射网络驱动器。

<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/set_wd_as_backup/mount_zh.png" style="border:2px solid black;" />
</p>
</div>

# 2. 设置冗余备份

打开Lomorage桌面助手,按下图设置:

> **确保 **W:\wd-test** 是一个新目录,下面没有其他的内容**
<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/set_wd_as_backup/set_redundancy_agent_zh.png">
</p>
</div>

# 3. 测试冗余备份

点击 **"启动冗余备份..."** 按钮,然后查看文件是否已经从**D:\imagebk** 拷贝到了 **W:\wd-test.**



**支持**: [email protected] or [email protected].

或者加 **微信:**,加入微信群,和开发者互动。

<div align="center">
<p class="screenshoot">
<img width="100%" src="/img/blog/lomorage_wechat_qr.jpg
">
</p>
</div>
Binary file added static/img/blog/lomorage_wechat_qr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/blog/set_wd_as_backup/mount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/blog/set_wd_as_backup/mount_zh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21dd543

Please sign in to comment.