I have a bash script that is used to copy from the various directories in the copy host. All of them have only one parent. So I put them in the list:
LIST = \ {ADIR, BDIR, CDIR}}
and I use the scp command
sshpass -p $ 2 scp -o LogLevel = debug -r $ 1@192.168.121.1$/PATH/$LIST/*.txt / home / test / test
< P> The command enables me to copy all the .txt files from ADR, BDIR, CDIR to my test directory. Is there any option that can put all the .txt files in the appropriate directory like / home / test / test / ADIR or / home / test / test / BDIR ...?
# Rsync option # -a, - archive archive mode; Equal-rlptgoD (No-H, -A, -X) Similar to # -D - Devices - Special # -G, - Group Group # -L preserves, - Links Simlink SimLink # -O, as - Owner preserves owner (super-user only) # -o, -mit-dir-times --times # -p, --perms, leave directory, preserve permissions # -r, --recursive recurse Directory # -t, -times Modified Time # -U, --Disclaimer-Receiver # -v, --verbose Increase Verbility # -z, --Decor file on datasheet in 'ADR' New for transfer to ER. BDIR "CDIR" RCINC -Jewu - RHS = 'SSH-L Username) "192.168.121.1:/PATH/$ DIR / Home / Test / Tested / done
No comments:
Post a Comment