scalebox/dockerfiles/dir-list/test
kaichao 6a9b554410 rename list-dir to dir-list. 2023-11-06 08:34:46 +08:00
..
README.md rename list-dir to dir-list. 2023-11-06 08:34:46 +08:00
app.yaml rename list-dir to dir-list. 2023-11-06 08:34:46 +08:00
scalebox.env rename list-dir to dir-list. 2023-11-06 08:34:46 +08:00

README.md

examples for list-dir

1. local path

  • format
    SOURCE_URL=/<local-base-dir>
    message: ${SOURCE_URL}~${dir}
SOURCE_URL=/ DIR_NAME=etc/postfix REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=/~etc/postfix REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=/etc~postfix REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=/etc/postfix~. REGEX_FILTER=^.*cf\$ scalebox app create

2. rsync-over-ssh

  • format
    SOURCE_URL=[<ssh-user>@]<ssh-host>:<ssh-port><ssh-base-dir>
    message: ${SOURCE_URL}~${dir}
SOURCE_URL=scalebox@10.255.128.1/etc DIR_NAME=postfix REGEX_FILTER=^.*cf\$ scalebox app create

DIR_NAME=scalebox@10.255.128.1/etc~postfix REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=scalebox@10.255.128.1:22/etc~postfix REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=scalebox@10.255.128.1/etc/postfix~. REGEX_FILTER=^.*cf\$ scalebox app create
DIR_NAME=scalebox@10.255.128.1/~etc/postfix REGEX_FILTER=^.*cf\$ scalebox app create

3. rsync-native

  • format
    SOURCE_URL=rsync://[<rsync-user>[:<rsync-password>]@]<rsync-host>[:<port>]/<rsync-base-dir>
    message: ${SOURCE_URL}~${dir}
  • anonymous
# ncbi data
SOURCE_URL=rsync://ftp.ncbi.nlm.nih.gov/1000genomes/ftp DIR_NAME=. scalebox app create

DIR_NAME=rsync://ftp.ncbi.nlm.nih.gov/1000genomes/ftp~. REGEX_FILTER=^.*gz\$ scalebox app create

  • non-anonymous
SOURCE_URL=rsync://fast@fast.cstcloud.cn/doi/10.1038/s41586-021-03878-5 DIR_NAME=20191021 scalebox app create

DIR_NAME=rsync://fast@fast.cstcloud.cn/doi/10.1038/s41586-021-03878-5~20191021 scalebox app create

4. ftp

  • format
    SOURCE_URL=ftp://[<ftp-user>[:<ftp-pass>]@]<ftp-host>[:<port>]/<ftp-base-dir>
    message: ${SOURCE_URL}~${dir}
  • anonymous ftp
SOURCE_URL=ftp://ftp.ncbi.nlm.nih.gov/1000genomes/ftp/release/2008_12 DIR_NAME=. scalebox app create
DIR_NAME=ftp://ftp.ncbi.nlm.nih.gov/1000genomes/ftp/release/2008_12~. REGEX_FILTER=^.*gz\$ scalebox app create

DIR_NAME=ftp://ftp.ncbi.nlm.nih.gov/1000genomes/ftp/release~2008_12 scalebox app create

DIR_NAME=ftp://ftp.ncbi.nlm.nih.gov/~1000genomes/ftp/release/2008_12 scalebox app create

  • non-anonymous ftp
SOURCE_URL=ftp://<ftp-user>:<ftp-pass>@<ftp-host>/<ftp-path> DIR_NAME=. scalebox app create

5. 2D-dataset

DIR_NAME=/raidz/fast-fz/ZD2022_1_1~Dec+4120_03_03/20221102 \
REGEX_2D_DATASET='^(.+%)?([^/]+/[^/]+)/.+M([0-9]+)_([0-9]+).+$' \
INDEX_2D_DATASET='2,3,4' \
scalebox app create