Skip to content

Latest commit

 

History

History
88 lines (63 loc) · 1.84 KB

File metadata and controls

88 lines (63 loc) · 1.84 KB

mv2sd

Move dir and file in storage to sd card or sd card dir and file to sd card

Table

Usage

mv2sd  --from "${dir}" --to "${sd dir}"
--from|-f
-> from dir
--to|-t
-> dest sd dir path
[Optional] --vervose-mode|-v
show vervose

Example

Storage dir to sd card

mv2sd \
	-f "${APP_ROOT_PATH}/ubuntu/backup/rootfs" \
	-t "${SD_ROOT_DIR_PATH}/move/bk"   

Enable relative path for sd card path

mv2sd \
	-f "${APP_ROOT_PATH}/ubuntu/backup/rootfs" \
	-t "move/bk"

Storage file to sd card

mv2sd \
	-f "${APP_DIR_PATH}/default/test.txt" \
	-t "move/bk2"

Storage file to sd card

mv2sd \
	-f "${APP_DIR_PATH}/default/test.txt" \
	-t "move/bk2"

Sd card dir to sd card

mv2sd \
	-f "move/bk" \
	-t "move/bk2"

Sd card file to sd card

mv2sd \
	-f "${SD_ROOT_DIR_PATH}/move/bk/test.txt" \
	-t "${SD_ROOT_DIR_PATH}/move/bk2"