From dd8d6d0e3a798bf401784270391beca7aa767c1f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 20 Oct 2018 11:04:38 -0700 Subject: [PATCH] Created Migrate to Filer Store (markdown) --- Migrate-to-Filer-Store.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Migrate-to-Filer-Store.md diff --git a/Migrate-to-Filer-Store.md b/Migrate-to-Filer-Store.md new file mode 100644 index 0000000..308cb87 --- /dev/null +++ b/Migrate-to-Filer-Store.md @@ -0,0 +1,17 @@ +If there are already a lot of files, how to move them to the SeaweedFS the most efficient way? + +### 1. Setup Filer +1. create a filer.toml file, see the output of "weed scaffold -config=filer" +1. choose and setup a filer data store. It is OK to just pick one and use it. You can always switch later. For example: `weed filer.export -sourceStore=mysql -targetStroe=cassandra` +3. start the filer +> Example: `weed filer -master=localhost:9333` + +### 2. Mount +* start the "weed mount" +> Example: `weed mount -filer=localhost:8888 -dir=/some/dir` + +### 3. Copy Files +The easiest way is just to use the OS-provided copy command from the command line. However, usually it is single-threaded. + +The most efficient way is to use "weed filer.copy". It is multi-threaded and bypasses the FUSE layer. +> Example: `weed filer.copy file_or_dir1 [file_or_dir2 file_or_dir3] http://localhost:8888/path/to/a/folder/` \ No newline at end of file