Domanda

I am writing a script to automatically upload a directory with many sub directories and files using wput

Is it possible to ignore certain folders like .svn folders from getting uploaded while using wput?

È stato utile?

Soluzione

A careful look into the man pages gave me the following solution which works perfectly.

find . ! -type d | grep -v \.svn | wput ftp://user:password*@ftp.example.com/ -i -

More explanation is available at this blog post.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top