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

cp2sd

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

Table

Usage

cp2sd  --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

cp2sd \
	-f "${APP_ROOT_PATH}/ubuntu/backup/rootfs" \
	-t "${SD_ROOT_DIR_PATH}/copy/bk" 

Enable relative path for sd card path

cp2sd \
	-f "${APP_ROOT_PATH}/ubuntu/backup/rootfs" \
	-t "copy/bk" 

Storage file to sd card

cp2sd \
	-f "${APP_DIR_PATH}/default/test.txt" \
	-t "copy/bk2"

Storage file to sd card

cp2sd \
	-f "${APP_DIR_PATH}/default/test.txt" \
	-t "copy/bk2"

Sd card dir to sd card

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

Sd card file to sd card

cp2sd \
	-f "${SD_ROOT_DIR_PATH}/copy/bk/test.txt" \
	-t "${SD_ROOT_DIR_PATH}/copy/bk2"