1

how to move all files in the same directory except one into that one in UNIX ssh?

for example. having backup directory and moving all other files into backup

thanks in advance

Adilli Adil
  • 1,231
  • 1
  • 17
  • 25

1 Answers1

1

Using rsync is one of the possibility

rsync -av from/ to/ --exclude=file_to_exclude

More information about the rsync command: http://linux.about.com/library/cmd/blcmdl1_rsync.htm

TheEwook
  • 11,037
  • 6
  • 36
  • 55