Link to home
Start Free TrialLog in
Avatar of sam shah
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??
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Windows or Linux?

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.
ASKER CERTIFIED SOLUTION
Avatar of Carlos Ijalba
Carlos Ijalba
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial