sam shah
asked on
shell script
hello experts,
how can i move a file or a list of files from one folder in a particular server to another folder in another server using shell script??
how can i move a file or a list of files from one folder in a particular server to another folder in another server using shell script??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If Linux, then rsync (synchronises, if some or all files exist or are different) or maybe rcp (like cp, but works remotely) should work for you. If you go and use rsync without any further advice, then you should know it's important to start off using the -nv flags which does a dry run and tells you which files would have been copied, and to where, if you ran it without the -n flag. Otherwise a small mistake in your command cause all sorts of trouble.